Re: [warzone2100-dev] [Warzone2100-commits] SF.net SVN: warzone2100:[11676] trunk/data/base/shaders/tcmask.vert
On Fri, Sep 17, 2010 at 22:38:54 -0400, buginator wrote: On 9/17/10, muggen...@users.sourceforge.net wrote: Revision: 11676 vertex shader: don't use deprecated ftransform() error |10:33:24: [loadShaders] Vertex shader compilation has failed [shaders/tcmask.vert] error |10:33:24: [printShaderInfoLog] Shader info log: 0(7) : error C: syntax error, unexpected ';' at token ; 0(7) : error C0501: type name expected at token ; 0(7) : warning C7022: unrecognized profile specifier gl_Position 0(7) : warning C7022: unrecognized profile specifier invariant info|10:33:24: [screenInitialise] Can't use shaders, switching back to fixed pipeline. This is with latest Nvidia (windows) drivers. What happens when you remove the invariant gl_Position; specification? Also do you know which version of GLSL your drivers are using? I'm guessing an #if __VERSION__, may be required. (ftransform() is deprecated in GLSL 1.30 and OpenGL ES's GLSL version simply doesn't implement it). -- Giel signature.asc Description: Digital signature ___ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev
Re: [warzone2100-dev] [Warzone2100-commits] SF.net SVN: warzone2100:[11676] trunk/data/base/shaders/tcmask.vert
On 10-09-18 11:43 AM, Giel van Schijndel wrote: Another question; which models actually use this shader? See: http://developer.wz2100.net/ticket/1757 http://sourceforge.net/projects/wzgraphicmods/ ___ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev
Re: [warzone2100-dev] [Warzone2100-commits] SF.net SVN: warzone2100:[11676] trunk/data/base/shaders/tcmask.vert
On Sat, Sep 18, 2010 at 11:44:28AM -0400, Safety0ff wrote: On 10-09-18 11:32 AM, Giel van Schijndel wrote: What happens when you remove the invariant gl_Position; specification? Also do you know which version of GLSL your drivers are using? I'm guessing an #if __VERSION__, may be required. (ftransform() is deprecated in GLSL 1.30 and OpenGL ES's GLSL version simply doesn't implement it). I had the same issue, adding #version 120 in the vertex shader seems to have fixed it for me, using 120 results in: 0(15) : warning C7533: global variable gl_Color is deprecated after version 120 0(18) : warning C7533: global variable gl_TexCoord is deprecated after version 120 0(18) : warning C7533: global variable gl_TextureMatrix is deprecated after version 120 0(18) : warning C7533: global variable gl_MultiTexCoord0 is deprecated after version 120 0(21) : warning C7533: global variable gl_ModelViewProjectionMatrix is deprecated after version 120 0(21) : warning C7533: global variable gl_Vertex is deprecated after version 120 Aye, those variables are part of the fixed function pipeline. GLSL versions after 120 (130, etc.) are intended for OpenGL ES 2.0 and OpenGL 3.0 which rip out the fixed function pipeline. From these versions and upwards global data (the matrices) should be passed as uniforms, while per-vertex data (including the vertex coordinate vector itself, gl_Vertex) should be passed as vertex-attribute data. -- Giel signature.asc Description: Digital signature ___ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev
Re: [warzone2100-dev] [Warzone2100-commits] SF.net SVN: warzone2100:[11676] trunk/data/base/shaders/tcmask.vert
On 9/17/10, muggen...@users.sourceforge.net wrote: Revision: 11676 http://warzone2100.svn.sourceforge.net/warzone2100/?rev=11676view=rev Author: muggenhor Date: 2010-09-17 09:35:29 + (Fri, 17 Sep 2010) Log Message: --- vertex shader: don't use deprecated ftransform() Replace the usage of the depecrated ftransform() function with an equivalent expression along with the invariance guarantee. Let the shader compiler deal with optimising this expression. Modified Paths: -- trunk/data/base/shaders/tcmask.vert error |10:33:24: [loadShaders] Vertex shader compilation has failed [shaders/tcmask.vert] error |10:33:24: [printShaderInfoLog] Shader info log: 0(7) : error C: syntax error, unexpected ';' at token ; 0(7) : error C0501: type name expected at token ; 0(7) : warning C7022: unrecognized profile specifier gl_Position 0(7) : warning C7022: unrecognized profile specifier invariant info|10:33:24: [screenInitialise] Can't use shaders, switching back to fixed pipeline. This is with latest Nvidia (windows) drivers. ___ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev