Author Topic: things like items are not displayed right  (Read 1240 times)

loux

  • Hydlaa Citizen
  • *
  • Posts: 222
    • View Profile
things like items are not displayed right
« on: August 25, 2006, 04:07:11 pm »
Hello,
i compile planeshift from scratch (svn cal3d rev 424, svn crystal, svn cel and cvs planeshift)
i have athlon-xp with nvidia geforce 6600 GT,
everything works great but the items (armors, weapons, glyphs, ...) are not well displayed !
when i use the soft from the installer version their are well displayed but the game is slower

it sounds like ./art/things/*.zip are not well displayed like weapons.zip so i think about dds file
this iLoader from iengine from crystalspace who read them so i go on

can you help me solving that
loux
thanks
PS : screenshot http://www.abzac.eu/shot01.jpg

« Last Edit: August 25, 2006, 06:57:25 pm by loux »

ThomPhoenix

  • Testers
  • Forum Addict
  • *
  • Posts: 2678
  • A Phoenix, what'd you expect?
    • View Profile
Re: things like items are not displayed right
« Reply #1 on: August 25, 2006, 06:41:26 pm »
You have Cal3d from CVS? If I were you I'd use the SVN version because the CVS one has issues.
Drop by on IRC Freenode #planeshift-build for more info on that.
We're not evil. We're simply amazing.

loux

  • Hydlaa Citizen
  • *
  • Posts: 222
    • View Profile
Re: things like items are not displayed right
« Reply #2 on: August 25, 2006, 06:56:50 pm »
sorry i use the svn version 424 of cal3d
thanks for taking a look at my trouble
loux

Bereror

  • Hydlaa Notable
  • *
  • Posts: 773
    • View Profile
    • Planeshift API
Re: things like items are not displayed right
« Reply #3 on: August 25, 2006, 07:01:08 pm »
Add these three lines to your psclient.cfg file:
Code: [Select]
Video.OpenGL.UseExtension.GL_EXT_texture_rectangle = false
Video.OpenGL.UseExtension.GL_ARB_texture_rectangle = false
Video.OpenGL.UseExtension.GL_NV_texture_rectangle = false
PlaneShift Sources
PlaneShift API
"Words never spoken
Are the strongest resounding"

loux

  • Hydlaa Citizen
  • *
  • Posts: 222
    • View Profile
Re: things like items are not displayed right
« Reply #4 on: August 25, 2006, 07:41:17 pm »
thanks it works
but why do i need that with my version of planeshift and with the official one ?
loux

Bereror

  • Hydlaa Notable
  • *
  • Posts: 773
    • View Profile
    • Planeshift API
Re: things like items are not displayed right
« Reply #5 on: August 25, 2006, 09:01:21 pm »
There is a line in src/common/paws/pawstexturemanager.cpp:
Code: [Select]
    texture = textureManager->RegisterTexture( ifile,
                                               CS_TEXTURE_2D |
                                               CS_TEXTURE_3D |
                                               CS_TEXTURE_NOMIPMAPS |
                                              //  This doesn't seem to have an effect, and crashes some Macs.
                                               CS_TEXTURE_CLAMP |
                                               CS_TEXTURE_NPOTS);

Originally both CS_TEXTURE_CLAMP and CS_TEXTURE_NPOTS options were commented out, but we enabled them in CVS after the 0.3.015 release by the request of CrystalSpace developers. Unfortunately on my two older PCs with NVidia cards the game started crashing and the newest laptop shows the same than seen on your screenshot.

I have no idea what for these options are since I am not an expert in that area, but CrystalSpace developers wanted to know if it gives problems and if yes, what kind of problems. The current solution for graphic cards where they don't work was in my previous post.

The binary version is compiled with these options disabled and therefore doesn't need configuration file changes.

EDIT: This is not a Linux specific problem because I had to modify the psclient.cfg file on my Windows PC too.
« Last Edit: August 25, 2006, 09:03:28 pm by Bereror »
PlaneShift Sources
PlaneShift API
"Words never spoken
Are the strongest resounding"

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: things like items are not displayed right
« Reply #6 on: August 26, 2006, 03:48:45 am »
It is possible to compile planeshift using the stable SVN from cal3d.  It requires patching the stable version of crystalspace though.  I've posted instructions before, and also the binaries I made use cal3d from svn.  It just takes more effort.  Those graphics bugs ARE weird thugh :D

JohnB

  • Traveller
  • *
  • Posts: 25
    • View Profile
Re: things like items are not displayed right
« Reply #7 on: September 15, 2006, 09:39:31 pm »
Just to bump this back to the top, because I had the same problem with the new client compiled from CVS code and art downloaded by the updater (everything was fine with the 015 client) so this could be useful for others.

Bereror's fix worked for me too - thanks Bereror!

Wired_Crawler

  • Hydlaa Citizen
  • *
  • Posts: 429
    • View Profile
Re: things like items are not displayed right
« Reply #8 on: September 15, 2006, 09:52:36 pm »
FYI:

Adding the following line:
Code: [Select]
Video.OpenGL.UseExtension.GL_EXT_texture_compression_s3tc = false

OR the following line

Code: [Select]
Video.OpenGL.UseExtension.GL_ARB_texture_compression  = false

to psclient.cfg instead of those given by Bereror helps me too.
"Close the world, txEn eht nepO."