Nice, I'm currently trying to get a sphere with a texture on it, with a procedurally generated height map but i cant figure out how to marry the two. i dont suppose you could lend some hints?
Translate your height value in to an increase in sphere vertex distance from centre of the sphere. If you imagine the heightmap texture wrapped around the sphere (like a world map), then each sphere vertex will fall on a particular texture pixel in that map rectangle. It's just a case of working out which pixel the vertex falls on.
Yeah i was thinking along those lines. have a diagram here somewhere of slicing the sphere along some axis and taking the vertex point along the radius to the centre of the sphere. but i dont know how to do 2 things, make a sphere, or load the sphere as a mesh object and modify the vertex co-ordinates
Nice, I'm currently trying to get a sphere with a texture on it, with a procedurally generated height map but i cant figure out how to marry the two. i dont suppose you could lend some hints?
MrDobilina 2 years ago
Translate your height value in to an increase in sphere vertex distance from centre of the sphere. If you imagine the heightmap texture wrapped around the sphere (like a world map), then each sphere vertex will fall on a particular texture pixel in that map rectangle. It's just a case of working out which pixel the vertex falls on.
duckocide 2 years ago
Yeah i was thinking along those lines. have a diagram here somewhere of slicing the sphere along some axis and taking the vertex point along the radius to the centre of the sphere. but i dont know how to do 2 things, make a sphere, or load the sphere as a mesh object and modify the vertex co-ordinates
MrDobilina 2 years ago
whats the sense of this game,i dont know it so could someone explain me what to do in this game?
Sprayer000 2 years ago
Like WOW! How cool does that look!
NemoKradXNA 3 years ago
Thanks ... Your XNA routines are pretty damn special as well. Texture generators still need a bit more work, but they are just about there now.
duckocide 3 years ago