from panda3d.core import CullFaceAttrib, Point3, NodePath, Point2, Texture, \
- Plane, Vec3
+ Plane, Vec3, BitMask32
from panda3d.bullet import BulletBoxShape, BulletRigidBodyNode, BulletGhostNode
from direct.gui.OnscreenText import OnscreenText
from lib.lib.p3d.gfx import P3dGfxMgr
self._model.flatten_light()
self._model.reparent_to(self._np)
self._set_outline_model()
+ self._model.hide(BitMask32(0x01))
+ self._outline_model.hide(BitMask32(0x01))
self._start_drag_pos = None
self._prev_rot_info = None
self._instantiated = False
self._model.reparent_to(self._np)
self._np.set_pos(pos)
self._set_outline_model()
+ self._model.show(BitMask32(0x01))
+ self._outline_model.show(BitMask32(0x01))
self._instantiated = True
self._txt.destroy()
self._count -= 1
from panda3d.core import AmbientLight, DirectionalLight, Point3, Texture, \
- TextPropertiesManager, TextNode, Spotlight, PerspectiveLens
+ TextPropertiesManager, TextNode, Spotlight, PerspectiveLens, BitMask32
from panda3d.bullet import BulletPlaneShape, BulletGhostNode
from direct.gui.OnscreenImage import OnscreenImage
from direct.gui.OnscreenText import OnscreenText
self.__shadow_light.node().set_shadow_caster(True, 2048, 2048)
self.__shadow_light.node().get_lens().set_film_size(2048, 2048)
self.__shadow_light.node().get_lens().set_near_far(1, 256)
+ self.__shadow_light.node().set_camera_mask(BitMask32(0x01))
def _unset_lights(self):
for light in [self._key_light, self._fill_light, self._rim_light,
* issues
* todo
-** remove shadows of side-panel items (light.node().set_camera_mask(BitMask32(0x01)))
** cursor in the menu
** window icon
** srgb textures