Geoplane creating support

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Geoplane creating support

Post by hendu »

https://sourceforge.net/p/irrlicht/patches/267/

This patch adds support for creating geoplanes, that is, meshes that give you automatic LOD in a GPU-friendly way.

You typically use one of these for either terrain or water, having it always be at the player's feet, and set the height/texture coord/normal in your vertex shader (from a heightmap, or wave simulation, etc.). Everything is static in the VRAM, no bus transfers like with the usual cpu-based terrain LOD.

Image
Image
Image
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: Geoplane creating support

Post by christianclavet »

Hi, Thanks Hendu! I've checked the code. For doing the LOD, How is it working? From what I understand, this will be done in the vertex shader, but how will it work with the mesh? Is there a way to use "tiles" with this? Or your model need to be made of a single mesh?

Googled a little to find out more about "geoplanes", from what I found is that the plane vertices are placed differently than a regular plane.
Image

This help for LOD?
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Geoplane creating support

Post by hendu »

This is only for surfaces, you can't use it to LOD any arbitrary model. As mentioned, you'd usually use this for terrain or water.

This generates a planar surface mesh for you. You'd then move it to where your player is, and set the height correctly in your vertex shader. This allows you to avoid tiles, it's a much simpler method.
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: Geoplane creating support

Post by christianclavet »

Ha! Ok! Nice trick! I've did not think about using this!
Post Reply