• Advertisement
Sign in to follow this  

realtime rendering

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

I want to render the motion of a character model in runtime but the character model is not loaded from file. so, more than 50 times every second updated model of how to create Direct3D path for vertex are drawn?

Share this post


Link to post
Share on other sites
Advertisement
in brief, i'm not loading model from .x file. I'm creating and processing polygons in my physics engine.

but i dont know how to send realtime processed vertices to directx in runtime ?

any answer would be very helpfull.

thanks.

Share this post


Link to post
Share on other sites
Create a vertex buffer with D3DUSAGE_DYNAMIC. Every frame: lock it, copy your stuff into it, unlock it, bind it, render it, unbind it.

Share this post


Link to post
Share on other sites
thanks for your reply.

can you show me some code example ? because i'm newbie at directx.

Share this post


Link to post
Share on other sites
i have one more question.

is it possible to compute the operations in gpu which are in physics engine ?

can i use nvidia's cg or something else for this operations?

Share this post


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

  • Advertisement