Skybox and skydome showing seams

Hello,



When I use a simple gradient texture or a circular gradient texture for my skybox or skydome, the seams show brightly. Is there anyway to fix this in code or is it an issue with my texture? If it’s my texture, can someone show me a sample of a simple gradient texture that doesn’t show seams?



Screens:

http://imgur.com/KKi0x

http://imgur.com/2H2BP

http://imgur.com/n9LZE



Textures:

http://imgur.com/RdlAB

http://imgur.com/e2kJh



Thoughts would be appreciated. thanks

http://hub.jmonkeyengine.org/groups/contribution-depot-jme3/forum/topic/jmonkeyengine-tutorial-how-to-create-skymaps-using-blender/

Your texture is for spheremap. You should set your skybox to spheremaping.



I do not remember exactly but something like:

skybox.setSphereMap(true);



Something like that…

It seem SphereMapping is broken. I have the same problem as @rsdl .



http://i.imgur.com/EVYc5.png



My code:

[java]

TextureKey skyhi = new TextureKey(“Textures/skyboxes/skybox_01.png”, true);

skyhi.setGenerateMips(true);

skyhi.setAsCube(false);

Texture texhi = assetManager.loadTexture(skyhi);

Geometry sp = (Geometry) SkyFactory.createSky(assetManager, texhi, true);

rootNode.attachChild(sp);

[/java]



My Texture:

https://rise-of-mutants.googlecode.com/hg/dev/trunk/TechDemo/assets/Textures/skyboxes/skybox_01.png



I think something is with Optics.glsl.



@nehon can you have a look at this?

AAAAHHHHHH! Now I understand. It seems SphereMapping method works like SkyDome Mapping. Now it’s understood.



Here is described this method: oZone3D.Net Tutorials - The Art of Texturing Using The OpenGL Shading Language

And a textures should be like this one: http://www.ozone3d.net/tutorials/images/glsl_texturing/spheremap_bar.jpg



@nehon , sorry for bothering.

you’re welcome :stuck_out_tongue: