Crystal Space
Welcome,
Guest
. Please
login
or
register
.
May 19, 2013, 06:09:01 pm
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
9223
Posts in
2230
Topics by
5382
Members
Latest Member:
Razasaqib
Crystal Space
Crystal Space Development
Support
All Programs output distorted on certain angles
« previous
next »
Pages:
[
1
]
Author
Topic: All Programs output distorted on certain angles (Read 1922 times)
Yamakuzure
Newbie
Posts: 8
All Programs output distorted on certain angles
«
on:
November 10, 2010, 02:25:11 pm »
Hello everybody,
I would like to try out CrystalSpace, but can't even get the demo programs to run properly.
Everything compiles fine, but when I start
walktest
for example, it looks like this:
Picture A
. But when I turn around a bit I see this:
Picture B
.
My System:
Version of CS : 1.4.0
Version of winlibs package : none
Operating system : Gentoo Linux x64
Compiler : gcc-Version 4.4.4 (Gentoo 4.4.4-r2 p1.2, pie-0.4.5) [Thread-Modell: posix]
Video card : Intel Corporation Mobile GME965/GLE960 Integrated Graphics Controller (rev 0c)
Driver : (Video) Module intel: vendor="X.Org Foundation", compiled for 1.9.2, module version = 2.13.0 ; (OpenGL) 2.1 Mesa 7.9
Running with -verbose=-vcs (for taking those screenshots) printed out the following:
Code:
sed@sed-notebook ~ $ walktest -verbose=-scf
VFS_NOTIFY: loaded configuration file: /etc/crystalspace-1.4/vfs.cfg
DEBUG: Sound System Software Renderer Initializing...
crystalspace.system:
World saving enabled.
Crystal Space version 1.4.0.632 [Unix-x86-GCC] (Mon 5-Jun-2008).
Created by Jorrit Tyberghein and others...
crystalspace.graphics3d.opengl:
Texture LOD bias -0.3
crystalspace.canvas.glx2d:
Opening GLX2D
ATTENTION: default value of option force_s3tc_enable overridden by environment.
crystalspace.canvas.opengl.extmgr:
GLX Extension 'GLX_ARB_multisample' found and used.
crystalspace.canvas.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: 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: 0
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: 0
Probing pixel format: Color: 32 Alpha: 8 Depth: 24 Stencil: 8 AccumColor: 0
AccumAlpha: 0 MultiSamples: 0
ATTENTION: option value of option force_s3tc_enable ignored.
ATTENTION: option value of option force_s3tc_enable ignored.
Video driver GL/X version (direct renderer)
Visual ID: 0x0000000000000021, 24bit TrueColor
R8:G8:B8:A8,
level 0, double buffered
crystalspace.canvas.openglcommon.driverdb:
Applied: Intel DRI: Disable texture compression
crystalspace.canvas.opengl.extmgr:
GL Extension 'GL_ARB_multitexture' found and used.
GL Extension 'GL_ARB_fragment_program' found and used.
crystalspace.canvas.openglcommon:
OpenGL renderer: Mesa DRI Intel(R) 965GME/GLE GEM 20100330 DEVELOPMENT
(vendor: Tungsten Graphics, Inc) version 2.1 Mesa 7.9
Using windowed mode at resolution 800x600.
Pixel format: Color: 24 Alpha: 8 Depth: 24 Stencil: 8 AccumColor: 0
AccumAlpha: 0 MultiSamples: 0
crystalspace.canvas.opengl.extmgr:
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.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 and 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.
GL Extension 'GL_EXT_blend_func_separate' found and used.
crystalspace.graphics3d.opengl:
Maximum texture size is 4096x4096
Using VBO with 64 MB of VBO memory
Stencil clipping is used for objects >= 1 triangles.
Clearing Z buffer when stencil clear is needed enabled
crystalspace.graphics3d.shadermgr:
Loaded compiler plugin crystalspace.graphics3d.shadercompiler.weaver,
compiler: ShaderWeaver
Loaded compiler plugin crystalspace.graphics3d.shadercompiler.xmlshader,
compiler: XMLShader
crystalspace.canvas.opengl.extmgr:
GL Extension 'GL_ARB_texture_compression' found, but not used.
GL Extension 'GL_ARB_texture_float' not found.
GL Extension 'GL_ARB_pixel_buffer_object' found and used.
GL Extension 'GL_EXT_abgr' found and used.
GL Extension 'GL_EXT_packed_depth_stencil' found and used.
GL Extension 'GL_ARB_depth_texture' found and used.
crystalspace.graphics3d.opengl:
Available texture image units: 16 texture coordinate units: 8
FBO: depth format GL_DEPTH_STENCIL_EXT, stencil format GL_DEPTH_STENCIL_EXT
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: 12 variations, 1 ms
Shader std_lighting: 168 variations, 57 ms
Shader std_lighting_portal: unvarying, 0 ms
crystalspace.system:
Loading map 'castle'.
crystalspace.graphics3d.shadercompiler.xmlshader:
Shader std_lighting_fixed: 12 variations, 1 ms
Shader std_lighting: 168 variations, 23 ms
Shader std_lighting_portal: unvarying, 1 ms
Shader light: unvarying, 1 ms
Shader light_bumpmap: unvarying, 17 ms
Shader light_spec_bumpmap: 2 variations, 37 ms
Shader parallaxAtt: 8 variations, 58 ms
Shader ambient: 9 variations, 1 ms
Shader std_lighting: 168 variations, 17 ms
crystalspace.system:
Precaching all things...
WARNING! Object 'Mesh.002' is not closed!
WARNING! Object 'Cylinder.018' is not closed!
WARNING! Object 'Cylinder.025' is not closed!
WARNING! Object 'Mesh.001' is not closed!
WARNING! Object 'Cube.582' is not closed!
WARNING! Object 'Cube.577' is not closed!
...
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: whopping 8
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 'ambient'<1>: Technique with priority 50 succeeds!
crystalspace.graphics3d.shader.glcg:
Routing Cg fragment programs to Pixel Shader plugin OFF
Cg fragment program '(null)': using profile arbfp1[7000]
(29) : warning C7011: implicit cast from "float4" to "float3"
float2 newTexcoord = (height * normEye).xy + IN.TexCoord;
Cg fragment program '(null)': using profile arbfp1[7000]
(32) : warning C7011: implicit cast from "float4" to "float3"
float2 newTexcoord = (height * normEye).xy + IN.TexCoord;
(32) : warning C7011: implicit cast from "float4" to "float3"
float2 newTexcoord = (height * normEye).xy + IN.TexCoord;
Cg vertex program '(null)': using profile arbvp1[6150]
(46) : warning C7011: implicit cast from "float4" to "float3"
float3 eyeVec = ModelViewIT[3] - IN.Position;
(46) : warning C7011: implicit cast from "float4" to "float3"
float3 eyeVec = ModelViewIT[3] - IN.Position;
crystalspace.graphics3d.shadercompiler.xmlshader:
Shader 'parallaxAtt'<7>: Technique with priority 150 succeeds!
crystalspace.graphics3d.shader.glcg:
Cg fragment program '(null)': using profile arbfp1[7000]
(29) : warning C7011: implicit cast from "float4" to "float3"
float2 newTexcoord = (height * normEye).xy + IN.TexCoord;
Cg fragment program '(null)': using profile arbfp1[7000]
(33) : warning C7011: implicit cast from "float4" to "float3"
float2 newTexcoord = (height * normEye).xy + IN.TexCoord;
(33) : warning C7011: implicit cast from "float4" to "float3"
float2 newTexcoord = (height * normEye).xy + IN.TexCoord;
Cg vertex program '(null)': using profile arbvp1[6150]
(47) : warning C7011: implicit cast from "float4" to "float3"
float3 eyeVec = ModelViewIT[3] - IN.Position;
(47) : warning C7011: implicit cast from "float4" to "float3"
float3 eyeVec = ModelViewIT[3] - IN.Position;
crystalspace.graphics3d.shadercompiler.xmlshader:
Shader 'parallaxAtt'<1>: Technique with priority 150 succeeds!
crystalspace.graphics3d.shader.glcg:
Cg fragment program '(null)': using profile arbfp1[7000]
Cg fragment program '(null)': using profile arbfp1[7000]
Cg vertex program '(null)': using profile arbvp1[6150]
crystalspace.graphics3d.shadercompiler.xmlshader:
Shader 'std_lighting'<0>: Technique with priority 150 succeeds!
crystalspace.system:
Precaching finished...
Total level load time: 3.167 seconds
Computing OBBs ...
--------------------------------------
crystalspace.font.server.multiplexer:
Could not load font "/fonts/ttf/arialuni.ttf"
Could not load font "/fonts/ttf/arial.ttf"
Cleaning up...
What could cause those distortions, and how can I get rid of them?
Edit
: After doing some tutorials I noticed, that those distortions appear in all CS Apps.
(see below)
«
Last Edit: November 23, 2010, 09:37:48 am by Yamakuzure
»
Logged
Yamakuzure
Newbie
Posts: 8
Re: Demo Programs output distorted on certain angles
«
Reply #1 on:
November 12, 2010, 09:15:35 am »
I do not know whether this is of relevance but I tried CrystalSpace with the following versions of the nvidia cg-toolkit: (All with the same result)
2.1.0012
2.1.0016
2.1.0017
2.2.0017 (current version on my system)
Logged
Yamakuzure
Newbie
Posts: 8
Re: All Programs output distorted on certain angles
«
Reply #2 on:
November 23, 2010, 09:49:20 am »
While playing around with the Tutorials in the CS-1.4 Manual, I had to witness the same distortions. It should look like in
Picture A
and when I move around a bit it looks like
Picture B
.
This is starting to get really frustrating, because I can't find the reason for that.
One additional thing:
I have to configure CrystalSpace with "
--enable-make-emulation
". When I try compiling without make emulation (aka using system jdk?) the compilation fails with:
Code:
MkDir1 ./out/linux/optimize/plugins/cscript/csjava
./include/csplugincommon/opengl/glextmanager.h: In member function 'void csGLExtensionManager::InitGL_ARB_multitexture()':
./include/csplugincommon/opengl/glextmanager.h:18871: warning: suggest parentheses around assignment used as truth value
RunSwig ./out/linux/optimize/plugins/cscript/csjava/csjava.cpp
( ... some warnings like this: ... )
./include/csplugincommon/opengl/glextmanager.h: In member function 'void csGLExtensionManager::InitGL_ARB_vertex_program()':
./include/csplugincommon/opengl/glextmanager.h:19525: warning: suggest parentheses around assignment used as truth value
swig: Modules/lang.cxx:337: Language::Language(): Assertion `!this_' failed.
/bin/sh: line 1: 8994 Aborted swig -java -c++ -java -package org.crystalspace3d -I/var/tmp/portage/dev-games/crystalspace-1.4.0-r1/work/crystalspace-src-1.4.0/include -I./include -outdir ./out/linux/optimize/plugins/cscript/csjava/src/org/crystalspace3d -o ./out/linux/optimize/plugins/cscript/csjava/csjava.cpp /var/tmp/portage/dev-games/crystalspace-1.4.0-r1/work/crystalspace-src-1.4.0/include/bindings/cspace.i
/bin/sh: line 29: ./out/linux/optimize/plugins/cscript/csjava/csjava.cpp: No such file or directory
mv: cannot stat `./out/linux/optimize/plugins/cscript/csjava/csjava.cpp.sed': No such file or directory
( ... a lot of warnings like this: ... )
./include/csplugincommon/opengl/glextmanager.h: In member function 'void csGLExtensionManager::InitGL_ARB_texture_rg()':
./include/csplugincommon/opengl/glextmanager.h:24927: warning: suggest parentheses around assignment used as truth value
In file included from ./include/csplugincommon/canvas/graph2d.h:41,
from ./include/csplugincommon/opengl/glcommon2d.h:34,
from /var/tmp/portage/dev-games/crystalspace-1.4.0-r1/work/crystalspace-src-1.4.0/libs/csplugincommon/opengl/glfontcache.cpp:35:
./include/ivideo/graph2d.h:146: warning: 'iOffscreenCanvasCallback' is deprecated (declared at ./include/ivideo/graph2d.h:145)
In file included from ./include/csplugincommon/opengl/glstates.h:35,
from ./include/csplugincommon/opengl/glcommon2d.h:38,
from /var/tmp/portage/dev-games/crystalspace-1.4.0-r1/work/crystalspace-src-1.4.0/libs/csplugincommon/opengl/glfontcache.cpp:35:
(... a lot of warnings like this:)
./include/csplugincommon/opengl/glextmanager.h: In member function 'void csGLExtensionManager::InitGL_version_1_2()':
./include/csplugincommon/opengl/glextmanager.h:24927: warning: suggest parentheses around assignment used as truth value
swig -java -c++ -java -package org.crystalspace3d -I/var/tmp/portage/dev-games/crystalspace-1.4.0-r1/work/crystalspace-src-1.4.0/include -I./include -outdir ./out/linux/optimize/plugins/cscript/csjava/src/org/crystalspace3d -o ./out/linux/optimize/plugins/cscript/csjava/csjava.cpp /var/tmp/portage/dev-games/crystalspace-1.4.0-r1/work/crystalspace-src-1.4.0/include/bindings/cspace.i
sed 's/\([ ]*#[ ]*include[ ][ ]*[<"]Python.h[>"]\)/\
#ifndef __STDC_CONSTANT_MACROS\
#define __STDC_CONSTANT_MACROS\
#endif\
#ifndef __STDC_LIMIT_MACROS\
#define __STDC_LIMIT_MACROS\
#endif\
#ifdef _MSC_VER\
#include <io.h>\
#include <stdarg.h>\
#if defined(_DEBUG) \&\& !defined(DEBUG_PYTHON)\
#undef _DEBUG\
#define RESTORE__DEBUG\
#endif\
#endif\
\1\
#ifdef RESTORE__DEBUG\
#define _DEBUG\
#undef RESTORE__DEBUG\
#endif/g
/$Header:/d
s/new[ ][ ]*(\([^)][^)]*\))[ ]*\[/new \1 [/g
s/[ ]*#[ ]*define[ ][ ]*SWIG_init[ ]*init_\(.*\)/#define SWIG_init SWIG_init_\1/g
s/\([ ]*#[ ]*include[ ][ ]*[<"]perl.h[>"]\)/\
#ifndef _DIRENT_H_\
#define _DIRENT_H_\
#endif\
\1/g' < ./out/linux/optimize/plugins/cscript/csjava/csjava.cpp > ./out/linux/optimize/plugins/cscript/csjava/csjava.cpp.sed
rm -f ./out/linux/optimize/plugins/cscript/csjava/csjava.cpp
mv -f ./out/linux/optimize/plugins/cscript/csjava/csjava.cpp.sed ./out/linux/optimize/plugins/cscript/csjava/csjava.cpp
...failed RunSwig ./out/linux/optimize/plugins/cscript/csjava/csjava.cpp ...
...skipped <plugins!cscript!csjava!>csjava.o for lack of <plugins!cscript!csjava>csjava.cpp...
...skipped libcsjava.so for lack of <plugins!cscript!csjava!>csjava.o...
ResponseFile1 ./out/linux/optimize/libs/libcrystalspace_opengl-1.4.so.resp
LinkSharedLibraryRsp ./out/linux/optimize/libs/libcrystalspace_opengl-1.4.so
Touch ./out/linux/optimize/libs/libcrystalspace_opengl-1.4.so
DoSymLink libcrystalspace_opengl-1.4.so
...failed updating 1 target(s)...
...skipped 2 target(s)...
...updated 261 target(s)...
GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.22"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
But this can't be the reason, can it?
Java version : sun-jdk-1.6.0.22
swig version : 2.01 (also tried 1.3.40-r1 and 2.0.0)
JAM version : ftjam-2.5.3_rc2-r1
btw.: This warning about "
suggest parentheses around assignment used as truth value
" appears 835 times, and *only* if I try to build CrystalSpace without make emulation.
«
Last Edit: November 23, 2010, 10:07:36 am by Yamakuzure
»
Logged
Vincent
Full Member
Posts: 191
Re: All Programs output distorted on certain angles
«
Reply #3 on:
November 23, 2010, 10:49:27 am »
Hello,
about the graphic glitches, it may well be due to the generally poor quality of
Intel graphic cards or driver. I'd suggest you to show this post with pictures
to people (especially res/res2k) in the #crystalspace IRC channel on chat.freenode.net server.
Maybe that's fixeable, but that will require quite some follow-ups with people in the know
(eg. debug shaders, using tools like buGLe, ...)
For the Java related errors, it may be due to your Swig versions being too recent.
You could either try using Swig 1.3.33 or maybe 1.3.36, or disable it,
so that the pre-generated files (present in CS source) are used.
Logged
Yamakuzure
Newbie
Posts: 8
Re: All Programs output distorted on certain angles
«
Reply #4 on:
November 30, 2010, 09:10:12 am »
Hi, and thanks for the reply!
Well, I surely suspected the intel drivers. But I made some tests, and everything else works fine. I tested GLFrontier, Briquolo (OpenGL), FreeOrion (Ogre3D) and all Irrlicht demos. (The latter look like
this
,
this
and
this
.)
*Sigh*
I guess it has something to do with CXXFLAGS. So I will rebuild CrystalSpace today without any additional flags, and see whether the issue goes away. If it does, I can add single flags until the distortions re-appear. If not, I'll go and look what the people on IRC say.
For the java issue, the lowest version of swig directly available on gentoo linux is 1.3.40. But it's not a problem, because CS compiles fine with "--enable-make-emulation".
«
Last Edit: November 30, 2010, 09:14:30 am by Yamakuzure
»
Logged
Yamakuzure
Newbie
Posts: 8
Re: All Programs output distorted on certain angles
«
Reply #5 on:
December 01, 2010, 04:36:37 pm »
Nope, it is no compilation issue due to C(XX)FLAGS or LDFLAGS... *sigh*
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Crystal Space Development
-----------------------------
=> General Crystal Space Discussion
=> Support
-----------------------------
Crystal Space Project Development
-----------------------------
=> Feature Requests
=> Plugins
=> Bug Reports
-----------------------------
Crystal Space Development
-----------------------------
=> Game Content Creation
-----------------------------
Miscellaneous
-----------------------------
=> Article/Tutorial Requests
=> Article/Tutorial Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Development Discussion
-----------------------------
Crystal Space Projects
-----------------------------
=> Project Discussion
=> WIP Projects
=> Finished Projects
-----------------------------
Associate Projects
-----------------------------
=> CEL Discussion
=> Crystal Core Discussion
=> CrystalBlend Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Google Summer of Code
-----------------------------
Associate Projects
-----------------------------
=> Apricot (Open Game)
=> Ares Project
Loading...