Hello Christoph, On 04/27/2012 07:09 AM, "Christoph Fünfzig" wrote: > Well, I included ShaderProgramChunk and ShaderProgramVariableChunk: > > 1>c:\opensg2\opensg\source\system\state\shl\OSGShaderParameterChunkBase.h(105) > : error C2146: erreur de syntaxe : absence de ';' avant l'identificateur > 'MFParametersType' > 1>c:\opensg2\opensg\source\system\state\shl\OSGShaderParameterChunkBase.h(105) > : error C4430: spécificateur de type manquant - int est pris en compte par > défaut. Remarque : C++ ne prend pas en charge int par défaut > 1>c:\opensg2\opensg\source\system\state\shl\OSGShaderParameterChunkBase.h(105) > : error C4430: spécificateur de type manquant - int est pris en compte par > défaut. Remarque : C++ ne prend pas en charge int par défaut > > It seems to miss a type "MFUnrecChildShaderParameterPtr" (Windows 7, 64bit).
hmm, have you set any cmake variables to non-default values (specifically, is OSG_ENABLE_NEW_SHADER set to ON)? >>> Does it have benefits to do so? >> >> Your application has to keep track of only one place to change uniform >> values for groups of objects. > > Yes, definitely. But does it also have benefits for state sorting? > Is it on whole states or on state chunks level? the state sorter builds clusters of similar state and groups objects according to that. The relevant chunks that are used are TextureObjChunk, ShaderExecutableChunk, ShaderExecutableVarChunk (if OSG_ENABLE_NEW_SHADER == ON) or TextureObjChunk, MaterialChunk, SimpleSHLChunk (otherwise). The ShaderExecutable{,Var}Chunks are constructed internally as unions of the active ShaderProgramChunks and ShaderProgramVariableChunks respectively. This all means that having some (as opposed to all) shader variables shared will not sort the objects into the same state cluster. However, I think we will only update the shader variables that are belong to ShaderProgramVariableChunks that are different (not touching those that belong to the shared chunks) [1]. Cheers, Carsten [1] Please take all this with a grain of salt, I'm mostly writing down what I infer from reading the code. Gerrit should know, I've CC'd him again on this, hoping he can make a definite statement ;) ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users