Rendering nearest data in application.

Hi there,

I have a lot of data in example in VBO or sth like that and i want to display only nearest data to “user eye” - is there any solution ?

I mean if you play e.g. GTA you can see that new elements are rendered on demand.

Thx for rep’s :slight_smile:

PS. I’ve come up with solution to check position and if “if” is positive render element - but it’s the simpliest and probably not efficient with a lot of data…

You should organize your geometry in a spatial subdivision structure, for example a kd-tree, bounding volume hierarchy, octree or regular grid. This problem is not as easy as it seems and has been the topic of much research over the years.

As a matter of fact I’m using spatial subdivisions - cubes (builded from quads). But all vertices are in one table - vbo.

What’s GTA? Or more importantly, what exactly is the effect you’re after?

GTA = Grand Theft Auto. A typical FPS (first person shooter) style game. I assume he wants efficient culling of his data to render only whats required.

Exactly - thats it.

I’ve thought about preparing data on every sceene render, and data would be depending on camera position.

with a lot of data it will be super inefficient and slow :stuck_out_tongue:

Thanks for sharing this useful information. It’s great.

taux pret auto - taux pret auto differe selon la rise en compte … calculent automatiquement le taux pour un prêt automobile donne.