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 / 2d mixed with 3d

Author
Message
Radio Check
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location:
Posted: 19th Aug 2004 07:06
Can I use 2d drawing commands with 3d objects already used?

See code for example

I want to draw a console around the screen for my space shooter game.

Thanks

People who put funny sayings in their sig should..... wait a minute.
Darksyde
21
Years of Service
User Offline
Joined: 13th Sep 2003
Location: Staffordshire, UK
Posted: 19th Aug 2004 07:13
if you're using DBPro try,

make object sphere 101,10

do
position object 101, 10,10,100
line 10,10,100,100
loop



Im willing to find out what impossible means.
Radio Check
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location:
Posted: 19th Aug 2004 07:59
No, I'm using DBC, but that works anyway. Thanks!

People who put funny sayings in their sig should..... wait a minute.
Radio Check
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location:
Posted: 19th Aug 2004 08:39
Hmm... is that the only way? Or should I use bitmaps for consoles and reticules? The lines seem to blink a lot, I'm guessing that "make object" includes a refresh or something.

People who put funny sayings in their sig should..... wait a minute.
Darksyde
21
Years of Service
User Offline
Joined: 13th Sep 2003
Location: Staffordshire, UK
Posted: 19th Aug 2004 20:28
You've got it Yer I'd recommend using bitmaps or other image files to create the HUD for your game. Not sure bout DBClassic but in pro;

set image colorkey 0,0,0

will set the parts of the loaded images that are (0,0,0) to transparent...



Im willing to find out what impossible means.
Radio Check
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location:
Posted: 19th Aug 2004 21:44
Quote: "set image colorkey 0,0,0
"


Heh... that was going to be the next question. Thanks.

People who put funny sayings in their sig should..... wait a minute.
SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 20th Aug 2004 02:44
In Classic, it's also possible to make the HUD images into sprites which will lay on top of the 3D display unless you set the draw sprites first command. With sprites, you can draw, print, etc. to them then capture the result as an image and paste it to the sprite for the HUD.

Any truly great code should be indisguishable from magic.

Login to post a reply

Server time is: 2024-11-27 06:52:25
Your offset time is: 2024-11-27 06:52:25