Rowan
15-05-2006 02:40:00
I'm fairly new to Ogre and even newer to PLSM2, but I've managed to begin my project and just now incorporated PLSM2 into it at the most basic of levels.
What I would like to achieve for my game is some sort of random map generation, and the problem at the moment is how do I incorporate this into Ogre?
The few posts I have managed to find have pointed to PLSM2, but now that I'm here, I can't seem to find any more information of the subject.
I have some vague references to using Splines, and I've found a reference in the 'template.default.cfg' file ::
I have also noted these references in the same file ::
So I am assuming that it is somehow possible to dynamically generate terrain, possibly using Splines.
If so, how would this be implemented?
I'd just be happy using my own algorithm to generate a 2D array of heights and pass that into the scenemanager. But how can I actually pass this information to the manager and get it to update / add to the current scene.
It wouldn't need to be continually generated, I'd be happy for a sort of 'generated paging', where once the border of one existing generated page is approached, an entire new page is generated and added into the scheme.
I'd even settle just for a single randomly generated page at loading-time..
Is this possible? Is PLSM2 the correct choice for this, or do I need to consider some other option?
Thanks for any help.
What I would like to achieve for my game is some sort of random map generation, and the problem at the moment is how do I incorporate this into Ogre?
The few posts I have managed to find have pointed to PLSM2, but now that I'm here, I can't seem to find any more information of the subject.
I have some vague references to using Splines, and I've found a reference in the 'template.default.cfg' file ::
#experimental spline terrain
#Data2DFormat=SplineField
I have also noted these references in the same file ::
#
#
#
# Especialized texture loader.
#
#(no pregenerated maps needed)
# Real-time (no pregenerated maps needed) splatting => splatting (needs DX9) and splatting5 (need shaders)
# Real-time (no pregenerated maps needed)Coloring => basetexture.
#
So I am assuming that it is somehow possible to dynamically generate terrain, possibly using Splines.
If so, how would this be implemented?
I'd just be happy using my own algorithm to generate a 2D array of heights and pass that into the scenemanager. But how can I actually pass this information to the manager and get it to update / add to the current scene.
It wouldn't need to be continually generated, I'd be happy for a sort of 'generated paging', where once the border of one existing generated page is approached, an entire new page is generated and added into the scheme.
I'd even settle just for a single randomly generated page at loading-time..
Is this possible? Is PLSM2 the correct choice for this, or do I need to consider some other option?
Thanks for any help.