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 / sky box tutorial

Author
Message
Yu Une
21
Years of Service
User Offline
Joined: 26th Apr 2004
Location: under my own little rock
Posted: 25th May 2004 00:35
I tryed looking for a sky box tutorial but couldn't find any, help.
Yu Une
21
Years of Service
User Offline
Joined: 26th Apr 2004
Location: under my own little rock
Posted: 25th May 2004 02:50
Or deos DB use sky boxes? Cause I ran across when I got my BD cd it has a Darkmatter demo on it, in the demo it has a sky sphere.
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 25th May 2004 17:30
You can use either a skybox or a skysphere... All you have to do to make a skybox/sphere is...
1) Load The Image you want to texture the skybox/sphere with.
"Load Image "filename.bmp",[img#]
2) Create A Sphere Or Cube With A Negative Object Size.
"Make Object Cube -5000,[obj#]" or "Make Object Sphere -5000,[Obj#]"
3) Texture your skybox/skysphere with the image you loaded.
"Texture Object [Obj#],[Img#]
4) Set The skysphere so it is not light or fog sensetive.
"Set Object [Obj#],1,1,1,1,0,0"
SET OBJECT Object Number, Wire, Transparent, Cull, Filter, Light, Fog, Ambient
5) Near the end of the main loop, position the skybox/sphere at the cameras position.
"Position Object [Obj#],Camera Position X(),Camera Position Y(),Camera Position Z()"

Well... I hope I helped...

Previously known as "Game_Creator".
The question is, why am I talking to myself? ...... And more importantly, why am I waiting for a reply?
Yu Une
21
Years of Service
User Offline
Joined: 26th Apr 2004
Location: under my own little rock
Posted: 26th May 2004 11:20
Thanks GameKit.

Login to post a reply

Server time is: 2025-05-24 08:13:24
Your offset time is: 2025-05-24 08:13:24