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.

DarkBASIC Discussion / Help: background and 3d object

Author
Message
Anto
19
Years of Service
User Offline
Joined: 30th Oct 2005
Location: Brisbane, AUS
Posted: 24th Jan 2007 13:21
G'day

I've been having trouble trying to sort out what I'm trying to do. What I trying to do is main menu with full bitmap image as background, and a 3d object to display on the front. (I used load image or load bitmap command for background)

The trouble I'm having is 3d object is always behind the image. when try bring it front of it, I lose the background and end up standard DB Blue background.

Hope you can help thanks

Anto
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Jan 2007 15:15
DRAW TO BACK
This command will set all 2D drawings to be placed behind any 3D that may be rendering to the screen. Though it is not recommended for performance reasons to draw 2D whilst displaying 3D, in cases where it is required this command will ensure text, art and other images are placed behind any 3D graphics.

TDK_Man

Anto
19
Years of Service
User Offline
Joined: 30th Oct 2005
Location: Brisbane, AUS
Posted: 2nd Feb 2007 12:48
TDK, I've been trying draw to front or draw to back command, been playing with it in my code, still couldn't get it right

Anto
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 2nd Feb 2007 13:45
Post your code so we can see how your doing it.

To make a code snip type:
[ code ]
Your code here.
[ /code ]

If you remove the spaces between the brackets we see this:


Anto
19
Years of Service
User Offline
Joined: 30th Oct 2005
Location: Brisbane, AUS
Posted: 2nd Feb 2007 14:16
i just copy and paste from my code



hope you can see what i'm doing wrong there

Anto
Anto
19
Years of Service
User Offline
Joined: 30th Oct 2005
Location: Brisbane, AUS
Posted: 4th Feb 2007 11:14
Guys, Can you see what I'm doing wrong up there?

Thanks, Anto
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 4th Feb 2007 18:04
See if the attached program helps.

I've just used my own media and it works perfectly. If you change the lines to use your media and it doesn't work, then it's a 3DS issue.

TDK_Man

Attachments

Login to view attachments
Anto
19
Years of Service
User Offline
Joined: 30th Oct 2005
Location: Brisbane, AUS
Posted: 6th Feb 2007 11:56
TDK,

Thank you big time mate, I got it working using your code, I don't know why mine didn't work. might be something to do with where I put Draw to Back command.

Thanks heaps, Anto

Login to post a reply

Server time is: 2025-05-26 05:18:45
Your offset time is: 2025-05-26 05:18:45