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 Professional Discussion / Backdrop not appearing (maybe?) Newbie Problem

Author
Message
CocaCola
16
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 20th May 2011 07:52


I'm trying to get my camera to look down on my cube (Yes, I use Y for up and down instead of Z) but everythings black, with a blue backdrop even if my cameras not looking at my cube it should be blue, shouldn't it? (Please don't comment on me not using camera 0 )

Always program as if the person maintaining your program is a psychopath that knows where you live
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 20th May 2011 08:20
There is no sync before LOOP. Sync is needed before loop.

-In.Dev.X: A unique heavy story based shoot'em ~25%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
CocaCola
16
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 20th May 2011 09:11 Edited at: 20th May 2011 09:11
Lol, just came back to DBP after a few months Java game modding. Thanks!

EDIT: why is the backdrop green? And I still can't see my cube, is the camera facing the right way?

Always program as if the person maintaining your program is a psychopath that knows where you live
Scraggle
Moderator
23
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 20th May 2011 09:48 Edited at: 20th May 2011 09:52
Quote: "why is the backdrop green?"


The default camera (camera 0) has a default blue backdrop and you are also setting it to blue. However, you then create a second camera (camera 1) which has a default backdrop colour of green.

Quote: " And I still can't see my cube, is the camera facing the right way?"


You have positioned the camera 60 units above the cube and then rotated the camera about the x axis (effectively turning it to the right). Instead of using rotate camera, try using point camera 1, x, y, z

It is also the default camera (camera 0) that you are rotating not camera 1 which is the one you are using.

[Edit] Just noticed that you asked us not to comment on you using camera 1 but that is what the problem is. It's like asking what is wrong with my code but please don't point out the errors.

Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 20th May 2011 12:38
I hate to start new projects because it is always a struggle for me to find where are the damn objects and where is the camera facing

-In.Dev.X: A unique heavy story based shoot'em ~25%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 20th May 2011 14:28
Use autocam off with position camera+point camera and you shouldn't have any problems ().

It helps to use position object as well. Then you should know exactly where everything is.

Login to post a reply

Server time is: 2026-07-11 15:52:26
Your offset time is: 2026-07-11 15:52:26