alexei.garbuzenko Posted January 4, 2012 Share Posted January 4, 2012 There are three shader issues on Mac: 1. No omni lighting. Log contains following error GLShader::loadFragment(): error in "core/shaders/default/meshes/fragment_base_light_omni.shader" file defines: ATI,ATI_R800,QUALITY_LOW,QUALITY_MEDIUM,QUALITY_HIGH,MULTISAMPLE_0,USE_INSTANCING,USE_GEOMETRY_SHADER,USE_TEXTURE_3D,USE_TEXTURE_ARRAY,USE_REFLECTION,USE_DEFERRED,HAS_DEFERRED_COLOR,HAS_DEFERRED_NORMAL,USE_SRGB,USE_SPECULAR,USE_ENVIRONMENT,USE_NORMALIZATION,USE_DIRECTIONAL_LIGHTMAPS,USE_SCATTERING_FALLOFF,OPENGL,USE_PSEUDO_INSTANCING,USE_PSEUDO_TRANSFORM,USE_ARB_GPU_SHADER_4,HAS_ARB_DRAW_INSTANCED,BASE_LIGHT_OMNI,OMNI,SHADOW,PHONG_RIM,OVERLAY_1 ERROR: 0:614: 'sampler2DArrayShadow' : syntax error syntax error 2. DOF shader error: GLShader::loadVertex(): error in "core/shaders/default/render/vertex_dof_lens.shader" file defines: ATI,ATI_R800,QUALITY_LOW,QUALITY_MEDIUM,QUALITY_HIGH,MULTISAMPLE_0,USE_INSTANCING,USE_GEOMETRY_SHADER,USE_TEXTURE_3D,USE_TEXTURE_ARRAY,USE_ALPHA_FADE,USE_REFLECTION,USE_DEFERRED,HAS_DEFERRED_COLOR,HAS_DEFERRED_NORMAL,USE_SPECULAR,USE_PHONG_RIM,USE_ENVIRONMENT,USE_NORMALIZATION,USE_DIRECTIONAL_LIGHTMAPS,USE_SCATTERING_FALLOFF,OPENGL,USE_PSEUDO_INSTANCING,USE_PSEUDO_TRANSFORM,USE_ARB_GPU_SHADER_4,HAS_ARB_DRAW_INSTANCED ERROR: 0:221: Use of undeclared identifier 'gl_VertexID' ERROR: 0:222: Use of undeclared identifier 'gl_VertexID' ERROR: 0:224: Use of undeclared identifier 'x' ERROR: 0:225: Use of undeclared identifier 'y' ERROR: 0:229: Use of undeclared identifier 'x' ERROR: 0:229: Use of undeclared identifier 'y' ERROR: 0:230: Use of undeclared identifier 'texcoord' ERROR: 0:231: Use of undeclared identifier 'weight' ERROR: 0:231: Use of undeclared identifier 'texcoord' ERROR: 0:232: Use of undeclared identifier 'weight' ERROR: 0:232: Use of undeclared identifier 'texcoord' ERROR: 0:233: Use of undeclared identifier 'weight' ERROR: 0:233: Use of undeclared identifier 'texcoord' ERROR: 0:235: Use of undeclared identifier 'weight' GLShader::loadGeometry(): error in "core/shaders/default/render/geometry_dof_lens.shader" file defines: ATI,ATI_R800,QUALITY_LOW,QUALITY_MEDIUM,QUALITY_HIGH,MULTISAMPLE_0,USE_INSTANCING,USE_GEOMETRY_SHADER,USE_TEXTURE_3D,USE_TEXTURE_ARRAY,USE_ALPHA_FADE,USE_REFLECTION,USE_DEFERRED,HAS_DEFERRED_COLOR,HAS_DEFERRED_NORMAL,USE_SPECULAR,USE_PHONG_RIM,USE_ENVIRONMENT,USE_NORMALIZATION,USE_DIRECTIONAL_LIGHTMAPS,USE_SCATTERING_FALLOFF,OPENGL,USE_PSEUDO_INSTANCING,USE_PSEUDO_TRANSFORM,USE_ARB_GPU_SHADER_4,HAS_ARB_DRAW_INSTANCED ERROR: 0:1: '' : version '150' is not supported WARNING: 0:2: extension 'GL_ARB_geometry_shader4' is not supported ERROR: 0:179: 'layout' : syntax error syntax error 3. Wireframe shader error: GLShader::loadGeometry(): error in "core/shaders/default/common/geometry_base_wireframe.shader" file defines: ATI,ATI_R800,QUALITY_LOW,QUALITY_MEDIUM,QUALITY_HIGH,MULTISAMPLE_0,USE_INSTANCING,USE_GEOMETRY_SHADER,USE_TEXTURE_3D,USE_TEXTURE_ARRAY,USE_ALPHA_FADE,USE_REFLECTION,USE_DEFERRED,HAS_DEFERRED_COLOR,HAS_DEFERRED_NORMAL,USE_SPECULAR,USE_PHONG_RIM,USE_ENVIRONMENT,USE_NORMALIZATION,USE_DIRECTIONAL_LIGHTMAPS,USE_SCATTERING_FALLOFF,OPENGL,USE_PSEUDO_INSTANCING,USE_PSEUDO_TRANSFORM,USE_ARB_GPU_SHADER_4,HAS_ARB_DRAW_INSTANCED,BASE_WIREFRAME,ANIMATION ERROR: 0:1: '' : version '150' is not supported WARNING: 0:2: extension 'GL_ARB_geometry_shader4' is not supported ERROR: 0:179: 'layout' : syntax error syntax error OS is Lion 10.7.2. Video card: ATI 5750, 1GB (engine see only 256Mb?), resolution 2560x1440 (this one is also absent in in-game settings). P.S. I also want to note that OS X Eval looks too much 'homebrew' - why do you use tar.bz2 for deploying application instead of DMG image? There is no runnable (744 or whatever) files inside the package, even browser_x32.sh file have invalid attribute and open by XCode on double click. Terminal window with verbose log forbids using on excibitions, public places or as a screensaver.. Link to comment
frustum Posted January 4, 2012 Share Posted January 4, 2012 Set gl_render_use_arb_texture_array console variable to zero. After that the error disappears. Bokeh DOF (render_dof 2) isn't working on MacOS. Wireframe shader uses geometry shader (set gl_render_use_arb_geometry_shader4 to zero). We will update default config file and permission problems in the next SDK update. I will also fix detection of video memory amount function. 2560x1440 is extreme video resolution for 5770 video card. Engine upscales video resolution to the system one when fullscreen option is enabled. Link to comment
alexei.garbuzenko Posted January 4, 2012 Author Share Posted January 4, 2012 One more bug: ⌘-V (paste command) does not work in console and text edit fields. 2560x1440 is extreme video resolution for 5770 video card That is native resolution of iMac 27" MC511 with Radeon 5750 (actually it's GPU and memory speed corresponds to 5850HD). On this hardware Topics demo gives 25-30 FPS, Heaven - 15-25 FPS with AO and 20-30 FPS without it. In Windows and DX9 mode there is +5 FPS performance gain. Skyrim also have acceptable FPS (20-40) on this hardware, so performance is almost equal to using something like GF 9600 on 1440x960 screens. Link to comment
frustum Posted January 4, 2012 Share Posted January 4, 2012 Clipboard and GPU identification is ready. Link to comment
alexei.garbuzenko Posted January 15, 2012 Author Share Posted January 15, 2012 Some more thoughts: - some actions seems to use non-Mac style shortcuts (i.e. Cmd-Z instead of ⌘-Z); - eval kit contains some .exe files at utils/Upgrade; - .sh files for demos refer to ../bin/main_x86 executable, while real one is called ../bin/main_x86.macos; - there is no way to rnu demos in x64 mode except for editing .sh files; - sometimes there is non-descriptive error in log: "OpenGL error: invalid enum". I have no clue what it means and what causes it; Link to comment
manguste Posted February 9, 2012 Share Posted February 9, 2012 Some more thoughts: - some actions seems to use non-Mac style shortcuts (i.e. Cmd-Z instead of ⌘-Z); Yep, we are aware of that, it was done pretty much on purpose in order to be consistent. - eval kit contains some .exe files at utils/Upgrade; - .sh files for demos refer to ../bin/main_x86 executable, while real one is called ../bin/main_x86.macos; - there is no way to rnu demos in x64 mode except for editing .sh files; Thank you, we'll check it. - sometimes there is non-descriptive error in log: "OpenGL error: invalid enum". I have no clue what it means and what causes it; It means that some of the arguments passed to OpenGL are invalid. Link to comment
alexei.garbuzenko Posted March 2, 2012 Author Share Posted March 2, 2012 lots of shader errors, broken .sh files in /demos, .exe files in utils/Upgrade, windows-only content in /plugins - all that still applies to 2012-02-26 mac os eval. I'd also suggest to spend 15 minutes to make .app file to run the demos instead of browser.sh stuff. I.e you can use free Platipus software for it: http://sveinbjorn.org/platypus Link to comment
binstream Posted March 12, 2012 Share Posted March 12, 2012 Thank you for your feedback, we'll improve Mac SDK with the next update. Link to comment
alexei.garbuzenko Posted April 13, 2012 Author Share Posted April 13, 2012 Same problems with eval 2012-04-12. Lots of console erorrs by default, not valid .sh files in demos folder, etc. Only fixed thing is removed .exe files/windows plugins.plugins folder. Link to comment
alexei.garbuzenko Posted April 13, 2012 Author Share Posted April 13, 2012 One more addition: update.py knows nothing of macos and also looks for 'meshupgrade' file instead of 'meshupdgrade_x86.macos' Link to comment
Recommended Posts