Drawing Curves and Lines
-
- Posts: 77
- Joined: Sat Jul 08, 2006 5:55 am
- Location: Cyberjaya, Malaysia
Drawing Curves and Lines
1. How do I draw a curves (both 2D and 3D) in Irrlicht?
2. How do I draw lines with different thickness in Irrlicht?
Thanks!
2. How do I draw lines with different thickness in Irrlicht?
Thanks!
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
which kind of curves do you need? There is no spline support in Irrlicht as of now, but you can use the linestrip primitives to approximate curves (manually).
Line thickness can only be done using OpenGL, DX does not support line thickness (we will have to mimick it with small polygons, but that will be done much later).
Line thickness can only be done using OpenGL, DX does not support line thickness (we will have to mimick it with small polygons, but that will be done much later).
-
- Posts: 81
- Joined: Sun Sep 09, 2007 7:01 pm
- Location: BW, Germany
-
- Posts: 81
- Joined: Sun Sep 09, 2007 7:01 pm
- Location: BW, Germany
-
- Posts: 81
- Joined: Sun Sep 09, 2007 7:01 pm
- Location: BW, Germany
-
- Posts: 77
- Joined: Sat Jul 08, 2006 5:55 am
- Location: Cyberjaya, Malaysia
if you want to draw splines, you'll have to implement it yourself.
It is not very hard, here is a link :
http://www.gamedev.net/reference/progra ... /page2.asp
It explains you how to use splines in 2d, but the adaptation in 3d is not very hard.
Note that there is a mistake in the parametric equations:
should be
It is not very hard, here is a link :
http://www.gamedev.net/reference/progra ... /page2.asp
It explains you how to use splines in 2d, but the adaptation in 3d is not very hard.
Note that there is a mistake in the parametric equations:
Code: Select all
x = At^3 + Bt^2 + Ct + D
y = Et^3 + Ft^3 + Gt + H
Code: Select all
x = At^3 + Bt^2 + Ct + D
y = Et^3 + Ft^2 + Gt + H