Sign in to follow this  
meanwhile

Uploading geometry

Recommended Posts

[quote name='meanwhile' timestamp='1318655127' post='4872751']
Can you "upload" geometry to the GPU like you upload textures?
Looping through all my meshes ten times per frame is somewhat ugly.
[/quote]

your thinking about geometry shaders and putting a mesh through that , i got this explained to me the other day
geomery shaders are good for poins lines and quads, you can throw 1,000,000 structs for particles at this and the fram rate stays good, but for complicated data , as in meshs you need to use instancing still

Share this post


Link to post
Share on other sites
[quote name='meanwhile' timestamp='1318752244' post='4873070']
Thanks! That cleared things up a bit for me.

[quote]What do you mean by 'looping through your meshes'?[/quote]

I meant sending millons of GlVertex3f for each frame.
[/quote]

glvertex3f is a part of the deprecated immediate mode and hasn't really been used in professional games for ages (in computer time).

Vertex Arrays have been supported since OpenGL 1.1 (1997) , and Vertex Buffer Objects since 1.5 (2003). (Current version is 4.2).

[s](Vertex Arrays are a part of the now deprecated fixed function pipeline, but they are still significantly better than immediate mode glVertex calls)[/s] (Incorrect, see BBs post below)

Share this post


Link to post
Share on other sites
[quote name='SimonForsman' timestamp='1318766197' post='4873101']

(Vertex Arrays are a part of the now deprecated fixed function pipeline, but they are still significantly better than immediate mode glVertex calls)
[/quote]

No, vertex arrays are not deprecated. What is deprecated is the ability to store vertex arrays in user managed memory. Today you must store the vertex arrays in a buffer object and driver managed memory, but you still need the vertex array mechanism to draw the vertex buffers. VBO by itself doesn't do anything but store vertex data.

Share this post


Link to post
Share on other sites
Hidden
[quote name='Brother Bob' timestamp='1318769090' post='4873109']
[quote name='SimonForsman' timestamp='1318766197' post='4873101']
(Vertex Arrays are a part of the now deprecated fixed function pipeline, but they are still significantly better than immediate mode glVertex calls)
[/quote]

No, vertex arrays are not deprecated. What is deprecated is the ability to store vertex arrays in user managed memory. Today you must store the vertex arrays in a buffer object and driver managed memory, but you still need the vertex array mechanism to draw the vertex buffers. VBO by itself doesn't do anything but store vertex data.
[/quote]

Vertex arrays are deprecated. What is deprectated is the ability to store vertex information in user managed memory (aka Vertex Arrays). Today you store the vertex [i]information[/i] in a buffer object and driver managed memory, but you still need a mechanism (which happens to be the same as that used for Vertex Arrays) to draw the vertex buffers. VBO or VA by itself doesn't do anything but store vertex data.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this