Spheres like Earth

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
jreuschel1
Posts: 25
Joined: Sun Nov 12, 2006 7:51 pm
Contact:

Spheres like Earth

Post by jreuschel1 »

I'll have to remake this, my free web host got it's entire site shut down now even I don't have the source anymore.

dead link removed
Last edited by jreuschel1 on Thu Jan 28, 2010 4:44 am, edited 1 time in total.
Directory of E:\RI-1

00/00/0000 12:00 AM <DIR> .
00/00/0000 12:00 AM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) All bytes free

E:\RI-1>_
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post by Dark_Kilauea »

I demand a screenshot! :)
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

yeah post a description and sceenie please! no one wants to waste time download something as ambiguous as "spheres like earth"...
Image Image Image
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Here you go:

Image
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Mirror
Posts: 218
Joined: Sat Dec 01, 2007 4:09 pm

Post by Mirror »

well the initial screen indeed is a black one as rogerborg posted but that's because he hasn't disabled backfaceculling and the camera is in the center of a sphere. from my understanding what he has achieved ( as i checked the app ) is having a camera ( spaceship ) rotate around a sphere ( planet ) and the good thing is that the camera is free to move ( it gets affected by the current upvector ).
jontan6
Posts: 278
Joined: Fri Jun 13, 2008 5:29 pm

Post by jontan6 »

Image
jreuschel1
Posts: 25
Joined: Sun Nov 12, 2006 7:51 pm
Contact:

Description

Post by jreuschel1 »

Thanks for the screenshot jontan

I just uploaded a better version but since it is a work in progress more is still to come

_______________


This is a fast "Earth type" planet generator and.

the planet terrains are generated in low detail first on the surface of a cube with 21x21 square faces on each of the 6 faces of the cube the cube is then normalized into a sphere. There is a 21x21 square face convex panel that is rendered between the low detail sphere and the camera this panel has 21x21 square faces each of which has 16x16subsquares and is a higher detail copy of visible area of the low detail sphere which it covers

the planet earth is approx 25,000 miles circumference
25,000 / (21x4) = approx 300x300 miles on largest square faces
300 / 16 = approx 20 miles between the vertices in the small square faces

future plans are to add another level of detail to include texture blending

maybe for a space simulator that allows you to cross galaxies and see many many different planets in high detail. if you like the planet, land on it and build a city.

and all in less then a few megabytes.
______________________
Directory of E:\RI-1

00/00/0000 12:00 AM <DIR> .
00/00/0000 12:00 AM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) All bytes free

E:\RI-1>_
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

On my pc is looks like this:

Image
Image

I can't find any way to tesselate to a higher detail and I've tried coming in real close and pressing all of the (Undocumented) buttons repeatedly.

Either way, good work, the projecting a tessellated cube to a sphere idea is pretty cool. I think ultramedia is using a similar idea guessing from his screenshots.

Cheers
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
jreuschel1
Posts: 25
Joined: Sun Nov 12, 2006 7:51 pm
Contact:

Post by jreuschel1 »

the 'L' key should show you the higher detail blindside.
Directory of E:\RI-1

00/00/0000 12:00 AM <DIR> .
00/00/0000 12:00 AM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) All bytes free

E:\RI-1>_
Post Reply