• Advertisement
Sign in to follow this  

Reusing VBOs (or lists)

This topic is 1907 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts



Ok, short:

[color=#006400][b]I would like to render trees. Fast. Using geometry + textures.[/b][/color]

[color=#b22222]How to do that without making a single model in VBO or other list and trying to reuse that over a heightmap?[/color]

First question: I don't know how ([color=#ff0000]and I have already searched[/color]) to take a fixed geometry stored in fast memory and repaint that in another place for reuse. I mean: take a tree and draw it at x,y,z and at x+5, y+2, z+1 since the global position of the vertexes are already set [b]IN THE MEMORY of the VBO[/b].

If I can do the above, the problem could be easily resolved by[color=#0000cd][u][i] breaking down the possible variations of trunks, leaves and geometry of the trees and reusing those and those textures everytime, saving a whole world of memory[/i][/u][/color].

How can I do that, may someone help me?

[u][color=#000000][b]If you want to answer just one question:[/b][/color][/u]
[u][color=#000000][b]Can I redraw a VBO at a relative position?[/b][/color][/u]

Thank you very much. Edited by Caburé

Share this post

Link to post
Share on other sites
As far as I understand... you dont want to bind VBO once and render it several times but render it also once with multiple output meshes
Technique you are looking for is called geometry instanceing
check this:
But there are several things to check before using it
OpenGL 3.2 / Geometry shader support
For GLSL version try this:

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement