Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / make object frustum [DBP function]

Author
Message
Yian
21
Years of Service
User Offline
Joined: 16th Jun 2003
Location: Nicosia, Cyprus(the Greek half)
Posted: 29th May 2006 19:21 Edited at: 29th May 2006 19:22
this is for people who for some very strange reason need a frustum...maybe they're making the lower part of a hot air balloon envelope.Maybe not.Here it is :

you can specify base radius,small radius and height

A study done by William Speyer, who was a victim of prison rape in 1989, shows that 34% of [prison] rape victims released from prison become child molestors.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 7th Jun 2006 15:04 Edited at: 7th Jun 2006 15:06
Very cool that, was wondering how you could do that.


Ps. have to you check out the DBO Modeling Challenge thread.

http://forum.thegamecreators.com/?m=forum_view&t=79681&b=1&p=0

I'm not getting you down am I, Ho Look! another fancy Door?
Yian
21
Years of Service
User Offline
Joined: 16th Jun 2003
Location: Nicosia, Cyprus(the Greek half)
Posted: 8th Jun 2006 12:55
well basically I make a cylinder and change the radius of each side.
to do this I move the points above/below the cylinder's middle,inwards towards the cylinder xz center or outwards for a larger radius..
thanks a lot for viewing!
right now I'm quite busy but I checked out that thread and it looks very interesting!

What is happening to them[the children] is the only thing they've known. The whole system of values is turned upside down: a child is appreciated and loved if it earns money by stealing
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 8th Jun 2006 13:56 Edited at: 8th Jun 2006 14:05
That is pretty cool. And close to what I've been using. This may be a bit faster. I modified it to use your function parameters for easier comparison and added a Pyramidal frustum for culling collision and such as well. Frustum shaped objects have many uses.



HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 11th Jun 2006 00:52
Lit get some great cone shape with a negitve number in small_r#.

I'm not getting you down am I, Ho Look! another fancy Door?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Jun 2006 06:12
Yian with your code be able to make disc with holes in them.




I'm not getting you down am I, Ho Look! another fancy Door?
Yian
21
Years of Service
User Offline
Joined: 16th Jun 2003
Location: Nicosia, Cyprus(the Greek half)
Posted: 15th Jun 2006 13:08
thanks for the input guys! interesting code there Lost !
nice to see these effects with the various values

What is happening to them[the children] is the only thing they've known. The whole system of values is turned upside down: a child is appreciated and loved if it earns money by stealing

Login to post a reply

Server time is: 2024-11-23 03:26:44
Your offset time is: 2024-11-23 03:26:44