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 / simple 3d objects

Author
Message
Witch Bomber
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location: Scotland
Posted: 17th Feb 2003 01:19
Can you declare simple 3d objects like rectangular prisms or triangular prisms in Dark Basic code?
Those of you who think you know everything are annoying to those of us who do.
QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 17th Feb 2003 06:20
wow man, you *really* need to learn how to use the resources given to you (help files!)

make object cube
make object cone
make object sphere
make object triangle
make object cylinder

...duuhh
Mike Inel
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Sa upuan ko po...
Posted: 17th Feb 2003 07:08
A newbie, indeed.

Shadow
22
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 17th Feb 2003 12:59
rectangular prisms - make object box
triangular prisms - Can't do that. Have to make your own with modeller program.
Witch Bomber
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location: Scotland
Posted: 17th Feb 2003 16:46
Raven: I know how to make objects such as cube, cone, sphere, triangle, cylinder. That was not what I was asking-obviously you are a newbie to the English language(typical American). Just becuase a cube is a rectangular prism doesn't mean a rectangular prism is a cube.

I've looked at make object box in the help files and I'm still not entirely sure how to use it.

Those of you who think you know everything are annoying to those of us who do.
Daz
21
Years of Service
User Offline
Joined: 26th Dec 2002
Location: United Kingdom
Posted: 17th Feb 2003 17:16
How come when I do:



I don't see anything?

DarkBASIC Professional is the best programming utility.
8/10 Housewives agree!
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 17th Feb 2003 17:19
witchbomber:

Raven is right- read the help files. And please, dont diss the 'elders'

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 17th Feb 2003 17:35
Hi Witchbomber,

"make object box #, width, height, depth"

So just replace the values. You can indeed make a rectangular prism with this command. Try different values for each dimension to see the effect.

You can't make a triangular prism though although technically it's only 2 triangles and 3 planes so you could construct one from primitives if you really wanted. But personally I reckon it'd be far faster to make one in a 3D package as suggested already.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Witch Bomber
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location: Scotland
Posted: 17th Feb 2003 19:52
RPG: I did look at the help files, I was just not entirely sure how to use the command, that's why I asked on the forum. Again, another American not reading what I said.

Daz: You don't see anything because you have given all the triangle's vertices the same coordinates. Try something like

I think that should give you a right angled triangle with two 45 degree angles.

Those of you who think you know everything are annoying to those of us who do.
Witch Bomber
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location: Scotland
Posted: 18th Feb 2003 02:03
I'm trying to make a cylinder. In the make cylinder command, what does the parameter size refer to - radius, or height; and how do you alter the height and keep the radius the same?

Those of you who think you know everything are annoying to those of us who do.
Witch Bomber
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location: Scotland
Posted: 20th Feb 2003 19:27
How come when I do

I don't see the cylinder

Those of you who think you know everything are annoying to those of us who do.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 20th Feb 2003 19:45
Because you're over 700 units away from the object! If you were a little closer the chances of seeing it would be higher.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Witch Bomber
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location: Scotland
Posted: 20th Feb 2003 22:33
That shouldn't be the problem. I have triangles in the same program further away that I can see fine.

Those of you who think you know everything are annoying to those of us who do.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 21st Feb 2003 01:05
Position the camera to 295,1000,-1500 and the cyclinder appears.

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Witch Bomber
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location: Scotland
Posted: 23rd Feb 2003 17:49
I know now. You can't see cylinders from the top. That will make the graphics on my game look stupid now.

Those of you who think you know everything are annoying to those of us who do.

Login to post a reply

Server time is: 2024-11-24 03:33:24
Your offset time is: 2024-11-24 03:33:24