Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


Geometry Parametrically


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Saurabh Torne   Members   -  Reputation: 220

Like
0Likes
Like

Posted 16 February 2013 - 08:08 AM

Hi,

I want to create geometry without worrying about efficiency of drawing. I'm looking for a ways to draw triangles with Triangle list or triangle strip but without index buffers. It would be great to get some pointers or samples for doing it in dx.

Reply,

Saurabh


Got a Game? Get Reviews and Links.Free and Honest Publicity never Hurts!ITnauts.com

Sponsor:

#2 Nik02   Crossbones+   -  Reputation: 3435

Like
1Likes
Like

Posted 16 February 2013 - 08:37 AM

Just use IDirect3DDevice9::DrawPrimitive instead of DrawIndexedPrimitive (on D3D9 and earlier) and ID3D11DeviceContext::Draw instead of DrawIndexed (on D3D11).

 

You'll waste some bandwidth and GPU processing power if you duplicate your vertices, but if your index calculation is complex for some reason (dynamic geometry, for example), you may actually save time on non-indexed drawing.


Edited by Nik02, 16 February 2013 - 08:37 AM.

Niko Suni


#3 Pyrocute   GDNet+   -  Reputation: 331

Like
0Likes
Like

Posted 19 February 2013 - 03:58 AM

Thanks Nik02 :)



#4 Nik02   Crossbones+   -  Reputation: 3435

Like
0Likes
Like

Posted 19 February 2013 - 05:11 AM

You're welcome :)


Niko Suni





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS