Irrlicht for 3D planetarium

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Petro
Posts: 1
Joined: Sun Nov 19, 2006 4:17 pm

Irrlicht for 3D planetarium

Post by Petro »

Do you think it would be a good idea to use Irrlicht as a graphical engine for 3D planetarium. I am concerned about several things.

1. Scale & Precision. Would the engine suit for modelling small objects (1 - 10 arb. units) wide distance apart (40-50 thousand of same units)

2. Shadow casting. I am also planning to model some eclipses. Would the volume shadow casting allow me to do that with high accuracy taking into account the size of the objects and very large distance between them.
Thanks.
omar shaaban
Posts: 616
Joined: Wed Nov 01, 2006 6:26 pm
Location: Cairo,Egypt
Contact:

Post by omar shaaban »

:? aaa yes it can
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

no it cant. pluto is over 3500 million miles away from the sun, so if you want accuracy to 100th of a mile you're going to need at least 40 bits of precision, f32's only have 24.
f64s will have enough accuracy, but even if irrlicht could use these for coordinates (it can't) you wouldn't be able to draw them without flickering because from a distance your depth buffer resolution would be wider than the distance from the earth to the moon.
you're going to need your own coordinate system, then convert irrlicht's coordinates for drawing, drawing things which are outside the camera's view from back to front without z-buffer like a skybox... and shadows are gonna be hard
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

bitplane wrote:no it cant. pluto is over 3500 million miles away from the sun,...
The irony is the book that bitplane (Holly) is reading. :mrgreen:
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

The Junior Colour Encyclopedia of Space has never failed me yet :lol:
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

The nearest actual planet to your actual sun is... Mercury.

No, Venus. No, Mercury again. Venus. Mercury. Earth. Mercury.

Damn 32 bit floats.
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

sio2 wrote:
bitplane wrote:no it cant. pluto is over 3500 million miles away from the sun,...
The irony is the book that bitplane (Holly) is reading. :mrgreen:
Nah, that's not irony.
Besides, screw pluto. Dirty wad of ice masquerading as a planet...'bout time we gave it the boot.

More on topic, surely there would be a way to fake the distances. For example, scale the distance down equally proportionate to scaling down its size or some such, and adjusting the rotation to match.
Of course, you would then have to do the same for some of the other planets with a different scaling factor according to their distance out.

Maybe?
Join us in the Irrlicht chatroom:
[url]irc://irc.freenode.net/irrlicht[/url]

I love deadlines. I like the whooshing sound they make as they fly by. -D.Adams
jam
Posts: 409
Joined: Fri Nov 04, 2005 3:52 am

Post by jam »

Use a logarithmic scale for distances.
system-independent, adj.:
Works equally poorly on all systems.
-- unknown
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

HA!!
"Logrithmic" !!!
That was the word I was looking for.
Join us in the Irrlicht chatroom:
[url]irc://irc.freenode.net/irrlicht[/url]

I love deadlines. I like the whooshing sound they make as they fly by. -D.Adams
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Now that Pluto is no planet anymore you can simply skip it unless you'll also do a Sub-Planet-arium :wink:
FistBall
Posts: 1
Joined: Mon Nov 20, 2006 11:56 pm

Post by FistBall »

have you seen Stellarium? quite nice, and it's cross-platform
http://www.stellarium.org/

Image
Post Reply