Crystal Space
Welcome, Guest. Please login or register.
July 30, 2014, 08:25:42 pm

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8260 Members
Latest Member: Lovelymae39
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Ummm...CG? Bug? Heeeeelp....
« previous next »
Pages: [1] Print
Author Topic: Ummm...CG? Bug? Heeeeelp....  (Read 1542 times)
Bootstrap
Newbie
*
Posts: 3


View Profile Email
« on: July 28, 2009, 02:43:44 pm »

Hello.
I have encountered one really BIG problem using crystalspace: CG.(maybe). When plugin crystalspace.shader.glcg is loaded correctly, i have such picture(screenshot attached).
There should be a lot of grass, bushes and trees, but Sad

Crystal Space version - 1.2.1(built from source)
CEL version - 1.2.1(built from source)
Operating system - Ubuntu Linux 9.04 kernel 2.6.28-13-generic
Video card - nVidia Ge-Force 8600 GT 3DNOW!
Driver - 180.44(maybe, i don`t remember exactly)
OpenGL Version 3.0.0
Compiler - GCC 4.3

And when I remove CG plugins(from /usr/local/lib/crystalspace-1.2), everything is nice, except engine warnings Smiley



* screenshot.png (111.22 KB, 400x250 - viewed 259 times.)
Logged
Vincent
Full Member
***
Posts: 191


View Profile WWW
« Reply #1 on: July 28, 2009, 02:58:51 pm »

Hi,

  can you tell us which Cg version do you have ?
Also, giving output from runnin your app with "-verbose=-scf" parameter
with and without Cg plugin available might help.
Another thing to try, check with CS/CEL 1.4.0rc2 smiley
Logged
Bootstrap
Newbie
*
Posts: 3


View Profile Email
« Reply #2 on: July 28, 2009, 03:08:56 pm »

Sure Smiley
My Cg version is 2.1(2100)
And here is the -verbose=-scf output(-plugin=bugplug -relight -verbose=-scf):

bazhenov@bazhenov-desktop:~/Programming/ChroniclesOfElavia$ ./bin/Debug/ChroniclesOfElavia -relight -plugin=bulplug -verbose=-scf
VFS_NOTIFY: loaded configuration file: /home/bazhenov/Programming/ChroniclesOfElavia/vfs.cfg
VFS_NOTIFY: merged configuration file: /usr/local/etc/crystalspace-1.2/vfs.cfg
WARNING: could not load plugin 'crystalspace.utilities.bulplug'
NOTIFY: Could not get sound loader (v2)
NOTIFY: Could not get sound driver (v2)

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: 16
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 8 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 8
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 8 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 6
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 8 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 4
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 8 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 2
  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: 16
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 8 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 8
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 8 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 6
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 8 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 4
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 8 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 2
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 8 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 0
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 16
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 8
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 6
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 4
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 2
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 0
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 16
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 8
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 6
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 4
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 2
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 1 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 0
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 0 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 16
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 0 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 8
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 0 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 6
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 0 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 4
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 0 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 2
  Probing pixel format: Color: 32 Alpha: 8 Depth: 32 Stencil: 0 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 0
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 0 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 16
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 0 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 8
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 0 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 6
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 0 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 4
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 0 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 2
  Probing pixel format: Color: 32 Alpha: 0 Depth: 32 Stencil: 0 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 0
  Probing pixel format: Color: 32 Alpha: 8 Depth: 24 Stencil: 8 AccumColor: 0
  AccumAlpha: 0 MultiSamples: 16
  Video driver GL/X version (direct renderer)
  Visual ID: 0x00000024, 24bit TrueColor
  R8:G8:B8:A8,
  level 0, double buffered

crystalspace.canvas.openglcommon:
  OpenGL renderer: GeForce 8600 GT/PCI/SSE2/3DNOW! (vendor: NVIDIA
  Corporation) version 3.0.0 NVIDIA 180.44
  Using windowed mode at resolution 1024x768.
  Pixel format: Color: 24 Alpha: 8 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 and used.
  GL Extension 'GL_ARB_texture_non_power_of_two' found and used.
  GL Extension 'GL_ARB_vertex_program' found and used.
  GL Extension 'GL_EXT_secondary_color' found and used.

crystalspace.graphics3d.opengl:
  Maximum texture size is 8192x8192
  Using VBO with 128 MB of VBO memory
  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.
  GL Extension 'GL_EXT_abgr' found and used.

crystalspace.graphics3d.opengl:
  Render-to-texture backend: EXT_framebuffer_object
  Delayed buffer swapping: disabled
  AFP DrawPixmap() workaround: disabled
  “Forceful” fixed function enable: no

crystalspace.graphics3d.shadercompiler.xmlshader:
  Shader std_lighting_fixed: 8 variations, 5 ms
  Shader std_lighting: 48 variations, 58 ms
  Shader std_lighting_portal: unvarying, 0 ms
  Shader std_lighting_fixed: 8 variations, 5 ms
  Shader std_lighting: 48 variations, 60 ms
  Shader std_lighting_portal: unvarying, 1 ms

crystalspace.mesh.object.thing:
  Lightmap quality=3
  Lightmapping enabled=1

crystalspace.graphics3d.shadercompiler.xmlshader:
  Shader ambient: 9 variations, 6 ms
  Shader std_lighting_fixed: 8 variations, 15 ms
  Shader terrain_fixed_base: 8 variations, 7 ms
  Shader terrain_fixed_splatting: 3 variations, 3 ms
  Shader light: unvarying, 15 ms
  Shader light_bumpmap: unvarying, 44 ms
  Shader light_spec_bumpmap: 2 variations, 68 ms
  Shader parallaxAtt: 2 variations, 106 ms

crystalspace.engine.notify:
  Lightmaps are not up to date (no 'lm_precalc_info' found in cache).
  Recalculation of lightmaps forced.
  Initializing lighting (3 meshes).
  Shining lights (1 lights).
Doing light 0
0 out of 66049
10000 out of 66049
20000 out of 66049
30000 out of 66049
40000 out of 66049
50000 out of 66049
60000 out of 66049
  Time taken: 0.0720 seconds.
  Caching lighting (3 meshes).

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.
  GL Extension 'GL_version_1_4' found and used.

crystalspace.graphics3d.shader.fixed:
  “Forceful” fixed function enable: no

crystalspace.graphics3d.shadercompiler.xmlshader:
  Shader 'terrain_fixed_base'<1>: Technique with priority 300 succeeds!
  Shader 'terrain_fixed_splatting'<0>: Technique with priority 300 succeeds!

crystalspace.graphics3d.shader.glcg:
  Routing Cg fragment programs to Pixel Shader plugin OFF
  Cg fragment program '(null)': using profile gp4fp[7010]
  Cg vertex program '(null)': using profile arbvp1[6150]

crystalspace.graphics3d.shadercompiler.xmlshader:
  Shader 'std_lighting'<0>: Technique with priority 150 succeeds!
WARNING: CG ERROR : Invalid program handle.
WARNING: CG ERROR : Invalid program handle.

The application was launched and exited normally.

Thank you Smiley
« Last Edit: July 28, 2009, 03:10:48 pm by Bootstrap » Logged
Vincent
Full Member
***
Posts: 191


View Profile WWW
« Reply #3 on: July 28, 2009, 03:15:12 pm »

I think CS 1.2.1 supports Cg 1.4/1.5, but was not ready for Cg 2.0+.
Try either using CS 1.4, which should support Cg 2.0+,
or install Cg 1.5 in another directory and rebuild CS to use this version instead.
If you have one, also delete $HOME/.crystalspace/shadercache/ directory after the switch.
Logged
Bootstrap
Newbie
*
Posts: 3


View Profile Email
« Reply #4 on: July 28, 2009, 03:19:24 pm »

Ok Smiley
Then I shall try CS 1.4

Thank You very much Smiley
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 7.213 seconds with 17 queries.