org.ogre4j
Interface ISceneManager

All Superinterfaces:
IAllocatedObject<ISceneCtlAllocPolicy>, INativeObject, ISceneCtlAllocatedObject
All Known Subinterfaces:
IDefaultSceneManager
All Known Implementing Classes:
DefaultSceneManager, SceneManager

public interface ISceneManager
extends INativeObject, ISceneCtlAllocatedObject


Nested Class Summary
static interface ISceneManager.IAnimationIterator
           
static interface ISceneManager.IAnimationList
           
static interface ISceneManager.IAutoTrackingSceneNodes
           
static interface ISceneManager.ICameraIterator
           
static interface ISceneManager.ICameraList
           
static interface ISceneManager.ICamVisibleObjectsMap
           
static interface ISceneManager.IInstancedGeometryList
           
static interface ISceneManager.ILightClippingInfo
           
static interface ISceneManager.ILightClippingInfoMap
           
static interface ISceneManager.ILightInfo
           
static interface ISceneManager.ILightInfoList
           
static interface ISceneManager.IlightLess
           
static interface ISceneManager.IlightsForShadowTextureLess
           
static interface ISceneManager.IListener
           
static interface ISceneManager.IListenerList
           
static interface ISceneManager.ImaterialLess
           
static interface ISceneManager.IMovableObjectCollection
           
static interface ISceneManager.IMovableObjectCollectionMap
           
static interface ISceneManager.IMovableObjectIterator
           
static interface ISceneManager.IMovableObjectMap
           
static interface ISceneManager.IRenderQueueListenerList
           
static interface ISceneManager.ISceneMgrQueuedRenderableVisitor
           
static interface ISceneManager.ISceneNodeList
           
static interface ISceneManager.IShadowCamLightMapping
           
static interface ISceneManager.IShadowCasterList
           
static interface ISceneManager.IShadowCasterSceneQueryListener
           
static interface ISceneManager.IShadowTextureCameraList
           
static interface ISceneManager.ISkyBoxGenParameters
           
static interface ISceneManager.ISkyDomeGenParameters
           
static interface ISceneManager.ISkyPlaneGenParameters
           
static interface ISceneManager.ISpecialCaseRenderQueueList
           
static interface ISceneManager.IStaticGeometryList
           
 
Method Summary
 void _applySceneAnimations()
          Internal method for applying animations to scene nodes.
 boolean _areRenderStateChangesSuppressed()
          Are render state changes suppressed?
 boolean _areShadowsSuppressed()
          Are shadows suppressed?
 void _findVisibleObjects(ICamera cam, IVisibleObjectsBoundsInfo visibleBounds, boolean onlyShadowCasters)
          Internal method which parses the scene to find visible objects to render.
 long _getCombinedVisibilityMask()
          Internal method for getting the combination between the global visibility mask and the per-viewport visibility mask.
 ILightList _getLightsAffectingFrustum()
          Get the list of lights which could be affecting the frustum.
 long _getLightsDirtyCounter()
          Advance method to gets the lights dirty counter.
 void _injectRenderWithPass(IPass pass, IRenderable rend, boolean shadowDerivation)
          Render something as if it came from the current queue.
 void _notifyAutotrackingSceneNode(ISceneNode node, boolean autoTrack)
          Internal method for notifying the manager that a is autotracking.
 void _notifyLightsDirty()
          Advance method to increase the lights dirty counter due lights changed.
 void _populateLightList(IVector3 position, float radius, ILightList destList)
          Populate a light list with an ordered set of the lights which are closest to the position specified.
 void _queueSkiesForRendering(ICamera cam)
          Internal method for queueing the sky objects with the params as previously set through setSkyBox, setSkyPlane and setSkyDome.
 void _renderQueueGroupObjects(IRenderQueueGroup group, QueuedRenderableCollection.OrganisationMode om)
          Render the objects in a given queue group
 void _renderScene(ICamera camera, IViewport vp, boolean includeOverlays)
          Prompts the class to send its contents to the renderer.
 void _renderVisibleObjects()
          Sends visible objects found in _findVisibleObjects to the rendering engine.
 void _setDestinationRenderSystem(IRenderSystem sys)
          Notifies the scene manager of its destination render system
 IPass _setPass(IPass pass, boolean evenIfSuppressed, boolean shadowDerivation)
          Internal method for setting up the renderstate for a rendering pass.
 void _setSkyBox(boolean enable, java.lang.String materialName, float distance, short renderQueue, IQuaternion orientation, java.lang.String groupName)
          Enables / disables a 'sky box' i.e. a 6-sided box at constant distance from the camera representing the sky.
 void _setSkyDome(boolean enable, java.lang.String materialName, float curvature, float tiling, float distance, short renderQueue, IQuaternion orientation, int xsegments, int ysegments, int ysegments_keep, java.lang.String groupName)
          Enables / disables a 'sky dome' i.e. an illusion of a curved sky.
 void _setSkyPlane(boolean enable, IPlane plane, java.lang.String materialName, float scale, float tiling, short renderQueue, float bow, int xsegments, int ysegments, java.lang.String groupName)
          Enables / disables a 'sky plane' i.e. a plane at constant distance from the camera representing the sky.
 void _suppressRenderStateChanges(boolean suppress)
          Indicates to the whether it should suppress changing the states when rendering objects.
 void _suppressShadows(boolean suppress)
          Indicates to the whether it should suppress the active shadow rendering technique until told otherwise.
 void _updateSceneGraph(ICamera cam)
          Internal method for updating the scene graph ie the tree of instances managed by this class.
 void addListener(ISceneManager.IListener s)
          Add a listener which will get called back on scene manager events.
 void addRenderQueueListener(IRenderQueueListener newListener)
          Registers a new which will be notified when render queues are processed.
 void addSpecialCaseRenderQueue(short qid)
          Adds an item to the 'special case' render queue list.
 void clearScene()
          Empties the entire scene, inluding all SceneNodes, Entities, Lights, BillboardSets etc.
 void clearSpecialCaseRenderQueues()
          Clears the 'special case' render queue list.
 IAxisAlignedBoxSceneQuery createAABBQuery(IAxisAlignedBox box, long mask)
          Creates an for this scene manager.
 IAnimation createAnimation(java.lang.String name, float length)
          Creates an animation which can be used to animate scene nodes.
 IAnimationState createAnimationState(java.lang.String animName)
          Create an object for managing application of animations.
 IBillboardChain createBillboardChain(java.lang.String name)
          Create a , an object which you can use to render a linked chain of billboards.
 IBillboardSet createBillboardSet(java.lang.String name, long poolSize)
          Creates a new for use with this scene manager.
 ICamera createCamera(java.lang.String name)
          Creates a camera to be managed by this scene manager.
 IEntity createEntity(java.lang.String entityName, SceneManager.PrefabType ptype)
          Create an (instance of a discrete mesh) from a range of prefab shapes.
 IEntity createEntity(java.lang.String entityName, java.lang.String meshName)
          Create an (instance of a discrete mesh).
 IInstancedGeometry createInstancedGeometry(java.lang.String name)
          Creates a instance suitable for use with this .
 IIntersectionSceneQuery createIntersectionQuery(long mask)
          Creates an for this scene manager.
 ILight createLight(java.lang.String name)
          Creates a light for use in the scene.
 IManualObject createManualObject(java.lang.String name)
          Create a , an object which you populate with geometry manually through a GL immediate-mode style interface.
 IMovableObject createMovableObject(java.lang.String name, java.lang.String typeName, INameValuePairList params)
          Create a movable object of the type specified.
 IParticleSystem createParticleSystem(java.lang.String name, int quota, java.lang.String resourceGroup)
          Create a blank particle system.
 IParticleSystem createParticleSystem(java.lang.String name, java.lang.String templateName)
          Creates a particle system based on a template.
 IPlaneBoundedVolumeListSceneQuery createPlaneBoundedVolumeQuery(IPlaneBoundedVolumeList volumes, long mask)
          Creates a for this scene manager.
 IRaySceneQuery createRayQuery(IRay ray, long mask)
          Creates a for this scene manager.
 IRibbonTrail createRibbonTrail(java.lang.String name)
          Create a , an object which you can use to render a linked chain of billboards which follows one or more nodes.
 ISceneNode createSceneNode()
          Creates an instance of a .
 ISceneNode createSceneNode(java.lang.String name)
          Creates an instance of a with a given name.
 ISphereSceneQuery createSphereQuery(ISphere sphere, long mask)
          Creates a for this scene manager.
 IStaticGeometry createStaticGeometry(java.lang.String name)
          Creates a instance suitable for use with this .
 void destroyAllAnimations()
          Removes all animations created using this .
 void destroyAllAnimationStates()
          Removes all animation states created using this .
 void destroyAllBillboardChains()
          Removes & destroys all BillboardChains from the .
 void destroyAllBillboardSets()
          Removes & destroys all BillboardSets.
 void destroyAllCameras()
          Removes (and destroys) all cameras from the scene.
 void destroyAllEntities()
          Removes & destroys all Entities.
 void destroyAllInstancedGeometry()
          Remove & destroy all instances.
 void destroyAllLights()
          Removes and destroys all lights in the scene.
 void destroyAllManualObjects()
          Removes & destroys all ManualObjects from the .
 void destroyAllMovableObjects()
          Destroy all MovableObjects.
 void destroyAllMovableObjectsByType(java.lang.String typeName)
          Destroy all MovableObjects of a given type.
 void destroyAllParticleSystems()
          Removes & destroys all ParticleSystems from the .
 void destroyAllRibbonTrails()
          Removes & destroys all RibbonTrails from the .
 void destroyAllStaticGeometry()
          Remove & destroy all instances.
 void destroyAnimation(java.lang.String name)
          Destroys an .
 void destroyAnimationState(java.lang.String name)
          Destroys an .
 void destroyBillboardChain(IBillboardChain obj)
          Removes & destroys a from the .
 void destroyBillboardChain(java.lang.String name)
          Removes & destroys a from the .
 void destroyBillboardSet(IBillboardSet set)
          Removes & destroys an from the .
 void destroyBillboardSet(java.lang.String name)
          Removes & destroys an from the by name.
 void destroyCamera(ICamera cam)
          Removes a camera from the scene.
 void destroyCamera(java.lang.String name)
          Removes a camera from the scene.
 void destroyEntity(IEntity ent)
          Removes & destroys an from the .
 void destroyEntity(java.lang.String name)
          Removes & destroys an from the by name.
 void destroyInstancedGeometry(IInstancedGeometry geom)
          Remove & destroy a instance.
 void destroyInstancedGeometry(java.lang.String name)
          Remove & destroy a instance.
 void destroyLight(ILight light)
          Removes the light from the scene and destroys it based on a pointer.
 void destroyLight(java.lang.String name)
          Removes the named light from the scene and destroys it.
 void destroyManualObject(IManualObject obj)
          Removes & destroys a from the .
 void destroyManualObject(java.lang.String name)
          Removes & destroys a from the .
 void destroyMovableObject(IMovableObject m)
          Destroys a .
 void destroyMovableObject(java.lang.String name, java.lang.String typeName)
          Destroys a with the name specified, of the type specified.
 void destroyParticleSystem(IParticleSystem obj)
          Removes & destroys a from the .
 void destroyParticleSystem(java.lang.String name)
          Removes & destroys a from the .
 void destroyQuery(ISceneQuery query)
          Destroys a scene query of any type.
 void destroyRibbonTrail(IRibbonTrail obj)
          Removes & destroys a from the .
 void destroyRibbonTrail(java.lang.String name)
          Removes & destroys a from the .
 void destroySceneNode(ISceneNode sn)
          Destroys a .
 void destroySceneNode(java.lang.String name)
          Destroys a with a given name.
 void destroyStaticGeometry(IStaticGeometry geom)
          Remove & destroy a instance.
 void destroyStaticGeometry(java.lang.String name)
          Remove & destroy a instance.
 int estimateWorldGeometry(IDataStreamPtr stream, java.lang.String typeName)
          Estimate the number of loading stages required to load the named world geometry.
 int estimateWorldGeometry(java.lang.String filename)
          Estimate the number of loading stages required to load the named world geometry.
 void extractAllMovableObjectsByType(java.lang.String typeName)
          Extract all injected MovableObjects of a given type.
 void extractMovableObject(IMovableObject m)
          Extract a previously injected .
 void extractMovableObject(java.lang.String name, java.lang.String typeName)
          Extract a previously injected .
 IColourValue getAmbientLight()
          Returns the ambient light level to be used for the scene.
 IAnimation getAnimation(java.lang.String name)
          Looks up an object previously created with createAnimation.
 void getAnimationIterator(ISceneManager.IAnimationIterator returnValue)
          Returns a specialised over all animations in the scene.
 IAnimationState getAnimationState(java.lang.String animName)
          Retrieves animation state as previously created using createAnimationState.
 void getAnimationStateIterator(IAnimationStateIterator returnValue)
          Returns a specialised over all animation states in the scene.
 IBillboardChain getBillboardChain(java.lang.String name)
          Retrieves a pointer to the named .
 IBillboardSet getBillboardSet(java.lang.String name)
          Retrieves a pointer to the named .
 ICamera getCamera(java.lang.String name)
          Retrieves a pointer to the named camera.
 void getCameraIterator(ISceneManager.ICameraIterator returnValue)
          Returns a specialised over all cameras in the scene.
 boolean getCameraRelativeRendering()
          Get whether to use camera-relative co-ordinates when rendering, ie to always place the camera at the origin and move the world around it.
 IViewport getCurrentViewport()
          Gets the current viewport being rendered (advanced use only, only valid during viewport update.
 IRenderSystem getDestinationRenderSystem()
          Get the rendersystem subclass to which the output of this Scene Manager gets sent
 boolean getDisplaySceneNodes()
          Returns true if all scene nodes axis are to be displayed
 IEntity getEntity(java.lang.String name)
          Retrieves a pointer to the named .
 boolean getFindVisibleObjects()
          Gets whether the should search for visible objects, or whether they are being manually handled.
 boolean getFlipCullingOnNegativeScale()
          Get whether to automatically flip the culling mode on objects whenever they are negatively scaled.
 IColourValue getFogColour()
          Returns the fog colour for the scene.
 float getFogDensity()
          Returns the fog density for the scene.
 float getFogEnd()
          Returns the fog end distance for the scene.
 FogMode getFogMode()
          Returns the fog mode for the scene.
 float getFogStart()
          Returns the fog start distance for the scene.
 IInstancedGeometry getInstancedGeometry(java.lang.String name)
          Retrieve a previously created instance.
 ILight getLight(java.lang.String name)
          Returns a pointer to the named which has previously been added to the scene.
 IPlaneList getLightClippingPlanes(ILight l)
          Retrieve a set of clipping planes for a given light.
 IRealRect getLightScissorRect(ILight l, ICamera cam)
          Retrieve a scissor rectangle for a given light and camera.
 IManualObject getManualObject(java.lang.String name)
          Retrieves a pointer to the named .
 IMovableObject getMovableObject(java.lang.String name, java.lang.String typeName)
          Get a reference to a previously created .
 void getMovableObjectIterator(ISceneManager.IMovableObjectIterator returnValue, java.lang.String typeName)
          Get an iterator over all MovableObect instances of a given type.
 java.lang.String getName()
          Return the instance name of this .
 boolean getNormaliseNormalsOnScale()
          Get whether to automatically normalise normals on objects whenever they are scaled.
 boolean getOption(java.lang.String strKey, VoidPointer pDestValue)
          Method for getting the value of an implementation-specific Scene Manager option.
 boolean getOptionKeys(IStringVector refKeys)
          Method for getting all the implementation-specific options of the scene manager.
 boolean getOptionValues(java.lang.String strKey, IStringVector refValueList)
          Method for getting all possible values for a specific option.
 IParticleSystem getParticleSystem(java.lang.String name)
          Retrieves a pointer to the named .
 ISceneManager.ISceneMgrQueuedRenderableVisitor getQueuedRenderableVisitor()
          Gets the current visitor object which processes queued renderables.
 IRenderQueue getRenderQueue()
          Retrieves the internal render queue, for advanced users only.
 IRibbonTrail getRibbonTrail(java.lang.String name)
          Retrieves a pointer to the named .
 ISceneNode getRootSceneNode()
          Gets the at the root of the scene hierarchy.
 ISceneNode getSceneNode(java.lang.String name)
          Retrieves a named from the scene graph.
 IShadowCameraSetupPtr getShadowCameraSetup()
          Get the shadow camera setup in use for all lights which don't have their own shadow camera setup.
 IVisibleObjectsBoundsInfo getShadowCasterBoundsInfo(ILight light, int iteration)
          Returns the shadow caster AAB for a specific light-camera combination
 boolean getShadowCasterRenderBackFaces()
          Gets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces.
 IColourValue getShadowColour()
          Get the colour used to modulate areas in shadow.
 float getShadowDirectionalLightExtrusionDistance()
          Gets the distance a shadow volume is extruded for a directional light.
 float getShadowDirLightTextureOffset()
          Gets the proportional distance which a texture shadow which is generated from a directional light will be offset into the camera view to make best use of texture space.
 float getShadowFarDistance()
          Gets the default maximum distance away from the camera that shadows will be visible.
 float getShadowFarDistanceSquared()
           
 int getShadowIndexBufferSize()
           
 ShadowTechnique getShadowTechnique()
          Gets the current shadow technique.
 ITexturePtr getShadowTexture(int shadowIndex)
          Get a reference to the shadow texture currently in use at the given index.
 void getShadowTextureConfigIterator(IConstShadowTextureConfigIterator returnValue)
          Get an iterator over the current shadow texture settings.
 int getShadowTextureCount()
           
 int getShadowTextureCountPerLightType(Light.LightTypes type)
           
 boolean getShadowTextureSelfShadow()
           
 boolean getShadowUseLightClipPlanes()
          Gets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering.
 boolean getShowBoundingBoxes()
          Returns if all bounding boxes of scene nodes are to be displayed
 boolean getShowDebugShadows()
          Are debug shadows shown?
 ISceneManager.ISkyBoxGenParameters getSkyBoxGenParameters()
          Get the parameters used to generate the current SkyBox, if any
 ISceneNode getSkyBoxNode()
          Get the skybox node, if enabled.
 ISceneManager.ISkyDomeGenParameters getSkyDomeGenParameters()
          Get the parameters used to generate the current SkyDome, if any
 ISceneNode getSkyDomeNode()
          Get the sky dome node, if enabled.
 ISceneManager.ISkyPlaneGenParameters getSkyPlaneGenParameters()
          Get the parameters used to construct the SkyPlane, if any
 ISceneNode getSkyPlaneNode()
          Get the sky plane node, if enabled.
 SceneManager.SpecialCaseRenderQueueMode getSpecialCaseRenderQueueMode()
          Gets the way the special case render queue list is processed.
 IStaticGeometry getStaticGeometry(java.lang.String name)
          Retrieve a previously created instance.
 void getSuggestedViewpoint(IViewPoint returnValue, boolean random)
          Asks the to provide a suggested viewpoint from which the scene should be viewed.
 java.lang.String getTypeName()
          Retrieve the type name of this scene manager.
 long getVisibilityMask()
          Gets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible.
 IVisibleObjectsBoundsInfo getVisibleObjectsBoundsInfo(ICamera cam)
          Returns a visibility boundary box for a specific camera.
 short getWorldGeometryRenderQueue()
          Gets the render queue that the world geometry (if any) this renders will be associated with.
 boolean hasAnimation(java.lang.String name)
          Returns whether an animation with the given name exists.
 boolean hasAnimationState(java.lang.String name)
          Returns whether an animation state with the given name exists.
 boolean hasBillboardChain(java.lang.String name)
          Returns whether a billboard chain with the given name exists.
 boolean hasBillboardSet(java.lang.String name)
          Returns whether a billboardset with the given name exists.
 boolean hasCamera(java.lang.String name)
          Returns whether a camera with the given name exists.
 boolean hasEntity(java.lang.String name)
          Returns whether an entity with the given name exists.
 boolean hasLight(java.lang.String name)
          Returns whether a light with the given name exists.
 boolean hasManualObject(java.lang.String name)
          Returns whether a manual object with the given name exists.
 boolean hasMovableObject(java.lang.String name, java.lang.String typeName)
          Returns whether a movable object instance with the given name exists.
 boolean hasOption(java.lang.String strKey)
          Method for verifying wether the scene manager has an implementation-specific option.
 boolean hasParticleSystem(java.lang.String name)
          Returns whether a particle system with the given name exists.
 boolean hasRibbonTrail(java.lang.String name)
          Returns whether a ribbon trail with the given name exists.
 boolean hasSceneNode(java.lang.String name)
          Returns whether a scene node with the given name exists.
 boolean hasStaticGeometry(java.lang.String name)
          Returns whether a static geometry instance with the given name exists.
 void injectMovableObject(IMovableObject m)
          Inject a instance created externally.
 boolean isRenderQueueToBeProcessed(short qid)
          Returns whether or not the named queue will be rendered based on the current 'special case' render queue list and mode.
 boolean isShadowTechniqueAdditive()
          Is there an additive shadowing technique in use?
 boolean isShadowTechniqueIntegrated()
          Is the shadow technique integrated into primary materials?
 boolean isShadowTechniqueInUse()
          Is there any shadowing technique in use?
 boolean isShadowTechniqueModulative()
          Is there a modulative shadowing technique in use?
 boolean isShadowTechniqueStencilBased()
          Is there a stencil shadow based shadowing technique in use?
 boolean isShadowTechniqueTextureBased()
          Is there a texture shadow based shadowing technique in use?
 boolean isSkyBoxEnabled()
          Return whether a skybox is enabled
 boolean isSkyDomeEnabled()
          Return whether a skydome is enabled
 boolean isSkyPlaneEnabled()
          Return whether a key plane is enabled
 void manualRender(IRenderOperation rend, IPass pass, IViewport vp, IMatrix4 worldMatrix, IMatrix4 viewMatrix, IMatrix4 projMatrix, boolean doBeginEndFrame)
          Manual rendering method, for advanced users only.
 void prepareWorldGeometry(IDataStreamPtr stream, java.lang.String typeName)
          Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc.
 void prepareWorldGeometry(java.lang.String filename)
          Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc.
 void removeListener(ISceneManager.IListener s)
          Remove a listener
 void removeRenderQueueListener(IRenderQueueListener delListener)
          Removes a listener previously added with addRenderQueueListener.
 void removeSpecialCaseRenderQueue(short qid)
          Removes an item to the 'special case' render queue list.
 void setAmbientLight(IColourValue colour)
          Sets the ambient light level to be used for the scene.
 void setCameraRelativeRendering(boolean rel)
          Set whether to use camera-relative co-ordinates when rendering, ie to always place the camera at the origin and move the world around it.
 void setDisplaySceneNodes(boolean display)
          Tells the whether it should render the SceneNodes which make up the scene as well as the objects in the scene.
 void setFindVisibleObjects(boolean find)
          Sets whether the should search for visible objects, or whether they are being manually handled.
 void setFlipCullingOnNegativeScale(boolean n)
          Set whether to automatically flip the culling mode on objects whenever they are negatively scaled.
 void setFog(FogMode mode, IColourValue colour, float expDensity, float linearStart, float linearEnd)
          Sets the fogging mode applied to the scene.
 void setNormaliseNormalsOnScale(boolean n)
          Set whether to automatically normalise normals on objects whenever they are scaled.
 boolean setOption(java.lang.String strKey, VoidPointer pValue)
          Method for setting a specific option of the Scene Manager.
 void setQueuedRenderableVisitor(ISceneManager.ISceneMgrQueuedRenderableVisitor visitor)
          Advanced method for supplying an alternative visitor, used for parsing the render queues and sending the results to the renderer.
 void setShadowCameraSetup(IShadowCameraSetupPtr shadowSetup)
          Set the shadow camera setup to use for all lights which don't have their own shadow camera setup.
 void setShadowCasterRenderBackFaces(boolean bf)
          Sets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces.
 void setShadowColour(IColourValue colour)
          Set the colour used to modulate areas in shadow.
 void setShadowDirectionalLightExtrusionDistance(float dist)
          Sets the distance a shadow volume is extruded for a directional light.
 void setShadowDirLightTextureOffset(float offset)
          Sets the proportional distance which a texture shadow which is generated from a directional light will be offset into the camera view to make best use of texture space.
 void setShadowFarDistance(float distance)
          Sets the default maximum distance away from the camera that shadows will be visible.
 void setShadowIndexBufferSize(int size)
          Sets the maximum size of the index buffer used to render shadow primitives.
 void setShadowTechnique(ShadowTechnique technique)
          Sets the general shadow technique to be used in this scene.
 void setShadowTextureCasterMaterial(java.lang.String name)
          Sets the default material to use for rendering shadow casters.
 void setShadowTextureConfig(int shadowIndex, int width, int height, PixelFormat format)
          Set the detailed configuration for a shadow texture.
 void setShadowTextureConfig(int shadowIndex, IShadowTextureConfig config)
          Set the detailed configuration for a shadow texture.
 void setShadowTextureCount(int count)
          Set the number of textures allocated for texture-based shadows.
 void setShadowTextureCountPerLightType(Light.LightTypes type, int count)
          Set the number of shadow textures a light type uses.
 void setShadowTextureFadeEnd(float fadeEnd)
          Sets the proportional distance at which texture shadows finish to fading out.
 void setShadowTextureFadeStart(float fadeStart)
          Sets the proportional distance at which texture shadows begin to fade out.
 void setShadowTexturePixelFormat(PixelFormat fmt)
          Set the pixel format of the textures used for texture-based shadows.
 void setShadowTextureReceiverMaterial(java.lang.String name)
          Sets the default material to use for rendering shadow receivers.
 void setShadowTextureSelfShadow(boolean selfShadow)
          Sets whether or not texture shadows should attempt to self-shadow.
 void setShadowTextureSettings(int size, int count, PixelFormat fmt)
          Sets the size and count of textures used in texture-based shadows.
 void setShadowTextureSize(int size)
          Set the size of the texture used for all texture-based shadows.
 void setShadowUseInfiniteFarPlane(boolean enable)
          Sets whether we should use an inifinite camera far plane when rendering stencil shadows.
 void setShadowUseLightClipPlanes(boolean enabled)
          Sets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering.
 void setShowDebugShadows(boolean debug)
          Enables / disables the rendering of debug information for shadows.
 void setSkyBox(boolean enable, java.lang.String materialName, float distance, boolean drawFirst, IQuaternion orientation, java.lang.String groupName)
          Enables / disables a 'sky box' i.e. a 6-sided box at constant distance from the camera representing the sky.
 void setSkyDome(boolean enable, java.lang.String materialName, float curvature, float tiling, float distance, boolean drawFirst, IQuaternion orientation, int xsegments, int ysegments, int ysegments_keep, java.lang.String groupName)
          Enables / disables a 'sky dome' i.e. an illusion of a curved sky.
 void setSkyPlane(boolean enable, IPlane plane, java.lang.String materialName, float scale, float tiling, boolean drawFirst, float bow, int xsegments, int ysegments, java.lang.String groupName)
          Enables / disables a 'sky plane' i.e. a plane at constant distance from the camera representing the sky.
 void setSpecialCaseRenderQueueMode(SceneManager.SpecialCaseRenderQueueMode mode)
          Sets the way the special case render queue list is processed.
 void setVisibilityMask(long vmask)
          Sets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible.
 void setWorldGeometry(IDataStreamPtr stream, java.lang.String typeName)
          Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc.
 void setWorldGeometry(java.lang.String filename)
          Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc.
 void setWorldGeometryRenderQueue(short qid)
          Sets the render queue that the world geometry (if any) this renders will be associated with.
 void showBoundingBoxes(boolean bShow)
          Allows all bounding boxes of scene nodes to be displayed.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

getName

java.lang.String getName()
Return the instance name of this .


getTypeName

java.lang.String getTypeName()
Retrieve the type name of this scene manager.


createCamera

ICamera createCamera(java.lang.String name)
Creates a camera to be managed by this scene manager.


getCamera

ICamera getCamera(java.lang.String name)
Retrieves a pointer to the named camera.


hasCamera

boolean hasCamera(java.lang.String name)
Returns whether a camera with the given name exists.


destroyCamera

void destroyCamera(ICamera cam)
Removes a camera from the scene.


destroyCamera

void destroyCamera(java.lang.String name)
Removes a camera from the scene.


destroyAllCameras

void destroyAllCameras()
Removes (and destroys) all cameras from the scene.


createLight

ILight createLight(java.lang.String name)
Creates a light for use in the scene.


getLight

ILight getLight(java.lang.String name)
Returns a pointer to the named which has previously been added to the scene.


hasLight

boolean hasLight(java.lang.String name)
Returns whether a light with the given name exists.


getLightClippingPlanes

IPlaneList getLightClippingPlanes(ILight l)
Retrieve a set of clipping planes for a given light.


getLightScissorRect

IRealRect getLightScissorRect(ILight l,
                              ICamera cam)
Retrieve a scissor rectangle for a given light and camera.


destroyLight

void destroyLight(java.lang.String name)
Removes the named light from the scene and destroys it.


destroyLight

void destroyLight(ILight light)
Removes the light from the scene and destroys it based on a pointer.


destroyAllLights

void destroyAllLights()
Removes and destroys all lights in the scene.


_notifyLightsDirty

void _notifyLightsDirty()
Advance method to increase the lights dirty counter due lights changed.


_getLightsDirtyCounter

long _getLightsDirtyCounter()
Advance method to gets the lights dirty counter.


_getLightsAffectingFrustum

ILightList _getLightsAffectingFrustum()
Get the list of lights which could be affecting the frustum.


_populateLightList

void _populateLightList(IVector3 position,
                        float radius,
                        ILightList destList)
Populate a light list with an ordered set of the lights which are closest to the position specified.


createSceneNode

ISceneNode createSceneNode()
Creates an instance of a .


createSceneNode

ISceneNode createSceneNode(java.lang.String name)
Creates an instance of a with a given name.


destroySceneNode

void destroySceneNode(java.lang.String name)
Destroys a with a given name.


destroySceneNode

void destroySceneNode(ISceneNode sn)
Destroys a .


getRootSceneNode

ISceneNode getRootSceneNode()
Gets the at the root of the scene hierarchy.


getSceneNode

ISceneNode getSceneNode(java.lang.String name)
Retrieves a named from the scene graph.


hasSceneNode

boolean hasSceneNode(java.lang.String name)
Returns whether a scene node with the given name exists.


createEntity

IEntity createEntity(java.lang.String entityName,
                     java.lang.String meshName)
Create an (instance of a discrete mesh).


createEntity

IEntity createEntity(java.lang.String entityName,
                     SceneManager.PrefabType ptype)
Create an (instance of a discrete mesh) from a range of prefab shapes.


getEntity

IEntity getEntity(java.lang.String name)
Retrieves a pointer to the named .


hasEntity

boolean hasEntity(java.lang.String name)
Returns whether an entity with the given name exists.


destroyEntity

void destroyEntity(IEntity ent)
Removes & destroys an from the .


destroyEntity

void destroyEntity(java.lang.String name)
Removes & destroys an from the by name.


destroyAllEntities

void destroyAllEntities()
Removes & destroys all Entities.


createManualObject

IManualObject createManualObject(java.lang.String name)
Create a , an object which you populate with geometry manually through a GL immediate-mode style interface.


getManualObject

IManualObject getManualObject(java.lang.String name)
Retrieves a pointer to the named .


hasManualObject

boolean hasManualObject(java.lang.String name)
Returns whether a manual object with the given name exists.


destroyManualObject

void destroyManualObject(IManualObject obj)
Removes & destroys a from the .


destroyManualObject

void destroyManualObject(java.lang.String name)
Removes & destroys a from the .


destroyAllManualObjects

void destroyAllManualObjects()
Removes & destroys all ManualObjects from the .


createBillboardChain

IBillboardChain createBillboardChain(java.lang.String name)
Create a , an object which you can use to render a linked chain of billboards.


getBillboardChain

IBillboardChain getBillboardChain(java.lang.String name)
Retrieves a pointer to the named .


hasBillboardChain

boolean hasBillboardChain(java.lang.String name)
Returns whether a billboard chain with the given name exists.


destroyBillboardChain

void destroyBillboardChain(IBillboardChain obj)
Removes & destroys a from the .


destroyBillboardChain

void destroyBillboardChain(java.lang.String name)
Removes & destroys a from the .


destroyAllBillboardChains

void destroyAllBillboardChains()
Removes & destroys all BillboardChains from the .


createRibbonTrail

IRibbonTrail createRibbonTrail(java.lang.String name)
Create a , an object which you can use to render a linked chain of billboards which follows one or more nodes.


getRibbonTrail

IRibbonTrail getRibbonTrail(java.lang.String name)
Retrieves a pointer to the named .


hasRibbonTrail

boolean hasRibbonTrail(java.lang.String name)
Returns whether a ribbon trail with the given name exists.


destroyRibbonTrail

void destroyRibbonTrail(IRibbonTrail obj)
Removes & destroys a from the .


destroyRibbonTrail

void destroyRibbonTrail(java.lang.String name)
Removes & destroys a from the .


destroyAllRibbonTrails

void destroyAllRibbonTrails()
Removes & destroys all RibbonTrails from the .


createParticleSystem

IParticleSystem createParticleSystem(java.lang.String name,
                                     java.lang.String templateName)
Creates a particle system based on a template.


createParticleSystem

IParticleSystem createParticleSystem(java.lang.String name,
                                     int quota,
                                     java.lang.String resourceGroup)
Create a blank particle system.


getParticleSystem

IParticleSystem getParticleSystem(java.lang.String name)
Retrieves a pointer to the named .


hasParticleSystem

boolean hasParticleSystem(java.lang.String name)
Returns whether a particle system with the given name exists.


destroyParticleSystem

void destroyParticleSystem(IParticleSystem obj)
Removes & destroys a from the .


destroyParticleSystem

void destroyParticleSystem(java.lang.String name)
Removes & destroys a from the .


destroyAllParticleSystems

void destroyAllParticleSystems()
Removes & destroys all ParticleSystems from the .


clearScene

void clearScene()
Empties the entire scene, inluding all SceneNodes, Entities, Lights, BillboardSets etc. Cameras are not deleted at this stage since they are still referenced by viewports, which are not destroyed during this process.


setAmbientLight

void setAmbientLight(IColourValue colour)
Sets the ambient light level to be used for the scene.


getAmbientLight

IColourValue getAmbientLight()
Returns the ambient light level to be used for the scene.


prepareWorldGeometry

void prepareWorldGeometry(java.lang.String filename)
Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc. This function can be called before setWorldGeometry in a background thread, do to some slow tasks (e.g. IO) that do not involve the backend render system.


prepareWorldGeometry

void prepareWorldGeometry(IDataStreamPtr stream,
                          java.lang.String typeName)
Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc. This function can be called before setWorldGeometry in a background thread, do to some slow tasks (e.g. IO) that do not involve the backend render system.


setWorldGeometry

void setWorldGeometry(java.lang.String filename)
Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc.


setWorldGeometry

void setWorldGeometry(IDataStreamPtr stream,
                      java.lang.String typeName)
Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc.


estimateWorldGeometry

int estimateWorldGeometry(java.lang.String filename)
Estimate the number of loading stages required to load the named world geometry.


estimateWorldGeometry

int estimateWorldGeometry(IDataStreamPtr stream,
                          java.lang.String typeName)
Estimate the number of loading stages required to load the named world geometry.


getSuggestedViewpoint

void getSuggestedViewpoint(IViewPoint returnValue,
                           boolean random)
Asks the to provide a suggested viewpoint from which the scene should be viewed.


setOption

boolean setOption(java.lang.String strKey,
                  VoidPointer pValue)
Method for setting a specific option of the Scene Manager. These options are usually specific for a certain implemntation of the Scene Manager class, and may (and probably will) not exist across different implementations.


getOption

boolean getOption(java.lang.String strKey,
                  VoidPointer pDestValue)
Method for getting the value of an implementation-specific Scene Manager option.


hasOption

boolean hasOption(java.lang.String strKey)
Method for verifying wether the scene manager has an implementation-specific option.


getOptionValues

boolean getOptionValues(java.lang.String strKey,
                        IStringVector refValueList)
Method for getting all possible values for a specific option. When this list is too large (i.e. the option expects, for example, a float), the return value will be true, but the list will contain just one element whose size will be set to 0. Otherwise, the list will be filled with all the possible values the option can accept.


getOptionKeys

boolean getOptionKeys(IStringVector refKeys)
Method for getting all the implementation-specific options of the scene manager.


_updateSceneGraph

void _updateSceneGraph(ICamera cam)
Internal method for updating the scene graph ie the tree of instances managed by this class.


_findVisibleObjects

void _findVisibleObjects(ICamera cam,
                         IVisibleObjectsBoundsInfo visibleBounds,
                         boolean onlyShadowCasters)
Internal method which parses the scene to find visible objects to render.


_applySceneAnimations

void _applySceneAnimations()
Internal method for applying animations to scene nodes.


_renderVisibleObjects

void _renderVisibleObjects()
Sends visible objects found in _findVisibleObjects to the rendering engine.


_renderScene

void _renderScene(ICamera camera,
                  IViewport vp,
                  boolean includeOverlays)
Prompts the class to send its contents to the renderer.


_queueSkiesForRendering

void _queueSkiesForRendering(ICamera cam)
Internal method for queueing the sky objects with the params as previously set through setSkyBox, setSkyPlane and setSkyDome.


_setDestinationRenderSystem

void _setDestinationRenderSystem(IRenderSystem sys)
Notifies the scene manager of its destination render system


setSkyPlane

void setSkyPlane(boolean enable,
                 IPlane plane,
                 java.lang.String materialName,
                 float scale,
                 float tiling,
                 boolean drawFirst,
                 float bow,
                 int xsegments,
                 int ysegments,
                 java.lang.String groupName)
Enables / disables a 'sky plane' i.e. a plane at constant distance from the camera representing the sky.


_setSkyPlane

void _setSkyPlane(boolean enable,
                  IPlane plane,
                  java.lang.String materialName,
                  float scale,
                  float tiling,
                  short renderQueue,
                  float bow,
                  int xsegments,
                  int ysegments,
                  java.lang.String groupName)
Enables / disables a 'sky plane' i.e. a plane at constant distance from the camera representing the sky.


isSkyPlaneEnabled

boolean isSkyPlaneEnabled()
Return whether a key plane is enabled


getSkyPlaneNode

ISceneNode getSkyPlaneNode()
Get the sky plane node, if enabled.


getSkyPlaneGenParameters

ISceneManager.ISkyPlaneGenParameters getSkyPlaneGenParameters()
Get the parameters used to construct the SkyPlane, if any


setSkyBox

void setSkyBox(boolean enable,
               java.lang.String materialName,
               float distance,
               boolean drawFirst,
               IQuaternion orientation,
               java.lang.String groupName)
Enables / disables a 'sky box' i.e. a 6-sided box at constant distance from the camera representing the sky.


_setSkyBox

void _setSkyBox(boolean enable,
                java.lang.String materialName,
                float distance,
                short renderQueue,
                IQuaternion orientation,
                java.lang.String groupName)
Enables / disables a 'sky box' i.e. a 6-sided box at constant distance from the camera representing the sky.


isSkyBoxEnabled

boolean isSkyBoxEnabled()
Return whether a skybox is enabled


getSkyBoxNode

ISceneNode getSkyBoxNode()
Get the skybox node, if enabled.


getSkyBoxGenParameters

ISceneManager.ISkyBoxGenParameters getSkyBoxGenParameters()
Get the parameters used to generate the current SkyBox, if any


setSkyDome

void setSkyDome(boolean enable,
                java.lang.String materialName,
                float curvature,
                float tiling,
                float distance,
                boolean drawFirst,
                IQuaternion orientation,
                int xsegments,
                int ysegments,
                int ysegments_keep,
                java.lang.String groupName)
Enables / disables a 'sky dome' i.e. an illusion of a curved sky.


_setSkyDome

void _setSkyDome(boolean enable,
                 java.lang.String materialName,
                 float curvature,
                 float tiling,
                 float distance,
                 short renderQueue,
                 IQuaternion orientation,
                 int xsegments,
                 int ysegments,
                 int ysegments_keep,
                 java.lang.String groupName)
Enables / disables a 'sky dome' i.e. an illusion of a curved sky.


isSkyDomeEnabled

boolean isSkyDomeEnabled()
Return whether a skydome is enabled


getSkyDomeNode

ISceneNode getSkyDomeNode()
Get the sky dome node, if enabled.


getSkyDomeGenParameters

ISceneManager.ISkyDomeGenParameters getSkyDomeGenParameters()
Get the parameters used to generate the current SkyDome, if any


setFog

void setFog(FogMode mode,
            IColourValue colour,
            float expDensity,
            float linearStart,
            float linearEnd)
Sets the fogging mode applied to the scene.


getFogMode

FogMode getFogMode()
Returns the fog mode for the scene.


getFogColour

IColourValue getFogColour()
Returns the fog colour for the scene.


getFogStart

float getFogStart()
Returns the fog start distance for the scene.


getFogEnd

float getFogEnd()
Returns the fog end distance for the scene.


getFogDensity

float getFogDensity()
Returns the fog density for the scene.


createBillboardSet

IBillboardSet createBillboardSet(java.lang.String name,
                                 long poolSize)
Creates a new for use with this scene manager.


getBillboardSet

IBillboardSet getBillboardSet(java.lang.String name)
Retrieves a pointer to the named .


hasBillboardSet

boolean hasBillboardSet(java.lang.String name)
Returns whether a billboardset with the given name exists.


destroyBillboardSet

void destroyBillboardSet(IBillboardSet set)
Removes & destroys an from the .


destroyBillboardSet

void destroyBillboardSet(java.lang.String name)
Removes & destroys an from the by name.


destroyAllBillboardSets

void destroyAllBillboardSets()
Removes & destroys all BillboardSets.


setDisplaySceneNodes

void setDisplaySceneNodes(boolean display)
Tells the whether it should render the SceneNodes which make up the scene as well as the objects in the scene.


getDisplaySceneNodes

boolean getDisplaySceneNodes()
Returns true if all scene nodes axis are to be displayed


createAnimation

IAnimation createAnimation(java.lang.String name,
                           float length)
Creates an animation which can be used to animate scene nodes.


getAnimation

IAnimation getAnimation(java.lang.String name)
Looks up an object previously created with createAnimation.


hasAnimation

boolean hasAnimation(java.lang.String name)
Returns whether an animation with the given name exists.


destroyAnimation

void destroyAnimation(java.lang.String name)
Destroys an .


destroyAllAnimations

void destroyAllAnimations()
Removes all animations created using this .


createAnimationState

IAnimationState createAnimationState(java.lang.String animName)
Create an object for managing application of animations.


getAnimationState

IAnimationState getAnimationState(java.lang.String animName)
Retrieves animation state as previously created using createAnimationState.


hasAnimationState

boolean hasAnimationState(java.lang.String name)
Returns whether an animation state with the given name exists.


destroyAnimationState

void destroyAnimationState(java.lang.String name)
Destroys an .


destroyAllAnimationStates

void destroyAllAnimationStates()
Removes all animation states created using this .


manualRender

void manualRender(IRenderOperation rend,
                  IPass pass,
                  IViewport vp,
                  IMatrix4 worldMatrix,
                  IMatrix4 viewMatrix,
                  IMatrix4 projMatrix,
                  boolean doBeginEndFrame)
Manual rendering method, for advanced users only.


getRenderQueue

IRenderQueue getRenderQueue()
Retrieves the internal render queue, for advanced users only.


addRenderQueueListener

void addRenderQueueListener(IRenderQueueListener newListener)
Registers a new which will be notified when render queues are processed.


removeRenderQueueListener

void removeRenderQueueListener(IRenderQueueListener delListener)
Removes a listener previously added with addRenderQueueListener.


addSpecialCaseRenderQueue

void addSpecialCaseRenderQueue(short qid)
Adds an item to the 'special case' render queue list.


removeSpecialCaseRenderQueue

void removeSpecialCaseRenderQueue(short qid)
Removes an item to the 'special case' render queue list.


clearSpecialCaseRenderQueues

void clearSpecialCaseRenderQueues()
Clears the 'special case' render queue list.


setSpecialCaseRenderQueueMode

void setSpecialCaseRenderQueueMode(SceneManager.SpecialCaseRenderQueueMode mode)
Sets the way the special case render queue list is processed.


getSpecialCaseRenderQueueMode

SceneManager.SpecialCaseRenderQueueMode getSpecialCaseRenderQueueMode()
Gets the way the special case render queue list is processed.


isRenderQueueToBeProcessed

boolean isRenderQueueToBeProcessed(short qid)
Returns whether or not the named queue will be rendered based on the current 'special case' render queue list and mode.


setWorldGeometryRenderQueue

void setWorldGeometryRenderQueue(short qid)
Sets the render queue that the world geometry (if any) this renders will be associated with.


getWorldGeometryRenderQueue

short getWorldGeometryRenderQueue()
Gets the render queue that the world geometry (if any) this renders will be associated with.


showBoundingBoxes

void showBoundingBoxes(boolean bShow)
Allows all bounding boxes of scene nodes to be displayed.


getShowBoundingBoxes

boolean getShowBoundingBoxes()
Returns if all bounding boxes of scene nodes are to be displayed


_notifyAutotrackingSceneNode

void _notifyAutotrackingSceneNode(ISceneNode node,
                                  boolean autoTrack)
Internal method for notifying the manager that a is autotracking.


createAABBQuery

IAxisAlignedBoxSceneQuery createAABBQuery(IAxisAlignedBox box,
                                          long mask)
Creates an for this scene manager.


createSphereQuery

ISphereSceneQuery createSphereQuery(ISphere sphere,
                                    long mask)
Creates a for this scene manager.


createPlaneBoundedVolumeQuery

IPlaneBoundedVolumeListSceneQuery createPlaneBoundedVolumeQuery(IPlaneBoundedVolumeList volumes,
                                                                long mask)
Creates a for this scene manager.


createRayQuery

IRaySceneQuery createRayQuery(IRay ray,
                              long mask)
Creates a for this scene manager.


createIntersectionQuery

IIntersectionSceneQuery createIntersectionQuery(long mask)
Creates an for this scene manager.


destroyQuery

void destroyQuery(ISceneQuery query)
Destroys a scene query of any type.


getCameraIterator

void getCameraIterator(ISceneManager.ICameraIterator returnValue)
Returns a specialised over all cameras in the scene.


getAnimationIterator

void getAnimationIterator(ISceneManager.IAnimationIterator returnValue)
Returns a specialised over all animations in the scene.


getAnimationStateIterator

void getAnimationStateIterator(IAnimationStateIterator returnValue)
Returns a specialised over all animation states in the scene.


setShadowTechnique

void setShadowTechnique(ShadowTechnique technique)
Sets the general shadow technique to be used in this scene.


getShadowTechnique

ShadowTechnique getShadowTechnique()
Gets the current shadow technique.


setShowDebugShadows

void setShowDebugShadows(boolean debug)
Enables / disables the rendering of debug information for shadows.


getShowDebugShadows

boolean getShowDebugShadows()
Are debug shadows shown?


setShadowColour

void setShadowColour(IColourValue colour)
Set the colour used to modulate areas in shadow.


getShadowColour

IColourValue getShadowColour()
Get the colour used to modulate areas in shadow.


setShadowDirectionalLightExtrusionDistance

void setShadowDirectionalLightExtrusionDistance(float dist)
Sets the distance a shadow volume is extruded for a directional light.


getShadowDirectionalLightExtrusionDistance

float getShadowDirectionalLightExtrusionDistance()
Gets the distance a shadow volume is extruded for a directional light.


setShadowFarDistance

void setShadowFarDistance(float distance)
Sets the default maximum distance away from the camera that shadows will be visible. You have to call this function before you create lights or the default distance of zero will be used.


getShadowFarDistance

float getShadowFarDistance()
Gets the default maximum distance away from the camera that shadows will be visible.


getShadowFarDistanceSquared

float getShadowFarDistanceSquared()

setShadowIndexBufferSize

void setShadowIndexBufferSize(int size)
Sets the maximum size of the index buffer used to render shadow primitives.


getShadowIndexBufferSize

int getShadowIndexBufferSize()

setShadowTextureSize

void setShadowTextureSize(int size)
Set the size of the texture used for all texture-based shadows.


setShadowTextureConfig

void setShadowTextureConfig(int shadowIndex,
                            int width,
                            int height,
                            PixelFormat format)
Set the detailed configuration for a shadow texture.


setShadowTextureConfig

void setShadowTextureConfig(int shadowIndex,
                            IShadowTextureConfig config)
Set the detailed configuration for a shadow texture.


getShadowTextureConfigIterator

void getShadowTextureConfigIterator(IConstShadowTextureConfigIterator returnValue)
Get an iterator over the current shadow texture settings.


setShadowTexturePixelFormat

void setShadowTexturePixelFormat(PixelFormat fmt)
Set the pixel format of the textures used for texture-based shadows.


setShadowTextureCount

void setShadowTextureCount(int count)
Set the number of textures allocated for texture-based shadows.


getShadowTextureCount

int getShadowTextureCount()

setShadowTextureCountPerLightType

void setShadowTextureCountPerLightType(Light.LightTypes type,
                                       int count)
Set the number of shadow textures a light type uses.


getShadowTextureCountPerLightType

int getShadowTextureCountPerLightType(Light.LightTypes type)

setShadowTextureSettings

void setShadowTextureSettings(int size,
                              int count,
                              PixelFormat fmt)
Sets the size and count of textures used in texture-based shadows.


getShadowTexture

ITexturePtr getShadowTexture(int shadowIndex)
Get a reference to the shadow texture currently in use at the given index.


setShadowDirLightTextureOffset

void setShadowDirLightTextureOffset(float offset)
Sets the proportional distance which a texture shadow which is generated from a directional light will be offset into the camera view to make best use of texture space.


getShadowDirLightTextureOffset

float getShadowDirLightTextureOffset()
Gets the proportional distance which a texture shadow which is generated from a directional light will be offset into the camera view to make best use of texture space.


setShadowTextureFadeStart

void setShadowTextureFadeStart(float fadeStart)
Sets the proportional distance at which texture shadows begin to fade out.


setShadowTextureFadeEnd

void setShadowTextureFadeEnd(float fadeEnd)
Sets the proportional distance at which texture shadows finish to fading out.


setShadowTextureSelfShadow

void setShadowTextureSelfShadow(boolean selfShadow)
Sets whether or not texture shadows should attempt to self-shadow.


getShadowTextureSelfShadow

boolean getShadowTextureSelfShadow()

setShadowTextureCasterMaterial

void setShadowTextureCasterMaterial(java.lang.String name)
Sets the default material to use for rendering shadow casters.


setShadowTextureReceiverMaterial

void setShadowTextureReceiverMaterial(java.lang.String name)
Sets the default material to use for rendering shadow receivers.


setShadowCasterRenderBackFaces

void setShadowCasterRenderBackFaces(boolean bf)
Sets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces.


getShadowCasterRenderBackFaces

boolean getShadowCasterRenderBackFaces()
Gets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces.


setShadowCameraSetup

void setShadowCameraSetup(IShadowCameraSetupPtr shadowSetup)
Set the shadow camera setup to use for all lights which don't have their own shadow camera setup.


getShadowCameraSetup

IShadowCameraSetupPtr getShadowCameraSetup()
Get the shadow camera setup in use for all lights which don't have their own shadow camera setup.


setShadowUseInfiniteFarPlane

void setShadowUseInfiniteFarPlane(boolean enable)
Sets whether we should use an inifinite camera far plane when rendering stencil shadows.


isShadowTechniqueStencilBased

boolean isShadowTechniqueStencilBased()
Is there a stencil shadow based shadowing technique in use?


isShadowTechniqueTextureBased

boolean isShadowTechniqueTextureBased()
Is there a texture shadow based shadowing technique in use?


isShadowTechniqueModulative

boolean isShadowTechniqueModulative()
Is there a modulative shadowing technique in use?


isShadowTechniqueAdditive

boolean isShadowTechniqueAdditive()
Is there an additive shadowing technique in use?


isShadowTechniqueIntegrated

boolean isShadowTechniqueIntegrated()
Is the shadow technique integrated into primary materials?


isShadowTechniqueInUse

boolean isShadowTechniqueInUse()
Is there any shadowing technique in use?


setShadowUseLightClipPlanes

void setShadowUseLightClipPlanes(boolean enabled)
Sets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering.


getShadowUseLightClipPlanes

boolean getShadowUseLightClipPlanes()
Gets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering.


addListener

void addListener(ISceneManager.IListener s)
Add a listener which will get called back on scene manager events.


removeListener

void removeListener(ISceneManager.IListener s)
Remove a listener


createStaticGeometry

IStaticGeometry createStaticGeometry(java.lang.String name)
Creates a instance suitable for use with this .


getStaticGeometry

IStaticGeometry getStaticGeometry(java.lang.String name)
Retrieve a previously created instance.


hasStaticGeometry

boolean hasStaticGeometry(java.lang.String name)
Returns whether a static geometry instance with the given name exists.


destroyStaticGeometry

void destroyStaticGeometry(IStaticGeometry geom)
Remove & destroy a instance.


destroyStaticGeometry

void destroyStaticGeometry(java.lang.String name)
Remove & destroy a instance.


destroyAllStaticGeometry

void destroyAllStaticGeometry()
Remove & destroy all instances.


createInstancedGeometry

IInstancedGeometry createInstancedGeometry(java.lang.String name)
Creates a instance suitable for use with this .


getInstancedGeometry

IInstancedGeometry getInstancedGeometry(java.lang.String name)
Retrieve a previously created instance.


destroyInstancedGeometry

void destroyInstancedGeometry(IInstancedGeometry geom)
Remove & destroy a instance.


destroyInstancedGeometry

void destroyInstancedGeometry(java.lang.String name)
Remove & destroy a instance.


destroyAllInstancedGeometry

void destroyAllInstancedGeometry()
Remove & destroy all instances.


createMovableObject

IMovableObject createMovableObject(java.lang.String name,
                                   java.lang.String typeName,
                                   INameValuePairList params)
Create a movable object of the type specified.


destroyMovableObject

void destroyMovableObject(java.lang.String name,
                          java.lang.String typeName)
Destroys a with the name specified, of the type specified.


destroyMovableObject

void destroyMovableObject(IMovableObject m)
Destroys a .


destroyAllMovableObjectsByType

void destroyAllMovableObjectsByType(java.lang.String typeName)
Destroy all MovableObjects of a given type.


destroyAllMovableObjects

void destroyAllMovableObjects()
Destroy all MovableObjects.


getMovableObject

IMovableObject getMovableObject(java.lang.String name,
                                java.lang.String typeName)
Get a reference to a previously created .


hasMovableObject

boolean hasMovableObject(java.lang.String name,
                         java.lang.String typeName)
Returns whether a movable object instance with the given name exists.


getMovableObjectIterator

void getMovableObjectIterator(ISceneManager.IMovableObjectIterator returnValue,
                              java.lang.String typeName)
Get an iterator over all MovableObect instances of a given type.


injectMovableObject

void injectMovableObject(IMovableObject m)
Inject a instance created externally.


extractMovableObject

void extractMovableObject(java.lang.String name,
                          java.lang.String typeName)
Extract a previously injected .


extractMovableObject

void extractMovableObject(IMovableObject m)
Extract a previously injected .


extractAllMovableObjectsByType

void extractAllMovableObjectsByType(java.lang.String typeName)
Extract all injected MovableObjects of a given type.


setVisibilityMask

void setVisibilityMask(long vmask)
Sets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible.


getVisibilityMask

long getVisibilityMask()
Gets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible.


_getCombinedVisibilityMask

long _getCombinedVisibilityMask()
Internal method for getting the combination between the global visibility mask and the per-viewport visibility mask.


setFindVisibleObjects

void setFindVisibleObjects(boolean find)
Sets whether the should search for visible objects, or whether they are being manually handled.


getFindVisibleObjects

boolean getFindVisibleObjects()
Gets whether the should search for visible objects, or whether they are being manually handled.


setNormaliseNormalsOnScale

void setNormaliseNormalsOnScale(boolean n)
Set whether to automatically normalise normals on objects whenever they are scaled.


getNormaliseNormalsOnScale

boolean getNormaliseNormalsOnScale()
Get whether to automatically normalise normals on objects whenever they are scaled.


setFlipCullingOnNegativeScale

void setFlipCullingOnNegativeScale(boolean n)
Set whether to automatically flip the culling mode on objects whenever they are negatively scaled.


getFlipCullingOnNegativeScale

boolean getFlipCullingOnNegativeScale()
Get whether to automatically flip the culling mode on objects whenever they are negatively scaled.


_injectRenderWithPass

void _injectRenderWithPass(IPass pass,
                           IRenderable rend,
                           boolean shadowDerivation)
Render something as if it came from the current queue.


_suppressRenderStateChanges

void _suppressRenderStateChanges(boolean suppress)
Indicates to the whether it should suppress changing the states when rendering objects.


_areRenderStateChangesSuppressed

boolean _areRenderStateChangesSuppressed()
Are render state changes suppressed?


_setPass

IPass _setPass(IPass pass,
               boolean evenIfSuppressed,
               boolean shadowDerivation)
Internal method for setting up the renderstate for a rendering pass.


_suppressShadows

void _suppressShadows(boolean suppress)
Indicates to the whether it should suppress the active shadow rendering technique until told otherwise.


_areShadowsSuppressed

boolean _areShadowsSuppressed()
Are shadows suppressed?


_renderQueueGroupObjects

void _renderQueueGroupObjects(IRenderQueueGroup group,
                              QueuedRenderableCollection.OrganisationMode om)
Render the objects in a given queue group


setQueuedRenderableVisitor

void setQueuedRenderableVisitor(ISceneManager.ISceneMgrQueuedRenderableVisitor visitor)
Advanced method for supplying an alternative visitor, used for parsing the render queues and sending the results to the renderer.


getQueuedRenderableVisitor

ISceneManager.ISceneMgrQueuedRenderableVisitor getQueuedRenderableVisitor()
Gets the current visitor object which processes queued renderables.


getDestinationRenderSystem

IRenderSystem getDestinationRenderSystem()
Get the rendersystem subclass to which the output of this Scene Manager gets sent


getCurrentViewport

IViewport getCurrentViewport()
Gets the current viewport being rendered (advanced use only, only valid during viewport update.


getVisibleObjectsBoundsInfo

IVisibleObjectsBoundsInfo getVisibleObjectsBoundsInfo(ICamera cam)
Returns a visibility boundary box for a specific camera.


getShadowCasterBoundsInfo

IVisibleObjectsBoundsInfo getShadowCasterBoundsInfo(ILight light,
                                                    int iteration)
Returns the shadow caster AAB for a specific light-camera combination


setCameraRelativeRendering

void setCameraRelativeRendering(boolean rel)
Set whether to use camera-relative co-ordinates when rendering, ie to always place the camera at the origin and move the world around it.


getCameraRelativeRendering

boolean getCameraRelativeRendering()
Get whether to use camera-relative co-ordinates when rendering, ie to always place the camera at the origin and move the world around it.



Copyright © 2007 netAllied GmbH. All Rights Reserved.