Author Topic: nvidia-cg-toolkit 2.0  (Read 3921 times)

Bereror

  • Hydlaa Notable
  • *
  • Posts: 773
    • View Profile
    • Planeshift API
nvidia-cg-toolkit 2.0
« on: April 18, 2008, 07:41:06 pm »
Tried to start up my self-built PlaneShift client over a long time and ran into an issue that I seem to have no solution yet. The client was built when 0.4 came out and worked fine back then. Now the result is as seen on the screenshot here:



My first thought was that my new NVidia 173.08 beta drivers are to blame, but switching back to the original 169.12 version made no difference. Further investigations show that walktest from Crystal Space works fine as well as does the Xordan's binary. Using Xordan's binary as the reference, I managed to narrow the problem down to nvidia-cg-toolkit libraries, which I have the version 2.0 installed now.

Removing libCgGL.so and libCg.so from the libs directory in the Xordan's binary install makes the official binary to behave the same way. Making these two libraries from the Xordan's install available for my own build fixes the issue. So the problem seems to be that I have the nvidia-cg-toolki version 2.0 installed. Re-configuring and re-building CS, CEL and PS didn't make any difference.

Is there something that I'm missing? Or has somebody seen the same issue when self-building the PlaneShift client with the nvidia-cg-toolkit version 2.0?
PlaneShift Sources
PlaneShift API
"Words never spoken
Are the strongest resounding"

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: nvidia-cg-toolkit 2.0
« Reply #1 on: April 18, 2008, 07:59:56 pm »
with kubuntu gusty and latest repo ati drivers with Cg 2.0 built client and binary client run fine with no such issues.

only issue i have seen is http://www.crystalspace3d.org/trac/CS/ticket/454

Namach

  • Traveller
  • *
  • Posts: 12
    • View Profile
Re: nvidia-cg-toolkit 2.0
« Reply #2 on: April 19, 2008, 02:34:53 pm »
I have the same problem in gentoo linux with an nvidia geforce 8600M GS and cg-toolkit 2.0.x, so I keep using nvidia-cg-toolkit-1.5.0023..

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: nvidia-cg-toolkit 2.0
« Reply #3 on: April 22, 2008, 04:03:23 am »
The Cg Toolkit does that unless you are on an insane machine like caarrie.  I don't know why hers works but its a noted bug that the standard shader doesn't work with cg.  The reason your walktest worked was because the default castle map is a dynamic map with parallax mapping and basically no standard shader applied, hence it looks fine.  It only fails on the standard shader, all others work.  PlaneShift is completely static everywhere I've found, they make no use of shaders at all that I'm aware of save maybe a few on cal3d char models perhaps.  As a result PS looks textureless with cg2.0.

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: nvidia-cg-toolkit 2.0
« Reply #4 on: April 22, 2008, 01:05:46 pm »
i must be unique as Cg 2.0 works for me on linux with ati card and mac [leopard] with intel card, all leopard users have to use Cg 2.0 ;) and i got no issues on either machine

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: nvidia-cg-toolkit 2.0
« Reply #5 on: April 22, 2008, 08:13:29 pm »
Well the bug only exists for linux users.  It doesn't work on any of my machines atm but I only have PS compiled on four of them.  The rest suck too much to care about even bothering with.  In any case you may have just the right combo of drivers, hardware, and software versions of X and such that it works but most will experience this issue nonetheless. ;)

Bereror

  • Hydlaa Notable
  • *
  • Posts: 773
    • View Profile
    • Planeshift API
Re: nvidia-cg-toolkit 2.0
« Reply #6 on: April 25, 2008, 09:05:30 pm »
Thanks Induane, seems that I have to keep the old Cg Toolkit 1.5 version around. But I have another question that you might be able to give some light.

Long time ago when I built my first PlaneShift client, I didn't have the Cg toolkit installed at all. The client still worked fine and if I rename my current Cg toolkit 2.0 libraries, it works as well as it works with 1.5 libraries. Only if my 2.0 libraries are around, it stops working properly.

So what's the point of having it installed at all? Sure, it gives me a warning at startup, but I really can't see any visible differences. Well, I didn't spend too much time looking around for things that don't work, but it loaded and there wasn't anything wrong on the Hydlaa Plaza map.
PlaneShift Sources
PlaneShift API
"Words never spoken
Are the strongest resounding"

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
Re: nvidia-cg-toolkit 2.0
« Reply #7 on: April 29, 2008, 12:41:14 am »
I had this *exact* same problem.  I just updated Ubuntu to the 8.04 LTS and I got the same graphical errors.   Rolling back to the Cg-1.5 toolkit fixed it right up.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
Re: nvidia-cg-toolkit 2.0
« Reply #8 on: April 29, 2008, 03:49:49 am »
http://www.crystalspace3d.org/trac/CS/ticket/473

If there's any extra info to add to that ticket, do so :)