Latest CVS, no Terrain rendered until event...

Rowan

26-04-2007 03:52:36

I have just updated to the latest CVS build, and now on running my app the terrain is not rendered until a TerrainListener event is triggered ( eg: by moving the camera ).

Using a previous build my Terrain would appear normally on startup.

Anyone else getting this or have I missed a setting which was handled by default previously?

EDIT ::
---------
I tried the demo which renders it's terrain on loading, and gives the TerrainListener debug message 'Tile Deformed ... ', which is what my App used to give also ( which seems kind of strange ).
My App now gives the message 'Terrain Ready'.

Rowan

27-04-2007 03:04:20

So, after a reasonable amount of examination and comparison with the Demo code, the difference was that I am attaching my camera to a SceneNode, and setting its initial position via the scenenode, while the Demo positions the camera object itself.

So it seems, on initialisation at least, PLSM is only registering an event for the latter case ( If I change my own camera positioning to the camera object itself, the events are registered and the terrain is rendered ).

Perhaps this is a minor incremental bug, because as I mentioned previously it wasn't occurring prior to the latest build, but I guess someone else's opinion would be good ( noone else has experienced it? ).

For the moment I can get around it by calling a translate on the camera scenenode after initialisation ( in my framelistener constructor ) which seems to trigger the terrain rendering events.

Febret

27-04-2007 16:11:57

Thanks man, I was having the same exact problem