Sign in to follow this  

[C++, Direct3D9]One function or what ?

This topic is 4356 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've read tons of lessons of Direct3D. I understand how matrices works and what actually is a matrix but all the lessons make simple 3D fugure like cube or pyramid they (authors of the tutorial) are using DrawPrimitive Function with parameters for drawing Triangle List. Maximum number of primitives is near 1500 for my computer (it depends on the device). If I need to draw figure with more that 1500 primitives what I should do ? [Edited by - Illuminate on January 11, 2006 11:49:38 AM]

Share this post


Link to post
Share on other sites
The MaxPrimitiveCount in D3D in a per-call maximum. If you need to draw more than that, you'll have to make multiple DrawPrimitive() calls (e.g., first draw the first 1500, then the remaining 500 primitives of a 2000-triangle mesh).

Typically meshes are divided into subsets for batching purposes anyhow.

Share this post


Link to post
Share on other sites
1500 primitives is an extremely small number. Are you sure it is correct? What kind of graphics card do you have? The max for my ATI Radeon 9800 Pro is over 1 million.

Either way, jpetrie has the answer.

Share this post


Link to post
Share on other sites

This topic is 4356 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.

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