Search This Blog
hello everyone myself Jasskeerat singh and I will post my blogs and learn blogging
Featured
- Get link
- X
- Other Apps
PANDA 3D ENVIRONMENT 3D VIEW
HELLO EVERYONE SO AFTER MANY DAYS RELASING MY NEW PYTHON FILE OF A MODULE CALLED PANDA 3D SO FOR THIS YOU HAVE TO INSTALL THE PANDA 3D BY OPENING CMD WHICH IS WINDOWS+R .SO YOU CAN MAKE A 3D VIEW USING PANDA 3D SO IN THE CMD TYPE PIP INSTALL PANDA 3D. THEN WRITE OR COPY THE SOURCE CODE AND PASTE IT AND RUN THE PROGRAM.
SOURCE CODE FOR PANDA 3D :-
from direct.showbase.ShowBase import ShowBase
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
self.scene = self.loader.loadModel('models/environment')
self.scene.reparentTo(self.render)
self.scene.setScale(0.25, 0.25, 0.25)
self.scene.setPos(-8, 42, 0)
app = MyApp()
app.run()
THANK YOU EVERYONE AND TELL ME WHETHER YOU LIKED IT OR NOT PLEASE COMMENT BELOW.
- Get link
- X
- Other Apps
Comments
HELLO EVERYONE I AM HERE WITH NEW PYTHON FILE PLS TRY IT
ReplyDeleteVery good
ReplyDelete