Using PagedGeometry with PLSM2

Jon

14-07-2007 20:39:35

Here is a short write-up on what is needed to use PagedGeometry with PSLM2.

http://www.ogre3d.org/wiki/index.php/Us ... edGeometry

hotgloupi

19-07-2007 13:06:30

Hi !

Very useful i think, but lots of people need to use grass. But it seems to be so hard to use it because of the GetHeightAt() function is slow.
Anyone can explain how to implement a fast method to get height?
I see that the class PagingLandScapeSceneManager have a member called getHeightAt(float, float), but i don't now if its faster function than queries, and which is the easiest way to get it in a program :)
Anyone can help?

Jon

21-07-2007 00:54:03

I believe that method uses a raySceneQuery to calculate the height, so there isn't likely to be any difference in speed.

I'm struggling with tree wierdness at the moment involving negative coords in the loader bounds, but think I'm close to a general solution.

Edit: JohnJ came up with the fix. Negative bounds and PLSM are happy now.

hotgloupi

21-07-2007 16:50:40

No it don't use query i think. The function is in OgrePagingLandScapeSceneManager.h and it call PagingLandScapeData2DManager::getInterpolatedWorldHeight, that doing the dirty work ;)

Im gonna try to just add good .cpp files, because under linux i cant link a plugin ...
bye

hotgloupi

10-10-2007 12:53:16

Anyone know a way to get plsm lightmap (whith InstantBaseShadowed) and apply it as a colorMap in Forest addon (for grass and trees)?

Otherwise, is there a function to get shadow value for a point on plsm terrain?

bye !