chronozphere
04-02-2007, 11:08 AM
Hi there. 8)
At the moment, i'm polishing my Texture-mapping routines.
And i ran into a few problems.
http://www.techzine.nl/f/g/36261phptOHaGc.jpg
http://www.techzine.nl/f/g/36261phpe0JVUG.jpg
http://www.techzine.nl/f/g/36261phpZYaTlG.jpg
{hope the images have acceptable sizes:) }
As you see, the cube looks fine but the sphere, cylinder and the cone have some artefacts at the top and the bottom. :(
I think i know why:
I want to map the texture to a sphere like a worldmap is mapped onto earth. This is all possible but i'll end up with one problem.
The top and bottom vertices (north-pole and south-pole) repersent the top and bottom edge of the worldmap/texture.
So basicly, a whole edge must be wrapped to one point.
So i cannot specify good texture coordinates for these two because the U coordinates should have a range from 0,0 to 1.0.
This way i'll end up with some weird artefacts at the top and bottom of all sphere/cylinder like geometries.
Moreover.. the bottom of the cone doesn't look to good either. :(
I've googled but i didn't find much info on Texture-mapping.
Does anyone have a sollution??
Any help would be greatly appreciated.
At the moment, i'm polishing my Texture-mapping routines.
And i ran into a few problems.
http://www.techzine.nl/f/g/36261phptOHaGc.jpg
http://www.techzine.nl/f/g/36261phpe0JVUG.jpg
http://www.techzine.nl/f/g/36261phpZYaTlG.jpg
{hope the images have acceptable sizes:) }
As you see, the cube looks fine but the sphere, cylinder and the cone have some artefacts at the top and the bottom. :(
I think i know why:
I want to map the texture to a sphere like a worldmap is mapped onto earth. This is all possible but i'll end up with one problem.
The top and bottom vertices (north-pole and south-pole) repersent the top and bottom edge of the worldmap/texture.
So basicly, a whole edge must be wrapped to one point.
So i cannot specify good texture coordinates for these two because the U coordinates should have a range from 0,0 to 1.0.
This way i'll end up with some weird artefacts at the top and bottom of all sphere/cylinder like geometries.
Moreover.. the bottom of the cone doesn't look to good either. :(
I've googled but i didn't find much info on Texture-mapping.
Does anyone have a sollution??
Any help would be greatly appreciated.