Hi everybody,
First thanks to the community for all the anwsers I’ve seen and helped me a lot. Next, sorry for my English if I do some mistakes.
I’m trying to texturing a sphere with a big picture (4096px). I now there is a limitation of 2048px and it’s certainly not a problem from away3D but OpenGL or something like that.
So I decided to create two hemisphere (half-sphere) and texture each one. So, i cut my photosphere in two part and now I’ve two textures.
First of all, I tried to create a new class called HemisphereGeometry inspired of the SphereGeometry class, but i couldn’t do it.
Next, I tried to make an hemisphere with LatheExtrude with a piece of code written by Mr.Closier (I’m not sure about the name…) :
var aPoints:Array = [];
var profile:Vector.<Vector3D> = new Vector.<Vector3D>();
var pt:Vector3D;
var lathe:LatheExtrude;
var radius:Number = 400;
var angle:Number = 90; //(any number greater than 90)
var step:int = 1;
for(var i:int = 0; i <= angle; i += step){
pt = new Vector3D();
pt.y = Math.cos(-i/180*Math.PI) * radius;
pt.x = Math.sin(i/180*Math.PI) * radius;
pt.z = 0;
profile.push(pt);
}
lathe = new LatheExtrude(sphereMaterial, profile, LatheExtrude.Y_AXIS, 1, 20, true,false, false);
And it works fine to generate the geometry but new I can’t texture it correctly. I try some tricks, like rotating uv’s…Etc but it doesn’t works.
So, finally I decided to make a sphere in blender, cut it in half and create new material, with a spherical mapping and somes settings but when I export in obj (or .3ds, or .Dae) Uv and texture mapping options are not conserves, even if I check ‘export uv’, ‘export normals’..etc I think i’ve already tried all combinaisons of Obj’s export’s setings ^^
So i try to unwrap my hemisphere with spherical settings, and now I can see something better in Away Builder. But the textures isn’t fit correctly…
When I textured a sphere, all is ok and automatics, but with an hemisphere it looks more complicated.
I just would like to know if someone has already done it or if you have some advices it can be great
Thanks to read my post, if you need more informations, just ask me
Best wishes