Win32 Executable from SVN

The place to discuss creating, porting and modifying Celestia's source code.
Derek
Posts: 64
Joined: 18.12.2007
With us: 16 years 11 months
Location: Pretoria South Africa

Re: Win32 Executable from SVN

Post #141by Derek » 07.11.2009, 13:49

Hi Guillermo,
Sorry 4880 was a mistake should have read 4890, further investigation I've found it's a combination of addons together with your svn 4898 and 4903 which are causing the other problems.
Derek

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

Re: Win32 Executable from SVN

Post #142by selden » 07.11.2009, 14:19

The orbit path code has been completely rewritten.
The new code was added to Celestia as of r4825.

Hopefully its bugs will be fixed in the not too distant future.
svn log wrote:r4825 | cjlaurel | 2009-08-06 22:15:26 -0400 (Thu, 06 Aug 2009) | 2 lines

Rewrote orbit drawing code to fix multiple shortcomings. New orbit code uses adaptively subdivided cubic curves to draw orbits more accurately and without numerical precision artifacts. The orbit rewrite uses Eigen throughout (instead of the Celestia vector classes.)
Selden

abramson
Posts: 408
Joined: 22.07.2003
With us: 21 years 4 months
Location: Bariloche, Argentina

Re: Win32 Executable from SVN

Post #143by abramson » 07.11.2009, 14:32

OK. Selden, should I report it as a bug, or does everybody already know about this?
G

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

Re: Win32 Executable from SVN

Post #144by chris » 07.11.2009, 16:15

abramson wrote:OK. Selden, should I report it as a bug, or does everybody already know about this?
G

The gap is intentional, not a bug. Because of perturbations from other bodies, Pluto's orbit is not a perfect ellipse. Celestia now draw planet orbits over a duration of one mean orbital period, starting at the current time minus one half the orbital period. Thus the gap appears approximately 180 degrees away from the body, though this will vary for significantly eccentric orbits like Pluto's.

This may not be the best way to draw the orbit. Indeed, the fact that a number of people are reporting this as a bug suggests that Celestia should have some other strategy for rendering orbits that are approximately periodic. One possibility is to draw the orbit starting from the current time back to one orbital period earlier, fading out the tail end of the orbit so that the gap looks intentional.

The gap should not be confused with a very real bug when drawing highly eccentric elliptical orbits. I have a partial fix for this already, and hope to have it completed today.

--Chris

abramson
Posts: 408
Joined: 22.07.2003
With us: 21 years 4 months
Location: Bariloche, Argentina

Re: Win32 Executable from SVN

Post #145by abramson » 07.11.2009, 16:40

Wow! Such a detail! I wasn't aware of this delicacy. Thanks, Chris.

The fading of orbits boud be a fine thing. Even to draw them shorter than a period: for example, to show the apparent path of planets from a vantage point.

Guillermo

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Re: Win32 Executable from SVN

Post #146by ajtribick » 07.11.2009, 16:52

chris wrote:The gap is intentional, not a bug. Because of perturbations from other bodies, Pluto's orbit is not a perfect ellipse. Celestia now draw planet orbits over a duration of one mean orbital period, starting at the current time minus one half the orbital period. Thus the gap appears approximately 180 degrees away from the body, though this will vary for significantly eccentric orbits like Pluto's.

This may not be the best way to draw the orbit. Indeed, the fact that a number of people are reporting this as a bug suggests that Celestia should have some other strategy for rendering orbits that are approximately periodic. One possibility is to draw the orbit starting from the current time back to one orbital period earlier, fading out the tail end of the orbit so that the gap looks intentional.
Another approach that may be interesting would be to draw the osculating orbit. Not sure how feasible that would be though.

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

Re: Win32 Executable from SVN

Post #147by chris » 07.11.2009, 17:21

ajtribick wrote:
chris wrote:The gap is intentional, not a bug. Because of perturbations from other bodies, Pluto's orbit is not a perfect ellipse. Celestia now draw planet orbits over a duration of one mean orbital period, starting at the current time minus one half the orbital period. Thus the gap appears approximately 180 degrees away from the body, though this will vary for significantly eccentric orbits like Pluto's.

This may not be the best way to draw the orbit. Indeed, the fact that a number of people are reporting this as a bug suggests that Celestia should have some other strategy for rendering orbits that are approximately periodic. One possibility is to draw the orbit starting from the current time back to one orbital period earlier, fading out the tail end of the orbit so that the gap looks intentional.
Another approach that may be interesting would be to draw the osculating orbit. Not sure how feasible that would be though.

I've considered this before, and it's completely feasible. The new code draws orbits a series of cubic curves, and there are well-known algorithms for approximating an ellipse as cubics. Only a small number of cubics are required to get quite good accuracy. See for example http://www.tinaja.com/glib/ellipse4.pdf

I see two drawbacks with using osculating orbits:
- It's a different approach than used for non-periodic trajectories, where the actual path through space is shown
- The shifting, precessing ellipses might be confusing to users without some celestial mechanics background

Regardless, the osculating orbits would be very interesting to see, as they should show the orbital evolution of bodies more clearly than other schemes for drawing orbits. If you have some time to write code to calculate a piecewise cubic approximation to an ellipse, I'd add an osculating orbit view to Celestia, at least as an option.

--Chris

Teto
Posts: 19
Joined: 25.03.2009
With us: 15 years 8 months

Re: Win32 Executable from SVN

Post #148by Teto » 08.11.2009, 17:37

abramson wrote:
Dirl wrote:Celestia SVN executables from Mr. Guillermo Abramson:
http://cabfst28.cnea.gov.ar/~abramson/celestia/svnexec/

Due to a change of servers, my webpage has changed address. Find the binaries here: http://fisica.cab.cnea.gov.ar/estadistica/abramson/celestia/svnexec (updates every night).

Guillermo
This built is very appreciated.
I've found one problem with built svn4903: When you're approaching a star, its texture is half cutted. Very funny. Is it a bug of the built or of the program itself? I don't know, I'm just a final user.

Teto.

abramson
Posts: 408
Joined: 22.07.2003
With us: 21 years 4 months
Location: Bariloche, Argentina

Re: Win32 Executable from SVN

Post #149by abramson » 08.11.2009, 19:16

Teto wrote:I've found one problem with built svn4903: When you're approaching a star, its texture is half cutted. Very funny. Is it a bug of the built or of the program itself? I don't know, I'm just a final user.
I also see it, Teto. That's definitely a bug, and it's not obvious what's happening.

What you are seeing is the Sun from the inside, which is transparent in Celestia (textures are only visible from the outside). Solar radius is 696000 km, one shouldn't see that until the distance is that value, not more than 1 million as it happens. The size of the Sun is right, though (judging from it's apparent size). Something is been wrongly calculated here.

This is definitely a bug. Strangely, it seems to happen only after visiting Earth! If you interrupt the startup script before going to Earth (with ESC) you can go right to the surface of the Sun without seing this artifact. You can even go to other planets and return to the Sun. But after going to Earth (or the Moon, but the Earth always gets in sight) the next time you go to the Sun you see it. Isn't it weird? Can anybody confirm this? I think you should report it as a bug, and I hope it doesn't give Chris a headache.

Guillermo

Teto
Posts: 19
Joined: 25.03.2009
With us: 15 years 8 months

Re: Win32 Executable from SVN

Post #150by Teto » 08.11.2009, 20:19

Done! :blue:

Teto.

Derek
Posts: 64
Joined: 18.12.2007
With us: 16 years 11 months
Location: Pretoria South Africa

Re: Win32 Executable from SVN

Post #151by Derek » 09.11.2009, 08:55

Guillermo,

Just checked with a standard 1.6.0 download with no addons or extras doesn't do this it would appear to me that a sun addon is causing the problem.
Derek

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

Re: Win32 Executable from SVN

Post #152by chris » 09.11.2009, 17:06

abramson wrote:This is definitely a bug. Strangely, it seems to happen only after visiting Earth! If you interrupt the startup script before going to Earth (with ESC) you can go right to the surface of the Sun without seing this artifact. You can even go to other planets and return to the Sun. But after going to Earth (or the Moon, but the Earth always gets in sight) the next time you go to the Sun you see it. Isn't it weird? Can anybody confirm this? I think you should report it as a bug, and I hope it doesn't give Chris a headache.

Nope, not a headache :)

This is a bug. I have some new sphere rendering code that will fix this bug and a whole bunch of other problems (suboptimal virtual texture usage, performance, black holes in the sky, ...) I was hoping to have it ready, but it's taking some time to perfect. So, in the mean time, I'll find a fix to make the current code work.

--Chris


Return to “Development”