Rendering problem-Celestia 1.3.1 Linux

Report bugs, bug fixes and workarounds here.
Topic author
jon R

Rendering problem-Celestia 1.3.1 Linux

Post #1by jon R » 26.07.2004, 01:27

Hi,

First, I'm so impressed with this program!

I run Celestia both in Windows XP and in Linux (Mandrake 10 Official kernal 2.6.3-7). In Windows everything works great however in Mandrake I get these wierd renderings of rings (Sorry, I don't know how to attach an image) plus when viewing the Earth with clouds, I get a very jerky motiion. It just is nothing like the performance on Windows.

I have an Intel 865G integrated graphics chip. And have the most recent Linux driver from Intel installed (dri-l915-1.0-20040607.i386). Here also is a printout of the OpenGL information from Celestia.

I'm a newbee to Celestia as well as Linux so please forgive me for any omissions etc.

Vendor : Tungsten Graphics, Inc
Renderer : Mesa DRI Intel(R) 865G 20021115
Version : 1.2 Mesa 4.0.4
Max simultaneous textures: 2
Max texture size: 1024

I also notice that under XP I have textures:4 and Texture size: 2048.

Thanks,

Jon

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

Post #2by selden » 26.07.2004, 03:10

Jon,

For whatever reason, your Linux system is using the Mesa software OpenGL v1.2 library and not Intel's hardware v1.3 library. This is why things are slow and jerky, why rings don't look good and why the texture buffers are smaller. The Mesa software library is much more limited than Intel's library.

Sorry: I'm not a Linux graphics expert, so I can't tell you how to switch from one library to the other. All I can suggest is to follow Intel's instructions very carefully. See http://support.intel.com/support/graphics/sb/CS-010512.htm

(Even so, I trust you are aware that Intel's "Extreme" chipset is rather limited by modern standards. You'll still be missing a lot of Celestia's eye candy.)

Good luck!
Selden

jamarsa
Posts: 326
Joined: 31.03.2003
With us: 21 years 7 months
Location: San Sebastian (Spain)

Post #3by jamarsa » 26.07.2004, 22:22

For being sure you are using the correct library, you should look (or submit us) the output of the command glxinfo.

Well, selden, the matter is not that the Mesa library is 'limited' in features, but that they are software rendering, i.e., slow as the badguy's horse (as we say here :wink: ). I'm sure you already know that, but I felt the need to clarify your comment for the masses.


PS: Oops!! re-reading the first post, it's clear that jon R is using the Mesa library. Please post the result of the command:

ldd <pathname of where the celestia binary is>/celestia

For finding the pathname of celestia binary, use the command "hash" after executing (and exiting) celestia.
Last edited by jamarsa on 26.07.2004, 22:32, edited 1 time in total.

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

Post #4by selden » 26.07.2004, 22:30

Jamarsa,

Note that the Mesa OpenGL version is v1.2.
Intel claims to be shipping OpenGL v1.3
To see all of Celestia's "generic" eye-candy, you need at least OpenGL v1.4.
To see all of Celestia's eye-candy, you need Nvidia's extensions to OpenGL v1.4.

I'd call v1.2 limited :)
Selden

jamarsa
Posts: 326
Joined: 31.03.2003
With us: 21 years 7 months
Location: San Sebastian (Spain)

Post #5by jamarsa » 26.07.2004, 22:34

selden wrote:Note that the Mesa OpenGL version is v1.2.
Intel claims to be shipping OpenGL v1.3


Ups, yes, I just noticed. Just a bit slow tonight.

Jon R

Post #6by Jon R » 27.07.2004, 01:43

jamarsa wrote:For being sure you are using the correct library, you should look (or submit us) the output of the command glxinfo.

ldd <pathname of where the celestia binary is>/celestia
.


Here's the output but I'm probably just going to use my windows version anyhow...Linux is just too time consuming for me.

Jon

glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 865G 20021115
OpenGL version string: 1.2 Mesa 4.0.4
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_transpose_matrix, GL_EXT_abgr,
GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_func_separate,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
GL_EXT_convolution, GL_EXT_compiled_vertex_array, GL_EXT_fog_coord,
GL_EXT_histogram, GL_EXT_packed_pixels, GL_EXT_polygon_offset,
GL_EXT_rescale_normal, GL_EXT_secondary_color, GL_EXT_texture3D,
GL_EXT_texture_env_add, GL_EXT_texture_env_combine, GL_EXT_texture_object,
GL_EXT_texture_lod_bias, GL_EXT_vertex_array, GL_IBM_rasterpos_clip,
GL_MESA_window_pos, GL_NV_texgen_reflection, GL_SGI_color_matrix,
GL_SGI_color_table
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x22 24 tc 1 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x23 24 tc 1 24 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x24 24 tc 1 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x25 24 tc 1 24 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x26 24 tc 1 24 0 r y . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
0x27 24 tc 1 24 0 r . . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
0x28 24 tc 1 24 0 r y . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
0x29 24 tc 1 24 0 r . . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow


ldd /usr/bin/celestia
linux-gate.so.1 => (0xffffe000)
liblualib.so => /usr/lib/liblualib.so (0x40019000)
liblua.so => /usr/lib/liblua.so (0x40028000)
libkio.so.4 => /usr/lib/libkio.so.4 (0x4003d000)
libkdeui.so.4 => /usr/lib/libkdeui.so.4 (0x40373000)
libkdesu.so.4 => /usr/lib/libkdesu.so.4 (0x40638000)
libkdecore.so.4 => /usr/lib/libkdecore.so.4 (0x40653000)
libDCOP.so.4 => /usr/lib/libDCOP.so.4 (0x40873000)
libdl.so.2 => /lib/libdl.so.2 (0x408bd000)
libresolv.so.2 => /lib/libresolv.so.2 (0x408c0000)
libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0x408d1000)
libkdefx.so.4 => /usr/lib/libkdefx.so.4 (0x408e9000)
libqt-mt.so.3 => /usr/lib/qt3//lib/libqt-mt.so.3 (0x40919000)
libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x41031000)
libutil.so.1 => /lib/libutil.so.1 (0x41039000)
libfam.so.0 => /usr/lib/libfam.so.0 (0x4103c000)
libpng.so.3 => /usr/lib/libpng.so.3 (0x41045000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4106b000)
libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x4108a000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x41117000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x411d7000)
libz.so.1 => /usr/lib/libz.so.1 (0x411e0000)
libGL.so.1 => /usr/X11R6/lib/tls/libGL.so.1 (0x411f1000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x41233000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4123c000)
libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x41254000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4126a000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x41278000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x41280000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x41362000)
libm.so.6 => /lib/tls/libm.so.6 (0x41372000)
libc.so.6 => /lib/tls/libc.so.6 (0x41396000)
libaudio.so.2 => /usr/X11R6/lib/libaudio.so.2 (0x414de000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x414f5000)
libmng.so.1 => /usr/lib/libmng.so.1 (0x41549000)
libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x415a7000)
libXcursor.so.1 => /usr/X11R6/lib/libXcursor.so.1 (0x415ab000)
libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0x415b5000)
libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x415b8000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x415ca000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x415f2000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x41651000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

jamarsa
Posts: 326
Joined: 31.03.2003
With us: 21 years 7 months
Location: San Sebastian (Spain)

Post #7by jamarsa » 29.07.2004, 22:42

Well, sorry for the delay. I've been busy this week with taxes :cry:
Finally, I was able to review the Intel driver installation script. It seems to install it's OpenGL library in /usr/X11R6/lib, and your system is pointing to the library in /usr/X11R6/lib/tls/ (perhaps the Mesa one, I don't have a Mandrake 10 myself). Look if you have the following file:

/usr/X11R6/lib/libGL.so.1.2

If so, try the following command:

LD_PRELOAD=/usr/X11R6/lib/libGL.so.1.2 celestia

and tell me if you have some improvement.


Return to “Bugs”