Does anyone have any links for this? I used to but every time I google this I get stupid Photoshop, Blender, GIMP, or other tutorials for other apps that I could care less about.
I know I can start with a geometric primitive like a tetrahedron, dodecahedron, cube, etc, and recursively split it to arrive at my sphere but I forget exactly how to do that.
Something like that maybe?Code:void CIcoSphere::Split(Vertex &Result,Vertex v1,Vertex v2,Vertex v3) { D3DXVECTOR3 vec1=v1.Pos-v2.Pos; D3DXVECTOR3 vec2=v1.Pos-v3.Pos; D3DXVec3Lerp(&Result.Pos,&vec1,&vec2,0.5f); D3DXVECTOR2 vecU=v1.TexCoord1-v2.TexCoord1; D3DXVECTOR2 vecV=v1.TexCoord1-v3.TexCoord1; D3DXVec3Lerp(&Result.TexCoord1,&vecU,&vecV,0.5f); }
I'm abandoning UV spheres in my game engine because texturing them is far too problematic.



LinkBack URL
About LinkBacks


