Direct3DIM blending
I''ve seen the Direct3dIM demo come with DirectX6 SDK called
"Bend:Surface Skinning Example" and I wonder how that can be done?
(I''m planning to use it on OpenGL)
Hi
Bending is a very simply task, as long as you wan''t to do simple bending like the DirectX Example.
You need an Object, which you wan''t to bend. This is normaly representated with an list of Vertices, and an Indexlist, describing which Vertices are connected.
Now for bending, the only think you have to do is transforming the Vertices with different Matrices. For example, take all Vertices left from the middle, and rotate them right, and then rotate the others left. if you do this about the correct Axe, you get some smooth Bending.
Some of the new Graphic Cards like the G-Force support this kind of Multiple-Matrix-Transformation in Hardware. This is also supported with DirectX 7. Maybe Nvidia has some OpenGL Extensions in there new Drivers, but i am not shure about that.
Lars
Bending is a very simply task, as long as you wan''t to do simple bending like the DirectX Example.
You need an Object, which you wan''t to bend. This is normaly representated with an list of Vertices, and an Indexlist, describing which Vertices are connected.
Now for bending, the only think you have to do is transforming the Vertices with different Matrices. For example, take all Vertices left from the middle, and rotate them right, and then rotate the others left. if you do this about the correct Axe, you get some smooth Bending.
Some of the new Graphic Cards like the G-Force support this kind of Multiple-Matrix-Transformation in Hardware. This is also supported with DirectX 7. Maybe Nvidia has some OpenGL Extensions in there new Drivers, but i am not shure about that.
Lars
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement