You are not logged in.

#1 2005-11-16 08:37:49

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Strange graphics while playing cube

I have a proplem with cube (which I might add to the community repo). When I play it, the graphics are terrible. The red and blue colors are the dominant ones. The graphics also looks very pixelized.  I tried to take a screenshot with cube running in full screen mode but instead I got this:
http://www.astro.umontreal.ca/~belanger/screenshot.png

As you can see,  in the screenshot, cube is not running full screen mode and the colors are fine.  What does it mean?
I tried changing the settings in the cube tweaking menu without success. My video card is an Intel i810 using the xorg drivers with dri enabled. I don't use composite.

Any ideas?

Offline

#2 2005-11-16 13:42:56

drg006
Member
Registered: 2005-01-09
Posts: 19

Re: Strange graphics while playing cube

have you tried any other fullscreen 3D games? if not, please try enemy-territory and/or armyops (both in the AUR) and let us know if you get the same problems.

Offline

#3 2005-11-17 01:48:48

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Strange graphics while playing cube

OK, I'll try.

Offline

#4 2005-11-18 07:23:55

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Strange graphics while playing cube

I tried both ET and armyops. The ET graphics are fine.  For armyops, I get the same problem than cube. sad However, the colours of the armyops splash screen are fine.

Again, I tried taking a snapshop of armyops at full screen but I got the same results than cube: a smaller window with the correct colours.

I am not sure if it's related but armyops crashed whend I tried to turn off the full screen option.

Offline

#5 2005-11-18 15:11:28

drg006
Member
Registered: 2005-01-09
Posts: 19

Re: Strange graphics while playing cube

if two games have the same problem, I'm guessing it's a problem with the graphics driver (maybe ET works because it doesn't use the feature that causes the problem).  I doubt there is anything I can do in the PKGBUILD, especially considering the executables are precomiled (to prevent cheating).

Offline

#6 2005-11-19 03:33:34

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Strange graphics while playing cube

It's a xorg driver problem. I tried the vesa drivers instead of the i810 ones and the colors were fine. The problem is that dri doesn't work with the vesa drivers so the game is quite slow.  sad

I'll probably still put cube in  [community] repo.  Hopefully, the next xorg i810 drivers will be better. :?

Offline

#7 2005-11-22 19:45:33

TomE
Member
Registered: 2005-08-06
Posts: 164

Re: Strange graphics while playing cube

cube has a problem with i810 vidio card.
if you try searching the "forum"(aka steaming pile of donky shite) for "i810 linux patch" you'll find this patch

diff -r src/renderextras.cpp src-new/renderextras.cpp
312a313
> glDepthMask(GL_FALSE);
328a330
> glDepthMask(GL_TRUE);
diff -r src/rendergl.cpp src-new/rendergl.cpp
238c238
< if(SDL_SetGamma(f,f,f)==-1)
---
> if(0 && SDL_SetGamma(f,f,f)==-1)

i've not tryed it becuse i can't be arsed watch it compile

Offline

#8 2005-11-22 19:53:36

drg006
Member
Registered: 2005-01-09
Posts: 19

Re: Strange graphics while playing cube

just a note: we can't recompile this package for the AUR, because builds from source can't play multiplayer (to prevent cheating)

Offline

#9 2005-11-23 20:01:32

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Strange graphics while playing cube

Thanks, I will give the patch a try. Hopefully, it'll be included in the next pre-compiled released.

Offline

#10 2005-11-23 20:55:27

Richie
Member
From: Leverkusen, Germany
Registered: 2003-12-10
Posts: 22

Re: Strange graphics while playing cube

You could write a little script which xrandrs to the cube-resolution, starts cube and then switches the resolution back.
That way you get fullscreen and multiplayer.

Offline

#11 2005-11-23 21:41:37

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Strange graphics while playing cube

The patch works. smile  I'll try Richie's script suggestion.

Offline

#12 2005-11-25 02:32:26

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Strange graphics while playing cube

@Richie: Thanks for your suggestion but it is of no use to me as cube already runs fullscreen.

I will put the precompiled cube in the [community] repo.  I will also put a PKGBUILD in AUR for users who wants to compile cube with the patch for the i810 card. It compiles rather rapidly.

Offline

Board footer

Powered by FluxBB