Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, VoroneTZ), 769 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 5 1 2 3 4 5
From a simple 3D Sphere to a real-size Planet. Need help! #420390
03/25/13 01:52
03/25/13 01:52
Joined: Mar 2013
Posts: 30
Portugal
J
joao13pt Offline OP
Newbie
joao13pt  Offline OP
Newbie
J

Joined: Mar 2013
Posts: 30
Portugal
The title says it all, but i will show you this video just to completelly understand what i want to do with 3D GameStudio
here

I'm working on a space simulation, and i've learned quite a bit about programming in Lite-C in the process. I actually got the idea from the game shown in the video, it has amazing graphics and scenery
But THAT one thing that i just can't understand is how game developers do this: While in space, the planet looks like a simple 3D Sphere, but the closer you get, the more detail it has. Then, at a point, it goes from a round model to a "flat" terrain surface. And then you can go back in space and watch it lose detail, and start to appear round again, etc...
I hope you understand my question

Thank you very much, im really enjoying my experience with GameStudio

Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: joao13pt] #420393
03/25/13 06:48
03/25/13 06:48
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Hey, this technique is called LoD or Level of Detail. Models gain more and more dedails the closer you get and in contrast they loose details if you the distance between the camera and the model gets bigger.

Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: PadMalcom] #420398
03/25/13 08:38
03/25/13 08:38
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
hi

I think they used a much more complex thing than simple LOD, like a spherical chunked terrain that looks like : http://imageshack.us/a/img202/3064/62479621.png and http://imageshack.us/a/img717/541/35220357.png , but it is not supported by any game engine natively, I'm afraid you have to write your own mesh generain and texturing, if you want both good performance and high terrain detail. or maybe by setting a couple of planet and terrain entities invisible/visible can do the trick in 3DGS too, to simulate a planet from any distance. anyway, it is an interesting topic in game creation.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: sivan] #420413
03/25/13 14:38
03/25/13 14:38
Joined: Mar 2013
Posts: 30
Portugal
J
joao13pt Offline OP
Newbie
joao13pt  Offline OP
Newbie
J

Joined: Mar 2013
Posts: 30
Portugal
I really needded to know how this is done, so thank you both for your replys, i really apreciate it laugh
I had heard about LODs, in some games it's very easilly noticiable when LODs are changing, like in Oblivion, for example, or any of these space games
I've been thinking alot about this, and with your replys, i think i have an ideia on how to do it: in space i'll just use the Sphere model, and when entering the planet's atmosphere, previously made terrains will start to be generated in their exact positions. So, at a distance but already in the planet's atmosphere, the terrains will be connected to each other by curving their edges, and this curve will start to be less and less noticiable when aproching the ground
I'll keep on researching, now that i actually know the techniques used.
Thanks again for those replys!

Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: joao13pt] #420415
03/25/13 14:49
03/25/13 14:49
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
sounds easy but will be hard to make it smooth laugh


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: sivan] #420421
03/25/13 18:59
03/25/13 18:59
Joined: Apr 2005
Posts: 653
Germany
D
Det Offline
User
Det  Offline
User
D

Joined: Apr 2005
Posts: 653
Germany
It looks great very realistic the space and the Asteroids and the Mother Ship.Great Work. What Gamestudio Version you use for this ?


Wissen ist macht.
Nichts wissen macht auch nichts.

A7.86
Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: Det] #420423
03/25/13 19:51
03/25/13 19:51
Joined: Mar 2013
Posts: 30
Portugal
J
joao13pt Offline OP
Newbie
joao13pt  Offline OP
Newbie
J

Joined: Mar 2013
Posts: 30
Portugal
I didn't create what is shown in the video x) I'm hopping to learn how to create something close to it
Now im stuck in the "procedural planet generation" part, and this sucks because i don't even know where to start..

Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: joao13pt] #420426
03/25/13 20:27
03/25/13 20:27
Joined: Apr 2005
Posts: 653
Germany
D
Det Offline
User
Det  Offline
User
D

Joined: Apr 2005
Posts: 653
Germany
Ok then you have to learn to make it like this.Maybe some one in this Forum can give you some Tips to learn it.It loos not so easy to do this.


Wissen ist macht.
Nichts wissen macht auch nichts.

A7.86
Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: Det] #420483
03/27/13 10:27
03/27/13 10:27
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
I would use a sphere model for water (if needed) and another for ground, and a generated heighmap for the latter, to modify its vertices or use a shader to do it. based on the heightmap you could blend surface textures too. just as a first thought, but there should be some articles with ideas of it.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: sivan] #420630
03/30/13 13:53
03/30/13 13:53
Joined: Mar 2013
Posts: 30
Portugal
J
joao13pt Offline OP
Newbie
joao13pt  Offline OP
Newbie
J

Joined: Mar 2013
Posts: 30
Portugal
So far im stuck, i can't find a decent mathematical algorithm to transform the terrain, vertex by vertex, into a sphere
i've been googling this, non stop
"how transform 2d plane to sphere" "mapping terrain on a sphere"(...) i've searched in many different ways and i can't get anywhere. Im stuck now and if anyone here could help me with this algorithm i'd appreciate it a lot
i don't want to work with those shader techniques, for now i want only to use ent_getvertex and ent_setvertex to change each vertex's position
now, how do i turn a "flat" terrain, into a round sphere, vertice by vertice?
thanks in advance

Page 1 of 5 1 2 3 4 5

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1