Dynamic landscape Generation

marook

02-11-2007 13:26:18

Hello people,


I want to create a landscape from scratch within my application which uses the PLSM2. In the wiki and this forum I only found examples which load a map from file and then display it. My goal is to create a plain map with a specified size and then modify the heightmap. So my questions are:

:?: How do I initialize the PagingLandscapeSceneManger with a simple flat plane with a specified width and length?

:?: How can I specify the numer of pages along the x and z axis within my application?

:?: What is the map mapping tool doing except splitting images into parts?


Thanks for your answers,
Markus

tuan kuranes

02-11-2007 16:13:20

Please Read Ogre wiki on PLSM2, particularly the setOption getOption case.
(you need event to uplaod dynamically flat plane, setOption to change terrain size, etc...)

marook

02-11-2007 23:01:09

Please Read Ogre wiki on PLSM2, particularly the setOption getOption case.
Ok, thanks... I will look through that.


(you need event to uplaod dynamically flat plane, setOption to change terrain size, etc...)
Could you please give me one more hint about what you mean with 'upload dynamically flat plane'? Does this meand I have to modify the resource manager? Maybe you could post me the method where I could register that 'event' so I can evaluate it.