Is there any Irrlicht function available to create truncated cones?
Given radius1 , radius2 and height and the position and rotation of the node, I need to draw a truncated cone.
I appreciate any help.
Thanks in advance.
Drawing a truncated cone
Re: Drawing a truncated cone
See my code snippet to create a frustrum mesh:
http://irrlicht.sourceforge.net/forum/v ... =9&t=45413
Regards,
smso
http://irrlicht.sourceforge.net/forum/v ... =9&t=45413
Regards,
smso
-
- Posts: 41
- Joined: Thu Feb 27, 2014 10:55 am
Re: Drawing a truncated cone
Your code works like a charm. I'm really interested to know your tessellation algorithm to find the triangle vertices. The vertices count is a bit high and I'd like to reduce it.
-
- Posts: 41
- Joined: Thu Feb 27, 2014 10:55 am
Re: Drawing a truncated cone
Please add some comments in your code to understand its' working.
-
- Posts: 41
- Joined: Thu Feb 27, 2014 10:55 am
Re: Drawing a truncated cone
It would have been better with updateRadius, updateHeight functions Because I never know how much scale I should set in each direction.