Bug 28994 - [r300c] [r300g] skybox in ut2004 is not seamless
Summary: [r300c] [r300g] skybox in ut2004 is not seamless
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r300 (show other bugs)
Version: git
Hardware: x86 (IA32) All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-09 13:07 UTC by almos
Modified: 2010-12-22 07:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
sky (131.25 KB, image/jpeg)
2010-07-09 13:07 UTC, almos
Details

Description almos 2010-07-09 13:07:01 UTC
As the attached screenshot shows, the polygon onto which the sky is rendered has sharp contours, which should not be visible at all.
Comment 1 almos 2010-07-09 13:07:44 UTC
Created attachment 36928 [details]
sky
Comment 2 Jon Sturm 2010-07-10 08:07:05 UTC
This is also noticeable on my 2 rv730 cards so it seems to be a mesa or radeon bug in general and not r300 specific.
Comment 3 Tom Stellard 2010-10-29 17:30:22 UTC
Is this still an issue in Mesa 7.9 or the latest version from git?
Comment 4 almos 2010-10-30 07:16:24 UTC
The problem still exists. Tested with latest version from git.
Comment 5 Marek Olšák 2010-12-17 05:50:14 UTC
The skybox looks fine here, absolutely seamless.
Comment 6 Marek Olšák 2010-12-17 09:34:00 UTC
Closing as it works for me.
Comment 7 almos 2010-12-17 10:49:58 UTC
You were a bit hasty (less than 4 hours between the question and the bug close?). Here it still looks exactly like on the attached screenshot. I also checked it with softpipe, and that looks same as well.

BTW I found absolutely no docs about how to change the driver to softpipe from r300g. After hours of googling the only clue I found was 'LIBGL_ALWAYS_SOFTWARE=1' in a comment on a phoronix forum.
Comment 8 Marek Olšák 2010-12-17 11:32:44 UTC
(In reply to comment #7)
> You were a bit hasty (less than 4 hours between the question and the bug
> close?). Here it still looks exactly like on the attached screenshot. I also
> checked it with softpipe, and that looks same as well.

I wonder why the skybox renders correctly only on r5xx...

> 
> BTW I found absolutely no docs about how to change the driver to softpipe from
> r300g. After hours of googling the only clue I found was
> 'LIBGL_ALWAYS_SOFTWARE=1' in a comment on a phoronix forum.

Create an empty directory, add a swrast_dri.so symlink there that points to swrastg_dri.so or whatever driver you need. Set LIBGL_DRIVERS_PATH for it to contain the path to that directory. Every 3D application will then look for $LIBGL_DRIVERS_PATH/r300_dri.so, which wouldn't be there. Then it will look for $LIBGL_DRIVERS_PATH/swrast_dri.so and load it.

To get r300g:
LIBGL_DRIVERS_PATH=/home/..../mesa/lib/gallium glxinfo

To get r300c:
LIBGL_DRIVERS_PATH=/home/..../mesa/lib glxinfo

To get swrast:
ln -s /home/..../mesa/lib/swrast_dri.so /some-path/swrast_dri.so
LIBGL_DRIVERS_PATH=/some-path glxinfo

To get llvmpipe (assumming you build with --enable-gallium-llvm):
ln -s /home/..../mesa/lib/gallium/swrastg_dri.so /some-path/swrast_dri.so
LIBGL_DRIVERS_PATH=/some-path glxinfo

To get softpipe (assumming you build with --enable-gallium-llvm):
ln -s /home/..../mesa/lib/gallium/swrastg_dri.so /some-path/swrast_dri.so
LIBGL_DRIVERS_PATH=/some-path GALLIUM_DRIVER=softpipe glxinfo

Or you may use LIBGL_ALWAYS_SOFTWARE, but I don't use that.
Comment 9 almos 2010-12-17 13:21:36 UTC
(In reply to comment #8)
> I wonder why the skybox renders correctly only on r5xx...

Maybe you set world detail=low, which removes the clouds (and the visible skybox)...

> 
> > 
> > BTW I found absolutely no docs about how to change the driver to softpipe from
> > r300g. After hours of googling the only clue I found was
> > 'LIBGL_ALWAYS_SOFTWARE=1' in a comment on a phoronix forum.
> 
> Create an empty directory, add a swrast_dri.so symlink there that points to
> swrastg_dri.so or whatever driver you need. Set LIBGL_DRIVERS_PATH for it to
> contain the path to that directory. Every 3D application will then look for
> $LIBGL_DRIVERS_PATH/r300_dri.so, which wouldn't be there. Then it will look for
> $LIBGL_DRIVERS_PATH/swrast_dri.so and load it.
> 
> .....
Neat trick. Should be added to a readme or fd.o wiki.
Comment 10 Marek Olšák 2010-12-17 13:31:22 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > I wonder why the skybox renders correctly only on r5xx...
> 
> Maybe you set world detail=low, which removes the clouds (and the visible
> skybox)...

I have "world detail" set to high.
Comment 11 almos 2010-12-17 14:15:16 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > > I wonder why the skybox renders correctly only on r5xx...
> > 
> > Maybe you set world detail=low, which removes the clouds (and the visible
> > skybox)...
> 
> I have "world detail" set to high.

I'm out of ideas then. What's the situation on i965 or nouveau or r600g?
Comment 12 almos 2010-12-21 12:41:58 UTC
> I wonder why the skybox renders correctly only on r5xx...

I found out what the possible difference is between our setups: you are running it with UseVBO=False, and I'm running it with UseVBO=True in the UT2004.ini. The former renders the sky correctly, the latter renders much faster.
Comment 13 almos 2010-12-22 07:27:54 UTC
Today I had the chance to try it on a geforce fx5200 with the blob driver, and the skybox is visible on the torlan level with usevbo=true; thus, it is a bug in the game. Sorry for the false alarm.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.