Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualtcige

Posted 26 April 2013 - 08:21 AM

I am using it for my particle system, for me visually there is no noticeable difference between these and standard sin/cos. Why not try and see?

 

thanks, i will try and this remind me of the 'hacker's delight'

 

then what about Bresenham, can it be used in D3DFVF_XYZ


#5tcige

Posted 26 April 2013 - 08:20 AM

belfegor, on 26 Apr 2013 - 21:58, said:
I am using it for my particle system, for me visually there is no noticeable difference between these and standard sin/cos. Why not try and see?




thanks, i will try and this remind me of the 'hacker's delight'



then what about Bresenham, can it be used in D3DFVF_XYZ

#4tcige

Posted 26 April 2013 - 08:19 AM

belfegor, on 26 Apr 2013 - 21:58, said:
I am using it for my particle system, for me visually there is no noticeable difference between these and standard sin/cos. Why not try and see?




thanks, i will try and this remind me of the 'hacker's delight'



then what about Bresenham, can it be used in D3DFVF_XYZ

#3tcige

Posted 26 April 2013 - 08:19 AM

belfegor, on 26 Apr 2013 - 21:58, said:
I am using it for my particle system, for me visually there is no noticeable difference between these and standard sin/cos. Why not try and see?




thanks, i will try and this remind me of the 'hacker's delight'



then what about Bresenham, can it be used in D3DFVF_XYZ

#2tcige

Posted 26 April 2013 - 08:16 AM

So do I understand you correctly that you want to draw a filled shape (circle in this case) and use Bresenham's algorithm (which is used mostly for drawing circle contour) ?

 

The difference between D3DFVF_XYZRHW and D3DFVF_XYZ is that the RHW version skips vertex shader / projection part ie. it assumes that the data is already transformed. D3DFVF_XYZ doesn't skip transformation and projection so you'll need to provide a correct world, view and projection matrix in order to draw correctly.

 

If you are drawing 2d shapes on the screen then the RHW version should do the trick. However, you may accomplish the same with D3DFVD_XYZ but you'll need correct matrices for it to work correctly. Do you need to draw circles in 3d space?

 

Cheers!

 

yeah, that's what i mean, in 3d space

 

even i increase the radius and adjust the parameter of D3DXMatrixLookAtLH to suit the radius, the effect is awful
 


#1tcige

Posted 26 April 2013 - 08:13 AM

I am using it for my particle system, for me visually there is no noticeable difference between these and standard sin/cos. Why not try and see?

 

 

thanks, i will try and this remind me of the 'hacker's delight'

 

then what about Bresenham, can it be used in D3DFVF_XYZ


PARTNERS