http://www.youtube.com/watch?v=8iMpKDBTQqE
Youtube made me change the soundtrack for Germany
So, if you live in Germany, this is the GEMA free version
German Law sucks
http://www.youtube.com/watch?v=-I6Yo8KG2BQ
I really wasn't sure if I should post here, or back in the Spherical Terrain Thread under code snippets, but then again I thought if I hadn't been working on it but someone else (which would have been nice), I'd be very happy to find it, and the chances are bigger under Project anouncements, besides if anyone feels to optimize it more we would all gain a lot.
So, basically I didnt do much, the credit should go to whoever made the CTerrainSphereNode in the IrrlichtWrapper for FreeBasic source...Slaine wrote:Download this
http://www.freebasic.net/forum/viewtopic.php?t=3584
It's a FreeBasic Irrlicht wrapper, in the source someone has extended the STerrainSceneNode to STerrainSphereNode, just copy and paste into your project, that should sort your problem out
The only thing I did is extending it to use dynamic Meshbuffers and 32 bit Indices to overcome the 65536 Vertices limit and allow 6 x1024*1024 Heightmaps.
You have to be very patient with it, as you can Imagine the 6 terrains are huge and the rendering (except for the CLOD), is far from optimized. On top of that I use 6x2048*2048 px colormaps.
I have 2GB ram here and a 512MB nvidia 8600, I guess, that would be a lower limit, but I dont know, because I havent tried.
It's still a far way to go to get a real chunked spherical ROAM, but a good start.
Free for everyone to download, utilize and improve upon....
http://www.tobi.houfek.de/cubeSphere.zip