Crystal Space
Welcome, Guest. Please login or register.
December 22, 2014, 11:53:47 pm

Login with username, password and session length
Search:     Advanced search
9032 Posts in 2046 Topics by 9306 Members
Latest Member: Marjoriechapp
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Shader not loading
« previous next »
Pages: [1] Print
Author Topic: Shader not loading  (Read 2431 times)
Recon
Newbie
*
Posts: 24


View Profile
« on: September 01, 2006, 04:39:37 pm »

want to find out why my shader is not working

output from walktest

Code:

mec@mec-desktop:~/development/CS$ ./walktest stenciltest -verbose=-scf
VFS_NOTIFY: loaded configuration file: /home/mec/development/CS/./vfs.cfg
VFS_NOTIFY: merged configuration file: /home/mec/development/CS/vfs.cfg
DEBUG: Sound System Software Renderer Initializing...

crystalspace.system:
  World saving enabled.
  Crystal Space version 0.99 r0 [Unix-x86-GCC] (Mon 7-Jul-2004).
  Created by Jorrit Tyberghein and others...

crystalspace.graphics3d.opengl:
  Texture LOD bias -0.3

crystalspace.canvas.glx2d:
  Opening GLX2D
  Creating Context
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 8 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 0
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 8 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 0
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 0
  Probing pixel format: Color: 32 Alpha: 0 Depth: 24 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 0
  Video driver GL/X version (direct renderer)
  Visual ID: 0x00000021, 24bit TrueColor
  R8:G8:B8:A0,
  level 0, double buffered

crystalspace.canvas.openglcommon.driverdb:
  Applied: Broken ATI point sprites (NV)

crystalspace.canvas.openglcommon:
  OpenGL renderer: GeForce 6600 LE/AGP/SSE2 (vendor: NVIDIA Corporation)
  version 2.0.2 NVIDIA 87.62
  Using windowed mode at resolution 640x480.
  Pixel format: Color: 24 Alpha: 0 Depth: 24 Stencil: 8 AccumColor: 48
  AccumAlpha: 16 MultiSamples: 0

crystalspace.canvas.opengl.extmgr:
  GL Extension 'GL_ARB_multitexture' found and used.
  GL Extension 'GL_ARB_texture_env_combine' found and used.
  GL Extension 'GL_ARB_multisample' found and used.

crystalspace.canvas.openglcommon:
  Multisample: disabled

crystalspace.canvas.opengl.extmgr:
  GL Extension 'GL_ARB_fragment_program' found and used.

crystalspace.canvas.openglcommon.fontcache:
  Text drawing method: Multitexturing

crystalspace.canvas.opengl.extmgr:
  GL Extension 'GL_version_1_2' found and used.
  GL Extension 'GL_ARB_texture_cube_map' found and used.
  GL Extension 'GL_EXT_texture3D' found and used.
  GL Extension 'GL_ARB_vertex_buffer_object' found and used.
  GL Extension 'GL_SGIS_generate_mipmap' found and used.
  GL Extension 'GL_EXT_texture_filter_anisotropic' found and used.
  GL Extension 'GL_EXT_texture_lod_bias' found and used.
  GL Extension 'GL_ARB_point_parameters' found and used.
  GL Extension 'GL_ARB_point_sprite' found, but not used.
  GL Extension 'GL_EXT_framebuffer_object' found, but not used.
  GL Extension 'GL_ARB_texture_rectangle' found and used.
  GL Extension 'GL_ARB_vertex_program' found and used.
  GL Extension 'GL_EXT_secondary_color' found and used.
  GL Extension 'GL_GREMEDY_string_marker' not found.

crystalspace.graphics3d.opengl:
  Maximum texture size is 4096x4096

crystalspace.graphics3d.opengl.vbo:
  Setting up VBO buffers, VB: 32 MB IB: 16 MB

crystalspace.graphics3d.opengl:
  Stencil clipping is used for objects >= 50 triangles.
  Clearing Z buffer when stencil clear is needed enabled

crystalspace.graphics3d.shadermgr:
  Loaded compiler plugin crystalspace.graphics3d.shadercompiler.xmlshader,
  compiler: XMLShader

crystalspace.canvas.opengl.extmgr:
  GL Extension 'GL_ARB_texture_compression' found and used.
  GL Extension 'GL_EXT_texture_compression_s3tc' found and used.

crystalspace.graphics3d.opengl:
  Render-to-texture backend: framebuffer
  Delayed buffer swapping: disabled
  AFP DrawPixmap() workaround: disabled

crystalspace.graphics3d.shadercompiler.xmlshader:
  Shader std_lighting_fixed: 8 variations, 9 ms
  Shader std_lighting: 48 variations, 105 ms
  Shader std_lighting_portal: unvarying, 1 ms

crystalspace.system:
  Loading map 'stenciltest'.

crystalspace.graphics3d.shadercompiler.xmlshader:
  Shader ambient: 7 variations, 5 ms
  Shader light: unvarying, 29 ms
  Shader light_bumpmap: unvarying, 57 ms

crystalspace.system:
  Precaching all things...
  Precaching finished...
Total level load time: 0.783 seconds
  Computing OBBs ...
  --------------------------------------

crystalspace.canvas.opengl.extmgr:
  GL Extension 'GL_EXT_separate_specular_color' found and used.
  GL Extension 'GL_ARB_texture_env_dot3' found and used.

crystalspace.graphics3d.shader.fixed:
  Multitexture units: moderate 4

crystalspace.canvas.opengl.extmgr:
  GL Extension 'GL_version_1_3' found and used.

crystalspace.graphics3d.shadercompiler.xmlshader:
  Shader 'ambient'<1>: Technique with priority 50 succeeds!
  Shader shadowextrude: unvarying, 3 ms
  Shader 'shadowextrude'<0>: Technique with priority 100 succeeds!
  Shader 'light_bumpmap'<0>: Technique with priority 350 fails. Reason:
  fragment program failed to load.
  Shader 'light_bumpmap'<0>: Technique with priority 300 fails. Reason:
  destination alpha not supported by renderer.
  Shader 'light_bumpmap'<0>: Technique with priority 250 fails. Reason:
  destination alpha not supported by renderer.
  Shader 'light_bumpmap'<0>: Technique with priority 220 fails. Reason:
  destination alpha not supported by renderer.
  Shader 'light_bumpmap'<0>: Technique with priority 200 fails. Reason:
  destination alpha not supported by renderer.
  Shader 'light_bumpmap'<0>: Technique with priority 150 fails. Reason:
  destination alpha not supported by renderer.
  Shader 'light_bumpmap'<0>: Technique with priority 100 succeeds!
  Shader 'light'<0>: Technique with priority 200 fails. Reason: destination
  alpha not supported by renderer.


I got a GeForce 6600 LE running on ubuntu6.06 with Nvidia linux Drivers loaded.
was wondering if it's the card, driver or OS set up causing the problem.
just an anoyance at the moment but I will have to try fix it eventualy Smiley

regards





Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: September 01, 2006, 06:11:42 pm »

Hmm... What exactly is the problem?

Greetings,
Logged
Recon
Newbie
*
Posts: 24


View Profile
« Reply #2 on: September 01, 2006, 08:33:48 pm »

basicly a black screen when i run

 ./walktest stenciltest

and in about ever other CS app i run it says

 could not load plugin 'crystalspace.graphics3d.shader.glcg'

But other than that everything seem to be working.

Logged
Commander
Newbie
*
Posts: 15


View Profile
« Reply #3 on: September 02, 2006, 01:42:59 am »

I just tried this out, and I have an almost black screen. There is a room, but it's really dark in there. -relight doesn't help.

Output is:
Code:
$ ./walktest data/stenciltest/
WARNING: could not load plugin 'crystalspace.window.x.extf86vm'
DEBUG: Sound System Software Renderer Initializing...
Total level load time: 1.686 seconds

crystalspace.graphics3d.shader.fixed.fp:
? Invalid alpha modifier: color
? [node:
? shader(name=light),technique(priority=150),pass,fp,fixedfp,layer,alphasource]
? Invalid alpha modifier: color
? [node:
? shader(name=light),technique(priority=150),pass,fp,fixedfp,layer,alphasource]
? Invalid alpha modifier: color
? [node:
? shader(name=light),technique(priority=150),pass,fp,fixedfp,layer,alphasource]
Cleaning up...
Segmentation fault

The segmentation fault happens when exiting any CS application. It appears somewhere in OpenGL/TLS. Propably the video driver.

Debian Linux testing
Kernel 2.6.15.4
GeForce 2 Ti
nVidia driver 7174

I just updated to revision 25269 and the error output disappeared, but the room is still dark.

Most other apps and maps also show the ...shader.glcg error, propably because I don't have libcg installed when building CS.
Logged
Recon
Newbie
*
Posts: 24


View Profile
« Reply #4 on: September 07, 2006, 09:02:04 pm »

Well I installed the CG shader lib then linked and compiled CS. the sharder not loading message is gone.
The ./walktest stenciltest still gives me a black screen. not sure what it's meant to look like.

got the CG lib at
http://developer.nvidia.com/object/cg_toolkit.html

regards

Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 8.416 seconds with 17 queries.