[Flightgear-devel] 'Black model problem'
So far we had: start with skydome shader on and landmass set to 4: - models appear black and are not shaded properly Click on landmass slider without changing the value: - modelss jump to proper shading I've made one more observation: Do the above at noon. Then change to dawn - models remain stuck with bright daylight shading It seems to be a problem in passing parameters to the shader, apparently at least some of the parameters aren't updated by frame but only when specifically triggered. As to the underlying cause, I remain in the dark though... * Thorsten -- 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/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] 'Black model problem'
On Wednesday 02 May 2012 09:07:57 Renk Thorsten wrote: So far we had: start with skydome shader on and landmass set to 4: - models appear black and are not shaded properly Click on landmass slider without changing the value: - modelss jump to proper shading I've made one more observation: Do the above at noon. Then change to dawn - models remain stuck with bright daylight shading It seems to be a problem in passing parameters to the shader, apparently at least some of the parameters aren't updated by frame but only when specifically triggered. As to the underlying cause, I remain in the dark though... * Thorsten Using tied properties as uniforms? http://code.google.com/p/flightgear-bugs/issues/detail?id=445-- 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/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] 'Black model problem'
Using tied properties as uniforms? I don't think so, because the same parameters do get updated per frame just fine when shading the terrain. * Thorsten -- 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/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] 'Black model problem'
On Wednesday 02 May 2012 12:13:23 Emilian Huminiuc wrote: Using tied properties as uniforms? http://code.google.com/p/flightgear-bugs/issues/detail?id=445 This is easily solvable using a property-filter (check Environment/metarinterpolator.xml), that writes the properties to some other place, in which case they get untied and are passed properly to the shader. -- 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/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] 'Black model problem'
On Wednesday 02 May 2012 09:18:15 Renk Thorsten wrote: Using tied properties as uniforms? I don't think so, because the same parameters do get updated per frame just fine when shading the terrain. * Thorsten Hmm, that would be really strange, and a legitimate bug then. Worth a try with the property filter to see if that fixes them. Emilian-- 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/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] 'Black model problem'
Hmm, that would be really strange, and a legitimate bug then. Worth a try with the property filter to see if that fixes them. That's actually how terminator-relative-position-m (the sun position for shader purposes) is done - see Environment/local-weather-rules.xml * Thorsten -- 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/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] 'Black model problem'
Sorry, was looking at the wrong shader. You don't assign the terminator to an uniform in the technique n=5 in the model-default.eff. Adding the correct entry fixes it here: uniform nameterminator/name typefloat/type valueuseterminator/use/value /uniform -- 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/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] 'Black model problem'
Sorry, was looking at the wrong shader. You don't assign the terminator to an uniform in the technique n=5 in the model-default.eff. I'll be buggered... you're right. How embarrassing... * Thorsten -- 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/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] 'Black model problem'
What I think happens, is that, without the detail option on, the same shaders are used for terrain and models (terrain-haze), thus they get the terminator assigned from the teerain-default.eff. Once you enable the detailed shading for the terrain, that uniform is no longer assigned, since in terrain-haze there's another technique active, assigning the property to the terminator uniform in the terrain-haze-detailed shader, thus the terminator value seen by the terrain-haze shader active on models remains at the last value it had. This would explain why the lighting gets fixed momentarily when you move the landmass slider back and forth. -- 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/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] 'Black model problem'
On Wednesday 02 May 2012 10:08:07 Renk Thorsten wrote: Sorry, was looking at the wrong shader. You don't assign the terminator to an uniform in the technique n=5 in the model-default.eff. I'll be buggered... you're right. How embarrassing... * Thorsten I'll push a hot-fix then. Emilian-- 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/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel