OpenGLContext.browser.nodes
Classes
class VisualContext(
BrowserContext
):
platform
exposedField SFNode SFNode None
userspin
exposedField SFBool userspin 0
userzoom
exposedField SFBool userzoom 0
getViewPlatform(
self
)
Customization Point: Instantiate ViewPlatform for this context
The default implementation is to instantiate a
viewplatform.ViewPlatform with position equal to
self.initialPosition and orientation equal to
self.initialOrientation.
See:
OpenGLContext.shadow.shadowcontext for
example where this method is overridden
class VisualScene(
SceneGraph
):
A Visual-style scenegraph
ambient
exposedField SFFloat ambient 0.2
background
exposedField SFColor background (0, 0, 1)
lights
exposedField MFVec3f lights
3, 2)
objects
exposedField MFNode objects []
class VisualViewPlatform(
Node
):
View-platform-like functionality
autocenter
exposedField SFBool autocenter 1
autoscale
exposedField SFBool autoscale 1
center
exposedField SFVec3f center (0, 0, 0)
context
exposedField WeakSFNode SFNode None
forward
exposedField SFVec3f forward (0, 0, -1)
fov
exposedField SFFloat fov 1.0471975512
range
exposedField SFVec3f range (10, 10, 10)
scale
exposedField SFVec3f scale (0.1, 0.1, 0.1)
uniform
exposedField SFBool uniform 0
up
exposedField SFVec3f up (0, 1, 0)