Few stars on Mac, no sunlight on XP

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
AntikytheraMechanism
Posts: 3
Joined: 15.01.2009
With us: 15 years 10 months

Few stars on Mac, no sunlight on XP

Post #1by AntikytheraMechanism » 15.01.2009, 18:54

I downloaded the source code of Celestia 1.5.1 and compiled it --with-glut using the g++ compiler on Solaris.
I am viewing the windows displayed by Celestia using X Window servers running on Mac OS X and Windows XP.
But on the Mac, only the very brightest stars appear. And on XP, no sunlight falls on the planets.

Details and screen shots are posted at http://i5.nyu.edu/~mm64/planetarium/c/
I'm a total newbie at graphics--is this a GLX problem?
Thank you in advance for your help.

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Few stars on Mac, no sunlight on XP

Post #2by John Van Vliet » 17.01.2009, 06:24

--- edit ---
Last edited by John Van Vliet on 21.10.2013, 02:31, edited 1 time in total.

Topic author
AntikytheraMechanism
Posts: 3
Joined: 15.01.2009
With us: 15 years 10 months

Re: Few stars on Mac, no sunlight on XP

Post #3by AntikytheraMechanism » 18.01.2009, 19:32

Here is what I think the problem is.

When a program (e.g., Celestia) running on a Solaris box connects to an X Window server running on a Mac or PC, the X Window server offers a mere 27 or 32 "OpenGL Extensions" respectively. But when a program running on the Mac or PC connects to an X Window server on the *same* machine, these X Window servers that were so parsimonious with Solaris now offer a whopping 95 and 90 extensions respectively.

Why do these X Window servers offer radically fewer "OpenGL Extensions" to a program (e.g., Celestia) that connects to them from a remote machine? Are the missing extensions the reason why I see few stars on the Mac and no sunlight on the PC? Does it make sense to ask how I could get a list of the "OpenGL Extensions" that Celestia needs to render correctly? Fresh details (e.g., the actual lists of "OpenGL Extensions") at
http://i5.nyu.edu/~mm64/planetarium/c/
Seach there for "glxinfo".
Thank you in advance for any light you could shed on this.

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Few stars on Mac, no sunlight on XP

Post #4by John Van Vliet » 18.01.2009, 21:34

--- edit ---
Last edited by John Van Vliet on 21.10.2013, 02:30, edited 1 time in total.

Topic author
AntikytheraMechanism
Posts: 3
Joined: 15.01.2009
With us: 15 years 10 months

Re: Few stars on Mac, no sunlight on XP

Post #5by AntikytheraMechanism » 21.01.2009, 17:01

I want to execute celx scripts on Solaris containing calls to the method celestia:takescreenshot,
and put the resulting image files into a PowerPoint slideshow. (Possibly also with modifications to the
source code of Celestia, i.e., to display the grid in galactic cooridinates instead of equatorial.)

I have belatedly come to realize what should have been obvious all along: it would be simplest for
Celestia to connect to an X Windows server running on the same box. Now all I have to do is figure out
how to launch the X Window server on my Solaris host, which I share with 4000 other people.

I guess it's a Solaris and X Windows problem, not a Celestia problem, from this point on. Thanks.

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

Re: Few stars on Mac, no sunlight on XP

Post #6by selden » 21.01.2009, 19:17

The X nomenclature can be somewhat confusing.

An X server is the display device: it runs on the computer that you are sitting in front of. It provides "X display services" for programs that want to connect to it.

In other words, Celestia has to be built to be able to open an X window itself. Presumably this is what happens when Celesita has been built for use with KDE or Gnome. When you run it, you have to specify the remote X display server that it should use.
Selden


Return to “Development”