planet screensaver
Forum rules
Discuss your feature requests for the next release of Ardor3D here. Please make a ticket and reference it in your first post.
Discuss your feature requests for the next release of Ardor3D here. Please make a ticket and reference it in your first post.
20 posts
• Page 2 of 2 • 1, 2
Re: planet screensaver
When I think Orbit controller, I think of Spherical Polar coords... so no need to cast rays, etc. Maybe we are thinking of two different effects? I just added the new controller type to trunk. Have a look when you get time.
Gratitude is a mark of a noble soul and a refined character.
-

renanse - Site Admin
- Posts: 2955
- Joined: Tue Oct 28, 2008 6:49 pm
- Location: Austin, TX
Re: planet screensaver
Actually we manage to build something that has the shape of a sphere, but which is not one 
(Earth is not a globe) and there might be an elevation model apply on it.
The thing is, when you drag with the mouse, you must know where it hit on all this, the rotation angle difference can be huge and must be accurate even if you are very close to the globe.
(Earth is not a globe) and there might be an elevation model apply on it.
The thing is, when you drag with the mouse, you must know where it hit on all this, the rotation angle difference can be huge and must be accurate even if you are very close to the globe.
The world doesnt turn round, try to make roll a patato in space.
-

Eclesia - regular
- Posts: 86
- Joined: Fri Mar 27, 2009 1:34 pm
Re: planet screensaver
I gave a try to the orbit cam control but that's not usable for a globe.
There are too many assuptions in it.
Like the world up vector or camera speed which are never the same depending the camera position.
I guess I'll have to code something from scratch that suits my needs.
There are too many assuptions in it.
Like the world up vector or camera speed which are never the same depending the camera position.
I guess I'll have to code something from scratch that suits my needs.
The world doesnt turn round, try to make roll a patato in space.
-

Eclesia - regular
- Posts: 86
- Joined: Fri Mar 27, 2009 1:34 pm
Re: planet screensaver
renanse wrote:They wrote me back saying they were fine but would like to host it themselves. Looks like we need to bug them to get it up somewhere.
Any news ?
Who should I bug
- paranoidray
- Officer
- Posts: 174
- Joined: Sat May 01, 2010 8:29 pm
Re: planet screensaver
MrCoder wrote:It's shader based scattering derived from here: http://sponeil.net/ (only the "from space" part currently, but I have also tried the ground scattering part some years ago: http://www.youtube.com/watch?v=mQ9p5IHOK9Y).
I have been interested in rendering planetary atmospheres for a while now, and found that one of the easiest solutions which provides seamless space-ground transitions as well as no artifacts (caused by deciding when you are in or out of the atmosphere) can be found here:
http://evasion.inrialpes.fr/~Eric.Bruneton/
Its very easy to get going, I converted the code to Java in a few hours. If I can remember where I put it I will attach a zip of the Java source. It is not his full whiz-bang implementation as it assumes the planet is a smooth sphere and does not include calculations for terrain shadows in the atmosphere, but it still looks fantastic.
Cheers,
Brett
- bjgil2
- newcomer
- Posts: 2
- Joined: Sat Jan 10, 2009 12:10 am
Re: planet screensaver
Gratitude is a mark of a noble soul and a refined character.
-

renanse - Site Admin
- Posts: 2955
- Joined: Tue Oct 28, 2008 6:49 pm
- Location: Austin, TX
Re: planet screensaver
Its very easy to get going, I converted the code to Java in a few hours. If I can remember where I put it I will attach a zip of the Java source. It is not his full whiz-bang implementation as it assumes the planet is a smooth sphere and does not include calculations for terrain shadows in the atmosphere, but it still looks fantastic.
That would be cool to see!
Destroy, Erase, Improve
-

MrCoder - Site Admin
- Posts: 755
- Joined: Mon Nov 03, 2008 8:56 am
- Location: Stockholm, Sweden
Re: planet screensaver
Here is a zip of the code, use left click + mouse to move the sun, left click + shift + mouse to move the earth, left click + ctrl + mouse to waggle the earth around. Cursor up and down to zoom in and out. The code isn't pretty, just an as direct as I could make it conversion from the C code, and the controls aren't much better.
With a bit of waggling and rotating and zooming you can get down to the surface inside the atmosphere and see what the sunset looks like.
With a bit of waggling and rotating and zooming you can get down to the surface inside the atmosphere and see what the sunset looks like.
- Attachments
-
Atmosphere.zip- (112.06 KiB) Downloaded 147 times
- bjgil2
- newcomer
- Posts: 2
- Joined: Sat Jan 10, 2009 12:10 am
Re: planet screensaver
Thanks for the code, I'm trying to understand what's going on in there.
The world doesnt turn round, try to make roll a patato in space.
-

Eclesia - regular
- Posts: 86
- Joined: Fri Mar 27, 2009 1:34 pm
Re: planet screensaver
Thank you for this example using JOGL 1.1.1 
- gouessej
- regular
- Posts: 1186
- Joined: Fri May 01, 2009 3:26 am
- Location: France
20 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest