DYNAMIC LIGHTING EVER?

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
chrisr
Posts: 62
Joined: 21.08.2003
With us: 21 years 3 months
Location: AZ

DYNAMIC LIGHTING EVER?

Post #1by chrisr » 08.10.2003, 20:15

Celestia would really benefit from dynamic lighting. When is is coming? Is it coming? How much more taxing will it be on hardware? and will it drastically increase size of download.

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #2by chris » 08.10.2003, 20:19

Celestia already has dynamic lighting.

Perhaps you could you explain in more detail what you mean?

--Chris

Topic author
chrisr
Posts: 62
Joined: 21.08.2003
With us: 21 years 3 months
Location: AZ

lighting

Post #3by chrisr » 11.10.2003, 03:30

o i hadnt realized. thought it was some other sort of technique. so why dont objects such as rings cast shadows on planets. why dont objects such satellites and shuttles have refective surfaces and why dont they cast shadows on themselves. Such as a a wing shawdoing the fuselage of the shuttle. I hope this clarifies my query. thanks

Don. Edwards
Posts: 1510
Joined: 07.09.2002
Age: 59
With us: 22 years 2 months
Location: Albany, Oregon

Post #4by Don. Edwards » 11.10.2003, 07:50

Chrisr,
Allot of what you are asking is already in Celestia. Rings do cast shadows. But I don't believe objects can cast a shadow on itself as yet but I could be wrong.
I am officially a retired member.
I might answer a PM or a post if its relevant to something.

Ah, never say never!!
Past texture releases, Hmm let me think about it

Thanks for your understanding.

ElPelado
Posts: 862
Joined: 07.04.2003
With us: 21 years 7 months
Location: Born in Argentina
Contact:

Post #5by ElPelado » 11.10.2003, 13:25

The rings casting shadows in planets its only seen with very good video cards, thats why you may not see it...
---------X---------
EL XENTENARIO
1905-2005

My page:
http://www.urielpelado.com.ar
My Gallery:
http://www.celestiaproject.net/gallery/view_al ... y-Universe

Guest

light

Post #6by Guest » 11.10.2003, 19:11

my card is could enough for spetral lighting night side lights and all the other jazz turned on so it doesnt make much sense that the planet (saturn) casts a shawdow on the rng but the ring doesnt cast on shadow on saturn

ElPelado
Posts: 862
Joined: 07.04.2003
With us: 21 years 7 months
Location: Born in Argentina
Contact:

Post #7by ElPelado » 11.10.2003, 19:34

...it doesnt make much sense...

I know, you are right, but thats the way celestia works... I can also see the same you see, specular, night, bum and normal, shadows on the rings, but no shadow in the planet. The is nothing to do :cry: , I think....
---------X---------

EL XENTENARIO

1905-2005



My page:

http://www.urielpelado.com.ar

My Gallery:

http://www.celestiaproject.net/gallery/view_al ... y-Universe

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Re: light

Post #8by granthutchison » 12.10.2003, 00:38

Anonymous wrote:my card is could enough for spetral lighting night side lights and all the other jazz turned on so it doesnt make much sense that the planet (saturn) casts a shawdow on the rng but the ring doesnt cast on shadow on saturn
The shadow of the planet on the ring plane can be modelled as a simple black ellipse. The shadow of the rings on the planet have to be derived as the intersection of a textured oblique elliptical cylinder and an oblate spheroid. I guess I'm not surprised that the second takes more sophisticated processing than the first.

Grant

Topic author
chrisr
Posts: 62
Joined: 21.08.2003
With us: 21 years 3 months
Location: AZ

post pic

Post #9by chrisr » 14.10.2003, 03:13

could someone please post a picture of saturn's rings casting a shadow on the planet using their celestia. Thanks
Just do what makes you happy provided you do not infringe on another's happiness for there is no point in living if you do not have happiness.
[tex]Happiness = \[\int_a^b \int_c^d \int_e^f \int_g^h U(x,y,z,t)\,dx dy dz dt\] = 42[/tex]
If only we knew U!

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: light

Post #10by chris » 14.10.2003, 03:27

granthutchison wrote:
Anonymous wrote:my card is could enough for spetral lighting night side lights and all the other jazz turned on so it doesnt make much sense that the planet (saturn) casts a shawdow on the rng but the ring doesnt cast on shadow on saturn
The shadow of the planet on the ring plane can be modelled as a simple black ellipse. The shadow of the rings on the planet have to be derived as the intersection of a textured oblique elliptical cylinder and an oblate spheroid. I guess I'm not surprised that the second takes more sophisticated processing than the first.

It's actually not too bad to compute ring shadows, but vertex programs and clamp to texture border color extensions are required.

A ray is cast from each vertex of the planet to the sun and it's intersection with the equatorial plane is computed. Then, the distance of the intersection point from the planet center is used becomes the one dimension ring texture coordinate. No explicit ellipsoid/cylinder intersection is required.

chrisr, here's an image showing ring shadows:
http://www.shatters.net/gallery/view_photo.php?set_albumName=celestia&id=saturn80

It's not the best illustration of the effect, since the Sun is nearly in Saturn's equatorial plane at the time of the image.

--Chris

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #11by selden » 14.10.2003, 12:45

A couple of other pictures of Saturn's ring shadows can be seen at http://www.lns.cornell.edu/~seb/celestia/gallery-001.html#5
Selden

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Re: light

Post #12by granthutchison » 14.10.2003, 13:35

chris wrote:It's actually not too bad to compute ring shadows ...
Which serves to remind me that I should only speculate about things I know something about :D.
I did once model Saturn in an old version of POVray, using a now-defunct "Halo" object to model the rings - it did good light scattering, so I was able to model forward- and back-scatter nicely, but it didn't cast a shadow on the planet. So I ended up with a monstrous hack involving cropped cylinders which I guess has scarred me for life ...
The final movie is a tiny little thing now, at modern screen resolutions: http://www.solarviews.com/cap/sat/vsaturn1.htm

Grant

ElPelado
Posts: 862
Joined: 07.04.2003
With us: 21 years 7 months
Location: Born in Argentina
Contact:

Post #13by ElPelado » 14.10.2003, 15:23

I was thinking: what will happen if we put a 3d model replacing the rings? will it cast shadows in the planet??
---------X---------

EL XENTENARIO

1905-2005



My page:

http://www.urielpelado.com.ar

My Gallery:

http://www.celestiaproject.net/gallery/view_al ... y-Universe

billybob884
Posts: 986
Joined: 16.08.2002
With us: 22 years 3 months
Location: USA, East Coast

Post #14by billybob884 » 14.10.2003, 20:31

I know celestia cant render object shadows on models, but I dont know about model shadows on other objects; although I'd tend to think not...
Mike M.

TacoTopia!

ElPelado
Posts: 862
Joined: 07.04.2003
With us: 21 years 7 months
Location: Born in Argentina
Contact:

Post #15by ElPelado » 14.10.2003, 21:12

I ll try to do it and then tell you what i got...
---------X---------

EL XENTENARIO

1905-2005



My page:

http://www.urielpelado.com.ar

My Gallery:

http://www.celestiaproject.net/gallery/view_al ... y-Universe

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 21 years 11 months
Location: People's Republic Of Cork, Ireland

Post #16by JackHiggins » 14.10.2003, 22:08

Nope 3ds or cms objects can't cast shadows. Believe me i've tried!!
- Jack Higgins
Jack's Celestia Add-ons
And visit my Celestia Gallery too!

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #17by chris » 14.10.2003, 22:38

Stencil shadows for 3DS objects is a feature that I'm very excited to work on; it probably won't make 1.3.2. Hopefully the version after, though . . . Celestia needs some more eye candy. Imagine shadows from the struts and solar panels of the ISS, or a bump mapped, self-shadowing Eros!

--Chris

jestr
Posts: 612
Joined: 14.09.2003
With us: 21 years 2 months
Location: Bridgwater,UK

lighting in Celestia

Post #18by jestr » 15.10.2003, 00:15

How about being able to have lighting on models in celestia.3Ds max models have the possibility of self-illumination.This could look great on space ships etc.When I have experimented exporting lights set around and in models in 3ds max and exported into Celestia -no self-illumination and no external lighting shows up but lights inside e.g.a tunnel or building there is some light in the scenes but it seems to come from the direction of the nearest star and as bright as the ambient light at that position in space.Yours Jestr


Return to “Development”