Yes you are right, I forgot about your changes to the ssystem code..

This comment + the email on the pub mailing list from a couple of weeks ago by Rolf Bode-Meyer who wanted to make a plug-in for the ISS orbital elements shows that we should probably change the code of the Planet and SolarSystem class to allow easy dynamical addition of solar system objects which should not necessarily be instances of Planet, but rather of a new SolarSystemObject class which need to be created.

All the problems of drawing orders can then be managed by SolarSystem in a generical way.
So this is quite some work here, but it's quite interesting also, and it would be a good occasion to comment and clean the Planet and SolarSystem code which is one of the oldest part of stellarium and becomes quite cryptic sometimes.

Is someone interested to do that?

Fabien

On 8/15/07, Johannes Gajdosik < johannes.gajdosik@gmx.at> wrote:
I do not believe in a global depth buffer with
the same znear and zfar throughout the entire solar system.
The depth buffer has only 24 bits and thus not enough
accuracy for that. Especially when you want to use
it for shadows, that a model of the cassini probe casts on itself.
So every system of 3d objects that cast shadows or occult each other,
must have its own znear/zfar.
At least this is my opinion about it, and I would like to know
if you think differently.

Johannes



On 2007.08.15 18:59:12 CEST, Rob Spearman wrote:
>
> So the suggestions are to use the gl depth buffer and/or put
> everything
> that moves into the planet module?
>
> What about issues of depth buffer scale?  Drawing a 3d satellite or
> asteroid model does not seem compatible with a solar system scale
> depth
> buffer for instance.
>
> Rob
>
> On Mon, 2007-08-13 at 23:13 +0200, Johannes Gajdosik wrote:
> > On 2007.08.13 20:33:54 CEST, Rob Spearman wrote:
> > > I thought the depth buffer was not used in any of the projection
> modes
> > > now?
> >
> > Currently the depth buffer is used only for drawing Saturns ring.
> > Althought later it might/should be used for drawing shadows
> > of the moons, shadows of the ring, shadows on the ring,...
> > This is not special to any projection mode.
> >
> > > How would a space probe coming into view between Jupiter and Io be
> > > drawn
> > > correctly (assume Io overlaps Jupiter from our viewpoint)?
> >
> > Currently the space probe would be a solar system object, an object
> > of class Planet. Before drawing, the planets are sorted according
> > to distance from the observer, so near objects occult far objects.
> >
> > Using the depth buffer is possible, but currently not done, because
> of
> > performance reasons. You or Fabien have done this before I joined.
> > You can watch the performance impact when comparing Jupiter and
> > Saturn.
> >
> > Johannes
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a
> browser.
> > Download your FREE copy of Splunk now >>   http://get.splunk.com/
> > _______________________________________________
> > Stellarium-pubdevel mailing list
> > Stellarium-pubdevel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
> --
>   Digitalis Education Solutions, Inc.  tel 360.616.8915
>   P.O. Box 2976                        fax 360.616.8917
>   Bremerton, WA 98310                   http://digitaliseducation.com
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Stellarium-pubdevel mailing list
> Stellarium-pubdevel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Stellarium-pubdevel mailing list
Stellarium-pubdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel