Hi. Any clues on how to apply a spherical texture on a dome? It seems to me that my texture is applied with cilindrical coordinates by default. Thanks
Maybe texture a sphere then use a clip plane to remove the bottom half??
Dome is built in in jme and it is an half sphere. My question was about the texture coordinates that applies to it.
sphere.setTextureMode( Sphere.TEX_PROJECTED ); --> creates visually stretched texture
or
sphere.setTextureMode( Sphere.TEX_ORIGINAL ); --> Default, I think this is what you are trying to get away from
Thanks basixs. Seems its starting to work using a sphere and Sphere.TEX_PROJECTED.
basixs said:
Maybe texture a sphere then use a clip plane to remove the bottom half??
Can u explain a bit further how to do so?
ClipState clipState = display.getRenderer().createClipState();
clipState.setEnableClipPlane(ClipState.CLIP_PLANE0, true);
clipState.setClipPlaneEquation(0, 0.5f, 0.5f, 0,0);
rootNode.setRenderState(clipState);
Also, check out the clipState demo