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 / How do you convert Skymatter skybox to a skysphere?

Author
Message
Cruise McClarren
19
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 1st Nov 2009 18:30
I have been trying to figure this out and can't seem to get it to work. I can make the sky box fine(or use the skymatter .x file which does the same thing) but I want it to be wrapped around in a sphere. (I am using TrueSpace 7.6 as my modeller if I need to use a modeller to do it) I tried making a box in the modeller and texturing all sides and then smoothing the box to a sphere but it didn't work. How can I do this? What is the best and most efficient way to do it? Thanks!!

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Xgame101
15
Years of Service
User Offline
Joined: 22nd Jul 2009
Location: Michigan
Posted: 2nd Nov 2009 15:02 Edited at: 2nd Nov 2009 15:10
A Sky Box and a Sky Shpere are 2 different creatures really. In a Sky Box you have multiple images placed on the inside of a cube which has certain advantages and disadvantages. In a Sky Sphere you will usually have a single image placed on the inside of a sphere.

I can't think of a way to get good results taking the images from a box and placing them on a sphere. Good Sky Sphere images require good images.

I use the DB commands to make an inverted sphere rather than create it in a modelling program :


Iv'e attached a starfield image I use as the base for my sky system as well as the base 'blue sky' image I use. Experiment with them and you'll see they can be easy to make and look good I use sets of nested spheres of decreasing sizes to create my skies. Rotating the spheres can create very nice effects.

Edit: make sure your camera range is set so you can see the sphere You may have to flip your Images to get them oriented the way you want.

Xgame101
1024 Studios

Attachments

Login to view attachments
david w
19
Years of Service
User Offline
Joined: 18th Dec 2005
Location: U.S.A. Michigan
Posted: 2nd Nov 2009 15:38
I have to agree with Xgame101. There is no easy way to do what you ask. Also using spheres in spheres is a very good way to make convincing skys.
Cruise McClarren
19
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 2nd Nov 2009 15:40
Thanks I will put that idea to use

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 2nd Nov 2009 16:28 Edited at: 2nd Nov 2009 16:30
Actually there is an easy way, easy but time consuming. I wrote a little program that loads a skybox, then renders a single skysphere texture from that - it can even be added to a project and used to capture the 3D scene as a fully rotatable image, looking around like a static camera... Is handy for adding matching terrain to a skysphere, make your skysphere from the actual DBPro scene - continuity=win.

I'll post the code later, have to find it first. But it does work, I've used it quite a lot.


Health, Ammo, and bacon and eggs!
Cruise McClarren
19
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 2nd Nov 2009 21:53
I'll check back. Thanks Van!!

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 2nd Nov 2009 22:19
Here you go...

2 versions, one of them is for placing in your game engine and converting 'live'.


Health, Ammo, and bacon and eggs!

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-06-27 04:57:45
Your offset time is: 2025-06-27 04:57:45