I have some questions about few things…
from panda3d.core import WindowProperties
wp = WindowProperties.getDefault()
wp.setCursorHidden(True)
wp.setUndecorated(True)
wp.setTitle(“test”)
WindowProperties.setDefault(wp)
Why is this not working? it does not show ‘test’ on title box and the cursor is still visible.
self.dlight = DirectionalLight(‘dlight’)
self.dlight.setColor(VBase4(0.8, 0.8, 0.8, 3))
self.dlnp = render.attachNewNode(self.dlight)
self.dlnp.setHpr(7, -6, 0)
self.dlnp.setPos(0, 8, 4)
render.setLight(self.dlnp)
I would like to know what this whole codes does but you can partially answer.
(I really don’t like Panda3D doc. It makes me even more confusing…)
- last question…
What does CollisionTraverser() do?
and what does base.pusher = CollisionHandlerPusher() does?
why can’t I change base.cTrav to something like base.trav?
(again I read the doc but it didn’t explain clearly.)
EDIT
I have another question…
What’s the difference between using
from direct.showbase.ShowBase import ShowBase
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
app = MyApp()
app.run()
and just using
import direct.directbase.DirectStart
run()
is there are more benefits less benefits for each one?
Another edit sorry…
How do I import light attributes from panda3d.core?
I don’t want to just do this,
from panda3d.core import *