Hello Aashish,

Aashish Chaudhary wrote:
> 1. Original OSGSHLChunk.cpp at rev 1943
> 2. Your old path
> 3. Youe new patch.
> 
> I get the same results with 1 & 3. 2 Was broke as I mentioned in the 
> email. I believe in that case that the problem was somewhere else but it 
> was related to OSG update shader variables.

the .osb you sent has different (SHL) chunks on each material, so for 1) 
when calling SHLChunk::changeFrom the if(this == old) return; does not 
early out and the variables are updated, because it does a full shader 
program change.
2) was broken, because it only compiled shader code in the 
SHLChunk::activate path, but not when activating a shader via 
SHLChunk::changeFrom.
I'm happy to hear 3) works, but the interesting case would be to see if 
it also gives the correct result when some materials have the same 
SHLChunk - the case were it was previously broken ;)

        Cheers,
                Carsten


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to