bigjhnny
09-04-2006 06:00:27
The OGRE api for terrain scene manager mentions that there is a method:
http://www.ogre3d.org/docs/api/html/classOgre_1_1TerrainSceneManager.html#Ogre_1_1TerrainSceneManagera43
which returns the material used by the terrain
I tried in pyogre using
Either is a valid attribute of the scene manager....
Do I need to manually cast the scene manager to a terrain scene manager some way?
I would like to add another pass to the terrain material to display a grid, mentioned in this thread:
http://www.ogre3d.org/phpBB2/viewtopic.php?t=14928&highlight=grid
Thanks in advance.
sceneManager.getTerrainMaterial()
http://www.ogre3d.org/docs/api/html/classOgre_1_1TerrainSceneManager.html#Ogre_1_1TerrainSceneManagera43
which returns the material used by the terrain
I tried in pyogre using
sceneManager.getTerrainMaterial()
or
sceneManager.terrainMaterial
Either is a valid attribute of the scene manager....
Do I need to manually cast the scene manager to a terrain scene manager some way?
I would like to add another pass to the terrain material to display a grid, mentioned in this thread:
http://www.ogre3d.org/phpBB2/viewtopic.php?t=14928&highlight=grid
Thanks in advance.