Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

TeeCee

Dynamic Vertex Buffer confusion!

This topic is 5968 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

Hi all, I just wondered if anyone out there could help me with a question re. dynamic Vertex Buffers: If I have an object (say, a cube) whose vertices are held in a Vertex Buffer,and it is moving around in my game world, does this mean I need a dynamic Vertex Buffer? Or do I simply move the cube around using its own transform matrix, which I then set as the world matrix when needed? If this is the case, then the only reason I can see for having dynamic VB''s is if the object''s vertices change relative to one another (i.e. being deformed / changing shape etc). Is this correct? I would be sooo grateful if anybody could shed some light on the subject. Thanks, Tony.

Share this post


Link to post
Share on other sites
Advertisement
I never heard the term "Dynamic Vertex Buffer".What about it?
As anyone can just see the movement of the cube in world coordinate(view coordinate) but the local coordinate.It is not necessary to use dynamic vertex buffer I think.

goddess just one...

Share this post


Link to post
Share on other sites
A dynamic vertex buffer is one that can be constantly locked and reloaded with new vertex data as your application processes. A static vertex buffer is one that you set once with vertex data and resuse the same data during the course of your application.
Dynamic vertex buffers are great for drawing a large amount of polygons that change. If you have a single object that will never change, then use a static buffer - the static buffer is faster if used in hardware.

Jim Adams

Share this post


Link to post
Share on other sites
Jim,
when you say "polygons that change", do you mean ploys that change shape (i.e. deform) as opposed to polys that simply move around (rotate, translate etc.)
Tony.

Share this post


Link to post
Share on other sites
I should have worded that better It''s not really the same polygons that have to be drawn, any polygon can be drawn. One frame, you can draw a thousand colored polygons (of any mix of colors) and the next frame you can add a 100 colored polygons and 200 textured polygons. There''s not consistancy required.

Jim Adams

Share this post


Link to post
Share on other sites
Oh, so dynamic really refers to the buffer itself rather than dynamic objects, is that correct?
i.e. the actual contents of the buffer keep changing (?)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!