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.

Author
Message
Eternal Darkness
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Area 51
Posted: 5th Apr 2004 14:27
Yes i know their are lots of threds on them , but none of them really tells you how to make them and lock it into position.

It's Not The Cards Your Dealt , It's How U Play Them
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 5th Apr 2004 18:06
http://curvedbasic.dbspot.com

go onto the darkbasic tutorials and see the skybox one.

BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th Apr 2004 18:15
You make them with a 3D modeller, such as Milkshape. It simply a box, with the texture on the inside. If you need more help at this stage, you need to look into the modeller you are using, not DB.

You don't "lock" them into position. Put it in your scene, resize it to something suitable, then keep it centred at the camera position. This way, you never reach the each and see crappy, jagged graphics, it's always in the distance.

Hope this helps get you started.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 5th Apr 2004 20:16
The Most Simple Way To Make A Skysphere Is To...

Make Object Sphere [size](Make The Size A Negative Number),[Object Number]
Texture Object [Object Number],[Texture Number](Because The Sphere Has A Negative Size, It Textures The Inside)

Then, Near The End of the Main Loop, Type...
Position Object [Object Number],Camera Position X(),Camera Position Y(),Camera Position Z()

Make Sure The Size Of The Sphere Is A Negative Number, And Large Enough That You Can Still See The Distance You Want. You May Also Want To Add Fog, And Set The Skysphere So It Is Not Light or Fog Sensative.
Well... I Hope That Helps.

Do not thwart the way of the dragon. For thou tasteth like chicken.
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 7th Apr 2004 16:38
Quote: "You May Also Want To Add Fog, And Set The Skysphere So It Is Not Light or Fog Sensative."


What does that do, I'm intrigued.

Another technique I've seen is to set culling off, so the Skybox can be smaller than your camera limit, but the scenery shows through it.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 7th Apr 2004 17:31
Hmmm... Setting Culling Off My be a good idea also...

If you set the skysphere's size to a little less than the camera limit and add fog it will make objects far off gradually appear instead of just appearing due to them being outside the skysphere and/or camera limit. You have to set the skysphere fog and light sensativity off so you can still see the texture through the fog, and so the sky doesn't get darker or lighter because of lights in the scene.

Do not thwart the way of the dragon. For thou tasteth like chicken.

Login to post a reply

Server time is: 2025-05-23 08:37:54
Your offset time is: 2025-05-23 08:37:54