Page 1 of 1

sphere scenenode of level of detail

Posted: Sun Jul 04, 2010 2:36 am
by dujimache
does anyone have a sphere scenenode of level of detail, like the world wind's earth,or can somebody give me some advice on this topic?

Posted: Sun Jul 04, 2010 5:23 am
by DtD
Basically, just make a scene node with a sphere mesh a several different resolutions, and then render a different one depending on how far away the camera is. You don't even need to write the code to generate the spheres

~David

Posted: Sun Jul 04, 2010 7:01 am
by dujimache
DtD wrote:Basically, just make a scene node with a sphere mesh a several different resolutions, and then render a different one depending on how far away the camera is. You don't even need to write the code to generate the spheres

~David
yes,your suggestion is a good idea for rendering a sphere,but it needs too much memory,because irrlicht's sphere node renders all the vertices of the whole sphere,is there anybody create some node considering lod??

Posted: Sun Jul 04, 2010 12:44 pm
by Slaine
Sounds like you need a Chunked LOD 3rd party library like I'm trying to get to work with Irrlicht :(
http://www.organicvectory.com/index.php ... 2&Itemid=2

Posted: Sun Jul 04, 2010 6:41 pm
by DtD
Oh, you mean LOD like they have on the terrain. I'd look at how the terrain scene node works internally and go from there.

Posted: Mon Jul 05, 2010 1:42 pm
by dujimache
Slaine wrote:Sounds like you need a Chunked LOD 3rd party library like I'm trying to get to work with Irrlicht :(
http://www.organicvectory.com/index.php ... 2&Itemid=2

thank you very much,the pics shown on your link seem like effect,can i get access the source code??

Posted: Mon Jul 05, 2010 1:44 pm
by dujimache
DtD wrote:Oh, you mean LOD like they have on the terrain. I'd look at how the terrain scene node works internally and go from there.
thanks ,if you create a lod sphere scene node,tell me!thank you.i think it is a very useful node!

Posted: Mon Jul 05, 2010 2:32 pm
by Slaine
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 :)

Posted: Mon Jul 05, 2010 2:33 pm
by Slaine
dujimache wrote:
Slaine wrote:Sounds like you need a Chunked LOD 3rd party library like I'm trying to get to work with Irrlicht :(
http://www.organicvectory.com/index.php ... 2&Itemid=2

thank you very much,the pics shown on your link seem like effect,can i get access the source code??
No, it's closed source.

Posted: Mon Jul 05, 2010 2:39 pm
by Slaine
However, if you do decide to use the Irrlicht terrain sphere node it is still limited, it'll only optimise down to a certain vertex count, whereas ovPlanet will continue to simplify as the camera moves further and further away, until it's only a few hundred vertexes, so ovPlanet is faster for a high number of spheres.