mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
restore oobeCull
This commit is contained in:
parent
9ca7c24919
commit
93dd513808
@ -1409,25 +1409,14 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
gn.addGeom(geom)
|
gn.addGeom(geom)
|
||||||
self.oobeCullFrustumVis = self.oobeVis.attachNewNode(gn)
|
self.oobeCullFrustumVis = self.oobeVis.attachNewNode(gn)
|
||||||
|
|
||||||
# Assign each DisplayRegion shared by the camera to use
|
# Tell the camera to cull from here instead of its own
|
||||||
# this cull frustum.
|
# origin.
|
||||||
|
self.camNode.setCullCenter(self.oobeCullFrustum)
|
||||||
|
|
||||||
# Support for this is currently absent from Panda.
|
|
||||||
## numDisplayRegions = self.camNode.getNumDisplayRegions()
|
|
||||||
## for d in range(0, numDisplayRegions):
|
|
||||||
## dr = self.camNode.getDisplayRegion(d)
|
|
||||||
## dr.setCullFrustum(pnode)
|
|
||||||
else:
|
else:
|
||||||
# Disable OOBE culling.
|
# Disable OOBE culling.
|
||||||
|
|
||||||
# Assign each DisplayRegion shared by the camera to use
|
self.camNode.setCullCenter(NodePath())
|
||||||
# the default cull frustum, the camera itself.
|
|
||||||
|
|
||||||
## numDisplayRegions = self.camNode.getNumDisplayRegions()
|
|
||||||
## for d in range(0, numDisplayRegions):
|
|
||||||
## dr = self.camNode.getDisplayRegion(d)
|
|
||||||
## dr.setCullFrustum(self.camNode)
|
|
||||||
|
|
||||||
self.oobeCullFrustum.removeNode()
|
self.oobeCullFrustum.removeNode()
|
||||||
self.oobeCullFrustum = None
|
self.oobeCullFrustum = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user