Similar Threads:
1.Changing vertex color after vertex buffer and index buffer definition
Hi,
Say you have this custom vertex structure:
struct CUSTOMVERTEX
{
float x, y, z;
DWORD color;
};
Is it possible once you've defined values for a vertex
buffer using that structure to subsequently change the
color for a vertex that you defined? If so, how?
Thanks :)
2.Problem cleaning up after using vertex buffer.
Ok.. so I tried to take my first step to create a 3D object with VertexBuffers but I have a problem cleaning up. For some reason, after I do CreateVertexBuffer call and I try to exit the application, it keeps saying "reference count for D3D object is non-null". I am releasing the vertex buffer before I exit the application, and I'm using D3DPOOL_MANAGED for vertex buffer.
Am I missing an important step here? Tutorial doesn't really have any special clean up either but it works fine for tutorials and samples. If anyone can give me few pointers or things to watch out for, I would appreciate it. Or if anyone can tell me what I"m doing wrong, that would even be better. ^^; Thanks.
3.Animation using Vertex Buffer Objects
If I want to animate a large model stored in a VBO, does that mean I
have to map the buffer to change the value every frame of animation?
It seems like that would drop the framerate considerably.
4.vertex buffer, index buffer
there is setup time internally both for a VB and for a particular
FVF/components. its less if you stay with the same format/stride, but there
is still some cost with switching just the VB.
minimize it if you can without heroic rewriting, but dont worry about it if
its a huge rewrite unless you measure thats a significant factor in your
particular performance signature.
tools are required for measurement. VTune or other static performance
analysis tool and a dynamic analysis tool like Pix that shows your API usage
per frame is good, you can zero in on most issues that way.
"Hanna-Barbera" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...
> Hi,
>
> Does switching VB and IBs a lot cost too much?
> Is it better to store multiple things to be rendered in one VB/IB?
> Is it considered one of the costliest things, that must be dealt with.
> What about the size of the buffers.
> I know 16 bit indices are recommended, which is what I use.
>
> I know my question is abstract, but I would like to know in relative
> terms,
> compared to swithcing textures, switching shaders, and so on.
>
> Right now, my engine may be switching texture, and VB and IB per object.
> Shader are not switched so often cause the object's share the same shader.
>
> Thanks
>
>
5.Large Vertex Buffers and Vertex Streams?
6. Vertex Arrays, Vertex Buffer Objects
7. How to set the Precision of Depth Buffer in GLUT
8. Vertex buffer and multiple matrices?