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, Ayumi), 773 guests, and 3 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 3 of 5 1 2 3 4 5
Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: Superku] #420908
04/06/13 05:55
04/06/13 05:55
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Indeed!


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: alibaba] #420909
04/06/13 07:48
04/06/13 07:48
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
I have problems with selection the right LOD stages for the terrain (something with distance calculation and stuff...)
but i could do a 2D terrain system for sure with this technique (but i don't know what's about collision)


Visit my site: www.masterq32.de
Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: MasterQ32] #421952
04/28/13 22:54
04/28/13 22:54
Joined: Mar 2013
Posts: 30
Portugal
J
joao13pt Offline OP
Newbie
joao13pt  Offline OP
Newbie
J

Joined: Mar 2013
Posts: 30
Portugal
Hi! Im back and happy smile
You guys have been helping me a real lot with this! And i thank you all!
Some questions still remain in my head:
-Where to start?
-About the cube to sphere conversion, love the idea! But wait, using a cube model would't seem right. That leaves me with terrains. So, how do i rotate 6 terrains in order to produce a flawless cube? I've been trying some "homemade" algorithms, but none have worked..
-I love math, so, please, give me mathematic algorithms! I've red a lot both on perlin noise and on procedural planets, but it's mostly just blogs of people telling what they've done. I don't want just to know what they've done, i want to know HOW they've done it. What algorithms, what procedures, i want to actually know they path they used in the programming language, so that i myself can get a clue on what i should do get the same result in Lite-C
So, once again, help me

thanks

Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: joao13pt] #422345
05/07/13 19:50
05/07/13 19:50
Joined: Mar 2013
Posts: 30
Portugal
J
joao13pt Offline OP
Newbie
joao13pt  Offline OP
Newbie
J

Joined: Mar 2013
Posts: 30
Portugal
Really loved it if someone could continue answering to this topic, pleeeeeease smile

Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: joao13pt] #422349
05/07/13 20:00
05/07/13 20:00
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
create a cube out of 6 "models"

each of those models gets transformed via shader to build a sphere (just normalize each vector to 1)

each of those models is made out of a quad tree which subdivides the surface of the model into more polygons if necessary (just a distance check for camera will do it in most of the cases)

i've made a quick test with a plane mdl which is in the range of [-1,0.5,-1] to [1, 0.5, 1]

you need to set the scale and position for each entity representing a part of quadatree manual, but it works pretty good if work with XNA tutorials as a template


Visit my site: www.masterq32.de
Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: MasterQ32] #422383
05/08/13 17:53
05/08/13 17:53
Joined: Mar 2013
Posts: 30
Portugal
J
joao13pt Offline OP
Newbie
joao13pt  Offline OP
Newbie
J

Joined: Mar 2013
Posts: 30
Portugal
Ok, so i work with GameStudio and im not doing this out of actual models, but out terrains. So, to build a cube i'll need 6 faces, that is, 6 different terrains. 1 will remain normal, the other 5 will have to rotated to get the cubic shape. This is one of my first obstacles, because transforming a cube to a sphere, the part about subdivision, all of those things i can manage to get there with a little research, i've actually red a lot of things by now. But this is my first "pain in the ass" obstacle, and i can't get past this because, in GameStudio it's said that terrains cant be moved and/or rotated, this really screws this whole project for me because it wouldn't make sense to use an actual model. Yes, those can be moved and rotated, but it just doesn't make sense to use a sphere model as an earth-like terrain
Are you understanding my problem? It's this one problem that just won't let me keep going with this project, i don't know how people do it, something is missing in my way of thinking

Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: joao13pt] #422386
05/08/13 18:35
05/08/13 18:35
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
please don't use terrains!
you can't rotate them (because of LOD reasons and terrain chunk clipping)

just use models, in your case they aren't a bit faster than normal models


Visit my site: www.masterq32.de
Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: MasterQ32] #422496
05/11/13 14:45
05/11/13 14:45
Joined: Mar 2013
Posts: 30
Portugal
J
joao13pt Offline OP
Newbie
joao13pt  Offline OP
Newbie
J

Joined: Mar 2013
Posts: 30
Portugal
Thanks! Finally i know where and how to start
but to make an earth-like model i'd have to create a HUGE cube, to later transform it into a sphere (or could i make a sphere model right away?)
Will it still be possible to use subdivion algorithms with 3d models? I got the ideia that in GameStudio those would only work with terrains
But in the end, to simulate an actual universe where you could get lots of detail and actual terrain variations when close to each planet, wouldn't be possible with gamestudio's terrains because these can't moved and/or rotated, therefore my universe would be completely static
you have helped me alot! thank you! laugh

Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: joao13pt] #422497
05/11/13 14:47
05/11/13 14:47
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
the problem with a sphere model is that you cannot do math that easy as with a cube.
just use a shader which normalizes each vertex position before modifying it with matView and matProjection.
Then you will get a sphere. The subdivision is made with models you don't subdivide the models. Gamestudio also cannot subdivide terrains


Visit my site: www.masterq32.de
Re: From a simple 3D Sphere to a real-size Planet. Need help! [Re: MasterQ32] #422543
05/12/13 12:36
05/12/13 12:36
Joined: Mar 2013
Posts: 30
Portugal
J
joao13pt Offline OP
Newbie
joao13pt  Offline OP
Newbie
J

Joined: Mar 2013
Posts: 30
Portugal
When i have enough time i'll try some stuff with GameStudio and eventually will post the results here
Procedural Planets are really hard but the motivation is greater than the dificulty
thank you!

Page 3 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