Page 1 of 1

Planet Renderer

Posted: Fri Aug 13, 2010 3:36 am
by Trimmy
I 'm working on a planet renderer for my current project which has been quite a challenge for me but I have managed to produce some results close to what I want to achieve. I'm just wondering if anyone has any good resources on the subject or can give some advice from their own knowledge and experience. I've found some good resources but they're pretty vague on their techniques.

The technique I'm using is mapping a cube to a sphere which makes the vertices a lot more evenly spaced, each face of the cube/sphere is it's own terrain. I've managed to produce a cube thats almost a sphere but it's slightly mis-shapen. I'm currently sort of re-writting it, working on one component at a time.

Thanks to anyone in advance who can be of any help.

Re: Planet Renderer

Posted: Fri Aug 13, 2010 4:30 am
by pritam
Have a look at UVsphere and Icosphere you might get some ideas from that.

I found this in the Blitz code archives, they may be of use to you.
http://blitzbasic.com/codearcs/codearcs.php?code=2539
http://blitzbasic.com/codearcs/codearcs.php?code=2695

Re: Planet Renderer

Posted: Fri Aug 13, 2010 4:35 am
by K-Bal
Some inspiration

<object width="500" height="405"><param name="movie" value="http://www.youtube.com/v/DCzDKj3hjOE?fs ... ram><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DCzDKj3hjOE?fs ... 0&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="405"></embed></object>[/youtube]

http://www.youtube.com/watch?v=DCzDKj3hjOE

Re: Planet Renderer

Posted: Fri Aug 13, 2010 4:53 am
by MrDeathNote
K-Bal wrote:Some inspiration

<object width="500" height="405"><param name="movie" value="http://www.youtube.com/v/DCzDKj3hjOE?fs ... ram><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DCzDKj3hjOE?fs ... 0&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="405"></embed></object>[/youtube]

http://www.youtube.com/watch?v=DCzDKj3hjOE
That's really amazing!

Re: Planet Renderer

Posted: Fri Aug 13, 2010 12:35 pm
by dandymcgee
MrDeathNote wrote:
K-Bal wrote:Some inspiration

That's really amazing!
Wow..

For those interested. A game prototype based on the engine:
http://www.infinity-universe.com/Infini ... &Itemid=54

Re: Planet Renderer

Posted: Fri Aug 13, 2010 1:35 pm
by Ginto8
K-Bal wrote:Some inspiration

<object width="500" height="405"><param name="movie" value="http://www.youtube.com/v/DCzDKj3hjOE?fs ... ram><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DCzDKj3hjOE?fs ... 0&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="405"></embed></object>[/youtube]

http://www.youtube.com/watch?v=DCzDKj3hjOE
:shock2: ... I think I just shat myself.

Re: Planet Renderer

Posted: Sat Aug 14, 2010 5:47 am
by Trimmy
K-Bal wrote:Some inspiration

<object width="500" height="405"><param name="movie" value="http://www.youtube.com/v/DCzDKj3hjOE?fs ... ram><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DCzDKj3hjOE?fs ... 0&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="405"></embed></object>[/youtube]

http://www.youtube.com/watch?v=DCzDKj3hjOE
Yeah thats really awesome, a "little" more advanced than what I'm aiming for though.

Re: Planet Renderer

Posted: Sat Aug 14, 2010 9:16 am
by GroundUpEngine
K-Bal wrote:Some inspiration



http://www.youtube.com/watch?v=DCzDKj3hjOE
Amazing!
Image

Re: Planet Renderer

Posted: Sun Aug 15, 2010 6:09 am
by Trimmy
Ok I solved the problem of the sphereified-cube being mis-shapen:

Re: Planet Renderer

Posted: Sun Aug 15, 2010 3:36 pm
by pritam
Trimmy wrote:Ok I solved the problem of the sphereified-cube being mis-shapen:
Looks good, got a texture with that?

Re: Planet Renderer

Posted: Sun Aug 15, 2010 5:31 pm
by Trimmy
pritam wrote:
Trimmy wrote:Ok I solved the problem of the sphereified-cube being mis-shapen:
Looks good, got a texture with that?
Yeah thats probably the next step after cleaning up the code a bit.

Re: Planet Renderer

Posted: Mon Aug 16, 2010 4:26 pm
by MrDeathNote
Looks good man, glad you're getting somewhere with it.