Author Topic: FIX: 0.3.017 on the Intel GMA X3000/G965  (Read 1748 times)

Kayden

  • Hydlaa Resident
  • *
  • Posts: 54
    • View Profile
    • The Explorers Guild
FIX: 0.3.017 on the Intel GMA X3000/G965
« on: November 23, 2006, 09:14:05 am »
Hello!

0.3.017 is incredibly broken for those of us with an Intel GMA X3000 (G965 chipset):

With 0.3.017, I:
  • Have a 100% black podium
  • Can only see bruteblock terrain (the ground/hills in ojaroad/bdroad) and hair/beards.
  • Have corrupted 2D icons in the inventory.
...this also has nothing to do with lighting—it's like most meshes are simply not rendered.

For the record, I'm using Xorg 7.1 and xf86-video-i810-1.7.2-r1 from Gentoo. Mesa 6.5.1.

To fix this, edit psclient.cfg and add:
Code: [Select]
Video.OpenGL.Shader.Cg.MaxProfile.Fragment=fp20
Video.OpenGL.MesaForceS3TCEnable = false

It doesn't seem to matter what you put in the Fragment line...I can use "xyzzyaoeunsth" instead of "fp20" and it works fine.

After adding the first line, it looks like this and this. The second line fixes video corruption.

In fact, if I omit the second line, planeshift prints this:

ATTENTION: default value of option force_s3tc_enable overridden by environment.

Someone will need to add these to Crystal Space's driverdb/gldrivers.xml.  My understanding is that the s3tc setting is not driverdb configurable at the moment, or I would've tried to make the patch myself.

For the record:
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 965G 4.1.3002
OpenGL version string: 1.4 Mesa 6.5.1


Good luck and happy PlaneShifting!
--Nilaya
Kayden - WTB Developer / Engine Team
Nilaya and Kalyan Kaeli - The Explorers Guild

res

  • Crystal Space Developer
  • Traveller
  • *
  • Posts: 30
    • View Profile
    • Crystal Space
Re: FIX: 0.3.017 on the Intel GMA X3000/G965
« Reply #1 on: November 23, 2006, 06:00:56 pm »
Can you please run planeshift with "--verbose=-scf" arguments from the shell and capture the output (with and without your changes) and get those logs somehow to me?

Thanks,
-f.r.
A Crystal Space developer

Kayden

  • Hydlaa Resident
  • *
  • Posts: 54
    • View Profile
    • The Explorers Guild
Re: FIX: 0.3.017 on the Intel GMA X3000/G965
« Reply #2 on: November 23, 2006, 08:17:24 pm »
No Changes, Both Changes --> Unified Diff

glxinfo

I'm using Crystal Space revision 25942, which was the latest at the time.

Thanks, res!
Kayden - WTB Developer / Engine Team
Nilaya and Kalyan Kaeli - The Explorers Guild

res

  • Crystal Space Developer
  • Traveller
  • *
  • Posts: 30
    • View Profile
    • Crystal Space
Re: FIX: 0.3.017 on the Intel GMA X3000/G965
« Reply #3 on: November 24, 2006, 01:38:38 am »
I'm using Crystal Space revision 25942, which was the latest at the time.

r25942? I can't get past 25931... maybe I can borrow your time machine some time?

Anyhow, here are the changes to gldrivers.xml I devised:
http://trac.crystalspace3d.org/trac/CS/changeset/25931

I'd be grateful if you could see if those changes properly work around the issues. (Just download the gldrivers.xml via the SVN web interface; don't forget to undo your own tweaks first.)

Thanks,
-f.r.
A Crystal Space developer

Kayden

  • Hydlaa Resident
  • *
  • Posts: 54
    • View Profile
    • The Explorers Guild
Re: FIX: 0.3.017 on the Intel GMA X3000/G965
« Reply #4 on: November 24, 2006, 07:11:29 am »
Hi res!

Sorry! Mistyped in my hurry...25924, not 42.

Verbatim, your gldrivers.xml change doesn't do anything at all, because

regexp string="glversion" pattern="6\.5\..."
doesn't match
OpenGL version string: 1.4 Mesa 6.5.1

But after I changed it to:
regexp string="glversion" pattern=".\.. Mesa 6\.5\.1"
planeshift works perfectly without my psclient.cfg changes. :)

Thanks so much!

--Nilaya
Kayden - WTB Developer / Engine Team
Nilaya and Kalyan Kaeli - The Explorers Guild

Chiuchu

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
Re: FIX: 0.3.017 on the Intel GMA X3000/G965
« Reply #5 on: November 24, 2006, 10:29:57 pm »
Hello !
I had the same problem and I changed the gldrivers.xml file with the modifications of Nilaya in it and it runs perfectly !

Thanks a lot !
Chiuchu.

Chiuchu

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
Re: FIX: 0.3.017 on the Intel GMA X3000/G965
« Reply #6 on: November 25, 2006, 01:08:24 pm »
Hello again !

Sorry I shouted "Victory" too fast : Planeshift seemed to run properly the first time but it doesn't ... The problem is that i must run Planeshift with my system in 16 bits because the game is flicking all the time if i don't do that... so in 16 bits the game is charging "correctly" but when i'm in the world my character can't move because of horrible lag (i think...) but if i run it with my system in 24 bits my character moves correctly but my screen is flicking all the time... what can i do for that?



louisgag

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
Re: FIX: 0.3.017 on the Intel GMA X3000/G965
« Reply #7 on: August 19, 2007, 01:24:01 am »
thanks alot Nilaya.

Nothing could get my planeshift display to work properly on ubuntu gutsy 7.10 with intel graphic drivers, 64bit.

Your changes to psclient.cfg fixed all my transparency issues!

EDIT: Ive ran into new "segmentation fault" problems:  https://bugs.launchpad.net/ubuntu/+bug/133502

SECOND EDIT: Solved my issue by buying a graphic card and disabling my integrated graphics adapter.
« Last Edit: August 24, 2007, 07:49:27 pm by louisgag »