DoOoOody

Hi everybody,

Can anyone help me using CatMullRom function,i wanna draw a curve through difining points by mouse,so how can i do that either using this function or another way




Re: Game Technologies: DirectX 101 using CatMullRom

Wessam Bahnassi

Once you have the points defined, you can call the CatmullRom function to interpolate between them. But it won't help you create these points of course. You'd probably want to take a look at the code for some 2D graphing library/program that can draw curves with CatmullRom (I'm not aware of any that uses CatmullRom though... sorry).




Re: Game Technologies: DirectX 101 using CatMullRom

Bad Habit

Here's a place where there's an explaination and example code

http://www.mvps.org/directx/articles/catmull/