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.

Newcomers DBPro Corner / Triangles, baby!

Author
Message
Daz
21
Years of Service
User Offline
Joined: 26th Dec 2002
Location: United Kingdom
Posted: 19th Mar 2003 21:23
I'm having difficulty using the MAKE OBJECT TRIANGLE command.
Could I have an example, say, creating a triangle similar to the one found in the DarkBASIC logo?

Cheers,

Daz
DarkBASIC Professional is the best programming utility.
8/10 Housewives agree!
Dr DooMer
21
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 19th Mar 2003 21:34 Edited at: 19th Mar 2003 21:34
Now then, the naming of this function is a little deceptive! Depending on what you perceive a triangle to be, you would expect this function to either create a 3D shape with volume (like a prism or a pyramid), a 2D shape stamped onto the screen in the same way as a sprite, or a triangle orientated within 3D space. This function does that latter.

What this actually does is create a single polygon, with each of it's three vertices orientated in 3D space based on the values you pass to it. It's entirely possible to make the DB pyramid with this function, but you would need to call it six times - once for each of the triangular sides and then twice for the square underside. Personally, I find it's usefulness limited, but I'm sure there's a few people out there that do something with it...

If you already knew this and actually do want to make something in this manner, just give me a kick for rambling on like a fool.

Hope this helps!

"I am a living, thinking entity who was created in the sea of information."
Daz
21
Years of Service
User Offline
Joined: 26th Dec 2002
Location: United Kingdom
Posted: 22nd Mar 2003 21:42
No, never knew that, why did they have to call it MAKE OBJECT TRANGLE, as many of us..err...n00bs would like to just make a pyramid with the simplicity of making a cube, maybe.

Cheers,

Daz.

DarkBASIC Professional is the best programming utility.
8/10 Housewives agree!
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 23rd Mar 2003 02:02
If there were a make object pyramid command, there would be over 15 parameters.

(3 points for each of its 5 sides)



I can see why they didn't make it a command.

Unless it was a square pyramid.

"All programmers are playwrights and all computers are lousy actors."

-Anon.

[href]www.geocities.com/andrew11m[/href]
Dr DooMer
21
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 24th Mar 2003 04:31
I know what you mean. Really, I think it should have been called "make object polygon". I think they called it triangle for the benefit of new users, but it didn't really work out. Ho-hum.

"I am a living, thinking entity who was created in the sea of information."

Login to post a reply

Server time is: 2024-11-24 07:30:38
Your offset time is: 2024-11-24 07:30:38