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 / Skybox won't work

Author
Message
cochran2904
15
Years of Service
User Offline
Joined: 28th Mar 2011
Location: at my computer
Posted: 22nd Jul 2011 08:54
I am trying to get my skybox to work on my map but it just keeps messing up. When i size it to be small, it is too small. And when i size it to be bigger my guy and his shack are lifted wayyy off the ground. I'll attach some screenshot's.


My Code:


Too Small:


Too Big:
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 22nd Jul 2011 12:52
Is the ground supposed to be the lower surface of the sky box? If so then you probably need to work out what it's y position ought to be. I guess you need to position it higher so that it's in the correct position in relation to the shack.
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 23rd Jul 2011 00:50
I think this might be an autocam issue. Try using autocam off?

cochran2904
15
Years of Service
User Offline
Joined: 28th Mar 2011
Location: at my computer
Posted: 23rd Jul 2011 08:20
Neither of those worked :/
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd Jul 2011 16:02
It's easier to do this with a complete example - it doesn't have to be your whole code, in fact it's preferable if it's not, but it should be a small piece of code that you can use to demonstrate the problem and that we can use to show you what's wrong with it.

For a skybox example, see the attached project (it needs my free plug-ins to compile).

2Beastmode4u
15
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 24th Jul 2011 02:15
I tried that with a different skybox, in a different code, and it worked, but, whenever I move, the sky turns back to blue and changes back when I'm still.


Cheers.

God help me, Please.
Mychal B
15
Years of Service
User Offline
Joined: 21st Jul 2010
Location: Coos bay, rainville
Posted: 24th Jul 2011 05:27
a couple things I would do is...

Make sure your camera range is big enough

Make sure the box is to some extent below you "because your inside
the box"

update the box to your position each loop, making sure that you also lower the Y value

The fastfood zombie killer
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 25th Jul 2011 15:19
No need to worry about camera ranges using the technique I've uploaded - the skybox in my example is, I believe, only 10 units in size.

@2Beastmode4u,
Post some code.

2Beastmode4u
15
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 25th Jul 2011 19:31
Quote: "@2Beastmode4u,
Post some code."


Ok.




Cheers.

God help me, Please.

Login to post a reply

Server time is: 2026-07-10 10:20:14
Your offset time is: 2026-07-10 10:20:14