Skybox 2d-3d projection
UncleCrunch
Mayonnaise land Join Date: 2005-02-16 Member: 41365Members, Reinforced - Onos
in Mapping
I saw the Tutos on skybox and how to make it.
I see sometimes that images are a little stretched near the corners of the skybox.
Do we have to use a equi-rectangular image ? (see panorama software).
Or can we just make the 6 images and the engine will do the texture mapping coordinates itself ?
If so; then comes the seamless problem. Any experienced and talented guy for this ?
TIA
Comments
You've got the complete environmental scene generating software like DreamScape, Vue and Terrainagen, they're fairly powerful. There's a fairly interesting 3d terrain generator called world machine it is probably the most powerful/realistic terrain generator I've seen but the learning curve is bit steeper than the others. I decided against using them because they have this very distinctive, artificial look to the worlds they generate but a lot of people seem to use them for their skyboxes. The easiest way I found to convert a 3d environment into a 2d cube (in 3ds max only) is the wall worm helper called skywriter, get it here
There's also a fairly decent tutorial I found on stitching photos together if you decide to go that route, but requires 3ds max and z brush knowledge:
As for my own skybox; after researching and playing with these programs for a few weeks I decide to just stick to what I know. So I used zbrush for the terrain, baked down the lighting on the 3d model. Then used sky writer to render a basic metal ray 2d skybox which I just painted over in photoshop. The scene has two suns so this way the lighting for both the 2d and 3d skybox matched up.
I made two big mistakes with the 3d model, its too overbearing, having it lower down and further away would be much nicer visually. It also goes under the the player when it should just be a ring around the horizon line. You live and learn.
My advice is not to overwork the 2d skybox Its more about a setting the mood and the scene. 2d Skyboxes are never perfect and spark doesn't have the strongest feature set to help you realize the greater environment with. Using a composite method of big smooth colours/gradients and manipulated photos will probably do the trick just fine tbh. You can always do a lot of the 3d outer environment in the level itself. For the 3d skybox photos wrapped around on cylinders are also really effective done right. Again It doesn't have to be perfect as people will be more focused on the level design.
A note with using 3d skyboxes in spark; The skybox entity position in the world is relative to the players position. keep its origins as close to 0,0,0 in both the map and the cinematic editor or it wont be positioned correctly in the players view.
Hope that helped