<#!/usr/bin/env python3 # -*- coding: utf-8 -*- from direct.showbase.ShowBase import ShowBase from direct.gui.OnscreenText import OnscreenText class MyApp(ShowBase): def __init__(self): ShowBase.__init__(self) # Load the environment model. self.scene = self.loader.loadModel("models/environment") # Reparent the model to render. self.scene.reparentTo(self.render) # Apply scale and position transforms on the model. self.scene.setScale(0.25, 0.25, 0.25) self.scene.setPos(-8, 42, 0) textObject = OnscreenText( text = 'Hello World !', pos = (-0.1, -0.8), scale = 0.3) app = MyApp() app.run()>