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.

3 Dimensional Chat / 2d & 3d.

Author
Message
I wanna be a guru
20
Years of Service
User Offline
Joined: 24th Jan 2006
Location:
Posted: 18th Jul 2006 03:17
hi, i've loaded a background image as 2d sprite.
now i want to display a 3d model on top of it.

also, i want to alloow the background image to scroll in teh positive x direction, revealing more of the background image, as the 3d model moves into the same direction.

any ideas?
RUCCUS
21
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 18th Jul 2006 05:55
If you've read any tutorials this should be extremely simple for you to figure out. Id recommend going back and looking through them again as the first tutorial that comes with DB tells you how to load objects and manipulate them.

I know you're just starting out, but people dont like it when you just ask a question without trying yourself. If you look in the help file that comes with DB you would've gotten all of your answers, look in the 3D section for loading objects.

As far as scrolling the background you apply what you know about 2D (or what you should know by now) and use some basic logic. When the object moves right, you want the background to scroll left. Texture a plain with the background image, itll be easier. Then, always have the camera align with the object. As the object moves, the camera will move, meaning the backdrop area visible will change.


Projects: Online CTF Game | Newcommer's Guide to FPS's
I wanna be a guru
20
Years of Service
User Offline
Joined: 24th Jan 2006
Location:
Posted: 18th Jul 2006 06:47
ah, sorry i was not aware of the tutorials.

thank you, will try em out!
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 18th Jul 2006 13:37 Edited at: 18th Jul 2006 13:37
Quote: "hi, i've loaded a background image as 2d sprite.
now i want to display a 3d model on top of it."


to make a 3D object appear over a sprite, turn backdrop off, and then use the command draw to back



It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.

Login to post a reply

Server time is: 2026-07-27 05:10:47
Your offset time is: 2026-07-27 05:10:47