Sphere Sky graphic

Hey

How exactly should look sky graphic spherical file? Got any examples in .png or jpg? Can i convert square sky to spherical? Do u know any tools?

The tutorial links to this example and mentions Terragen and Bryce.

You can also construct a sky from separate square images representing the 6 sides of a cube.

I’m using this texture for spherical sky map: http://scr.hu/1trj/7izx8 (Size: 5200x3200 - i also tried smaller) but the result in game is: http://scr.hu/1trj/lo7pf

Update: Even when i use box map there a same problem ; /

There is nothing magic in a skybox (or a skysphere).

Look at the image that @sgold gave to you (the second link): you can see that the sky appear to be a bit weird, like deformed. This will result in a “seamless” and “good” sky, where a “normal” image will result in what you got.

Did you already played to some game with a changing field of view ? For exemple in minecraft, when you run your view become a bit larger, but also a bit deformed. A skybox need an image with a fov of 360° (or something related to that i didn’t do precise researchs on this topic. I am maybe completly wrong lol).

tl;dr : you cannot use “normal pictures” for your sky. If you want to use a spherical skybox you need a deformed image and if you want to use a cube box you need to have a tiled image. Google “skybox” and have a look, you’ll understand.

P.S. : you also have some pretty softwares to create skybox, like spacescape.

1 Like

I’ve created a skybox with six normal images before and it looked fine. But you do have to have an image for each side… and they have to match at the edges.

Probably easier to find a prebuilt sky or use one of the tools available.

@pspeed said: I've created a skybox with six normal images before and it looked fine. But you do have to have an image for each side... and they have to match at the edges.

Probably easier to find a prebuilt sky or use one of the tools available.

An environment cube can’t have any ol’ images on its sides, the images needs to be warped to look like they are projected on a sphere when they actually are projected on a cube. But depending on the images (starry night for example) it might not obvious where the corners are even if the images aren’t warped.

Emil Persson of Avalanche has a nice set of free images for cube maps:
http://www.humus.name/index.php?page=Textures

1 Like

Argh. Even when i use image with FOV it suck: http://scr.hu/1trj/fo59r

here’s the graphic:http://www.bzfusion.net/skymaps/sky_lightblue.jpg

How are you creating your sky?

I load and later add it to scene:

[java]Spatial sky = SkyFactory.createSky(assetManager, “Textures/sky.jpg”, true);
rootNode.attachChild(sky);[/java]

Almost looks like the image gets projected upside-down, try to flip it vertically and see what happens, yeah, I’m just guessing :slight_smile:

I flipeed but there’s a same result. Its ugly

Is it possible to scale size of sphere of sky? i saw smth in .createSky method