RE: [Flightgear-devel] [PATCH] Simgear support for emissive animationfor instruments (ver 2)
Norman Vine said: Jim Wilson writes: As far as the reason the existing alpha-blend code doesn't work may be related to an update in 1.8.4 that was described in ChangeLog as smaller and cleaner scene graphs. That's just a WAG, but it seems that this function would be better accomplished through an API rather than writing directly back to scenegraph memory from SimGear anyway (I find it mildly irritating that you can even do that :-/). My guess is that you aren't following the rules :-) http://www.opengl.org/resources/tutorials/advanced/advanced97/notes/node111.html You might be right. From the above link, it says: If lighting is enabled, then the ambient and diffuse reflectance coefficients of the material should correspond to the translucency of the object. So does this mean that when using the plib API it is necessary to set alpha in both the ambient _and_ diffuse state colors? I think I tried that but... ..for some reason I was seeing some bogus numbers ( 1.0 colors) come up for ambient when dumping the ssgLeaf objects concerned. Maybe finding the source of that problem will fix things. Best, Jim ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
RE: [Flightgear-devel] [PATCH] Simgear support for emissive animationfor instruments (ver 2)
Jim Wilson writes: As far as the reason the existing alpha-blend code doesn't work may be related to an update in 1.8.4 that was described in ChangeLog as smaller and cleaner scene graphs. That's just a WAG, but it seems that this function would be better accomplished through an API rather than writing directly back to scenegraph memory from SimGear anyway (I find it mildly irritating that you can even do that :-/). My guess is that you aren't following the rules :-) http://www.opengl.org/resources/tutorials/advanced/advanced97/notes/node111.html Norman ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
RE: [Flightgear-devel] [PATCH] Simgear support for emissive animationfor instruments (ver 2)
Erik Hofman wrote: Jim Wilson wrote: not part of cvs logtext Note the diff file has been renamed from the earlier submission. This version works better with more complex models. /not part of cvs logtext This patch adds support to the model animation system for modifying emissive states on the fly so that it is possible to make lights appear to dimm. It's committed. Thanks. I have to figure out how you did this, the alpha-blend patch seemed to be broken at the moment, probably because of a change in plib :-/ And has been for some time, I've just realized, now I've returned to maintaining the Spitfire/Seafire. Thanks, you've just saved me hours of work trying to repair the un-repairable Regards Vivian ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
RE: [Flightgear-devel] [PATCH] Simgear support for emissive animationfor instruments (ver 2)
Fred wrote Erik Hofman wrote : Jim Wilson wrote: not part of cvs logtext Note the diff file has been renamed from the earlier submission. This version works better with more complex models. /not part of cvs logtext This patch adds support to the model animation system for modifying emissive states on the fly so that it is possible to make lights appear to dimm. It's committed. Thanks. I have to figure out how you did this, the alpha-blend patch seemed to be broken at the moment, probably because of a change in plib :-/ Or because of display lists. We did a trick a the time. Something to disallow the use of display lists for some animations If my memory serves correctly, it went wrong at about that time. It would be good to get it back. Regards, Vivian ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] [PATCH] Simgear support for emissive animationfor instruments (ver 2)
Vivian Meazza wrote : Fred wrote Erik Hofman wrote : Jim Wilson wrote: not part of cvs logtext Note the diff file has been renamed from the earlier submission. This version works better with more complex models. /not part of cvs logtext This patch adds support to the model animation system for modifying emissive states on the fly so that it is possible to make lights appear to dimm. It's committed. Thanks. I have to figure out how you did this, the alpha-blend patch seemed to be broken at the moment, probably because of a change in plib :-/ Or because of display lists. We did a trick a the time. Something to disallow the use of display lists for some animations If my memory serves correctly, it went wrong at about that time. It would be good to get it back. AFAICS, it is still there with the ufo. Could you check by putting fgfs in chase view and do some actions on the throttle. Where should I look to see something wrong ? -Fred ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] [PATCH] Simgear support for emissive animationfor instruments (ver 2)
Frederic Bouvier wrote: AFAICS, it is still there with the ufo. Could you check by putting fgfs in chase view and do some actions on the throttle. Yes, but that one is not textured. So maybe we've tracked it down to textured objects only. Erik ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] [PATCH] Simgear support for emissive animationfor instruments (ver 2)
Vivian Meazza a écrit : Fred wrote Erik Hofman wrote : Jim Wilson wrote: not part of cvs logtext Note the diff file has been renamed from the earlier submission. This version works better with more complex models. /not part of cvs logtext This patch adds support to the model animation system for modifying emissive states on the fly so that it is possible to make lights appear to dimm. It's committed. Thanks. I have to figure out how you did this, the alpha-blend patch seemed to be broken at the moment, probably because of a change in plib :-/ Or because of display lists. We did a trick a the time. Something to disallow the use of display lists for some animations If my memory serves correctly, it went wrong at about that time. It would be good to get it back. The reflector has the same appearance with or without the use of display lists. Could it be a property name problem instead ? -Fred ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d