Hi,
Does any one can help me to implement Bezier Curve Functionality using DirectX 9. and C#.
I have done it using GDI+ , but unable to implement it in DirectX.
Thanking You
Manish Roy
Bezier Curve
Started by ManishRoy, Dec 18 2007 05:51 AM
4 replies to this topic
#1
Posted 18 December 2007 - 05:51 AM
#2
Posted 18 December 2007 - 06:35 AM
What precisely do you need help with?
reedbeta.com - developer blog, OpenGL demos, and other projects
#3
Posted 18 December 2007 - 11:45 AM
Need to Draw Bezier Curve in DirectX ..
#4
Posted 18 December 2007 - 06:28 PM
I'm assuming you just want to draw it? Wherein GDI you just supply a single MoveTo command with subsequent LineTo calls to draw out the curve, in DirectX you can do the same thing. It supports the ability to draw lines. The most efficient way to do it is to prepare a single vertex array and dump them all in one draw call.
http://www.nutty.ca - Being a nut has its advantages.
#5
Posted 18 December 2007 - 10:12 PM
We can show you the 20 lines of code how to get the vertices of a line-strip that approximates a bezier, but there are 1001 pages on the net that does the same. It's so little work that we might do it however..
But: we won't do the work to allocate an vertex array, fill it, setup the renderstates ect. That work is up to you. If you're looking for cut'n'paste code we can't help you.
Btw - bezier curves are *very easy*. The most simple kind of curves that exist!
If you're able to get a Direct3D window on the screen and display a mesh or two it should be a matter of four hours to get a bezier-curve on the screen, including learning all that simple math from scratch. Unless you're just a code-monkey of cause.
But: we won't do the work to allocate an vertex array, fill it, setup the renderstates ect. That work is up to you. If you're looking for cut'n'paste code we can't help you.
Btw - bezier curves are *very easy*. The most simple kind of curves that exist!
If you're able to get a Direct3D window on the screen and display a mesh or two it should be a matter of four hours to get a bezier-curve on the screen, including learning all that simple math from scratch. Unless you're just a code-monkey of cause.
My music: http://myspace.com/planetarchh <-- my music
My stuff: torus.untergrund.net <-- some diy electronic stuff and more.
My stuff: torus.untergrund.net <-- some diy electronic stuff and more.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











