Hello, fellow Swede!

Is your problem how to tesselate the sphere? The easiest is to use polar coordinates, but a geodesic one will look better.

http://www.gamedev.net/community/forums/topic.asp?topic_id=283350

Please log in or register to post a reply.

Hello, fellow Swede!

Is your problem how to tesselate the sphere? The easiest is to use polar coordinates, but a geodesic one will look better.

http://www.gamedev.net/community/forums/topic.asp?topic_id=283350

@geon

Hello, fellow Swede!

Is your problem how to tesselate the sphere? The easiest is to use polar coordinates, but a geodesic one will look better.

http://www.gamedev.net/community/forums/topic.asp?topic_id=283350

I have some spherical triangles on a sphere and wants the coordinates of all points inside the spherical triangle. Not a normal triangle a spherical one.

I tested this and I think its works

```
for(int i = 0; i < samples; i++)
{
for(int j = 0; j< samples; j++)
{
for(int k = 0; k < samples; k++)
{
D3DXVECTOR3 p = offset*i*Vvec[0] + offset*j*Vvec[1] + offset*k*Vvec[2];
D3DXVec3Normalize(&p, &p);
```

@geon

You might be interested in this: Stratified Sampling of Spherical Triangles

This was very nice,:) thanks

- Upcoming Multiplatform Game Program...
- Our first game - looking for feedbacks
- Network Emulation Tool
- Trouble with accessing GLSL array
- Fiction
- Game Programming Patterns: Bytecode
- Interactive WebGL Water Demo
- Skeletal Animation Tutorial with GP...
- Unreal Engine 4
- Microsoft xbox one selling poorly

I have a unit sphere partition in to spherical triangles. For every triangle have a three positions, (xyz), (xyz) and (xyz). Now i want to step throw all the points on the triangles and then convert them to texture coordinates on a cube map.

Converting worlds positions to cube maps position i got working but stepping throw all positions on a spherical triangle i have hard time doing for a given resolution.

Now I am using some random samples for every triangle.