|
Re: From a simple 3D Sphere to a real-size Planet. Need help!
[Re: joao13pt]
#420639
03/30/13 15:54
03/30/13 15:54
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
Expert
|
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
just take spherical coordinates(x=alpha, y=beta) and convert them via sin and cos to 3d space (vec_rotate((1, 0, 0), (alpha, beta, 0))) this won't give you a uniform distribution, but a spherical shape
|
|
|
Re: From a simple 3D Sphere to a real-size Planet. Need help!
[Re: MasterQ32]
#420648
03/30/13 19:38
03/30/13 19:38
|
Joined: Mar 2013
Posts: 30 Portugal
joao13pt
OP
Newbie
|
OP
Newbie
Joined: Mar 2013
Posts: 30
Portugal
|
just take spherical coordinates(x=alpha, y=beta) and convert them via sin and cos to 3d space (vec_rotate((1, 0, 0), (alpha, beta, 0))) this won't give you a uniform distribution, but a spherical shape Being said like that i don't really know what to do xD sorry i understand a thing or two about trigonometry, so maths isn't a problem for me, i just need "exact guidance" if you understand what i mean im using the c.x,y,z (not the DX coordinates, but actual world coords) now i'd like to transform my "flat" terrain into a round, sphere-like mesh would you be so kind as to explain a little better your idea please? x) thanks for your help
|
|
|
Re: From a simple 3D Sphere to a real-size Planet. Need help!
[Re: ryanhagz]
#420664
03/31/13 11:17
03/31/13 11:17
|
Joined: Apr 2005
Posts: 274 austria
Ascalon
Member
|
Member
Joined: Apr 2005
Posts: 274
austria
|
|
|
|
Re: From a simple 3D Sphere to a real-size Planet. Need help!
[Re: Ascalon]
#420701
04/01/13 03:52
04/01/13 03:52
|
Joined: Mar 2013
Posts: 13 United States, New Jersey
ryanhagz
Newbie
|
Newbie
Joined: Mar 2013
Posts: 13
United States, New Jersey
|
Thanks for that Ascalon! While it wasn't quite what i was looking for, it was still very helpful. I found the concept of storing the algorithms to make the image instead of the image itself interesting especially since I know the racing game " Fuel" used this same concept to develop their terrain (which happens to be the biggest map on any console; 14,000Km^2). While the game itself was kind of lame, it's interesting how they did the terrain. This video kind of talks about how they did it using procedural generation. He starts off by comparing othe well known open world games with huge maps. If you'd like to see the bit about Fuel skip to around 1:00. http://www.youtube.com/watch?v=HhyyUiYQolA
|
|
|
|