Transitions--changes to fade screen

Bug #1381592 reported by alan eborn
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

 * The "fade"-screen is now by default simply a semi-transparent DirectFrame, instead of a model loaded automatically.
        - The Panda-provided model can still be used by loading it manually.

 * Changed uses of "setColor" and "lerpColorInterval" to "setColorScale" and "lerpColorScaleInterval", respectively.
        - This means that the changes that Transitions makes only tints fade-models, rather than recolouring them as was previously the case. For one, I found that the use of "setColor" was interfering with the "default model" when that model was loaded manually.

 * A side-effect is that the Panda-provided fade model is now more transparent that it previously was: the model file specifies a degree of transparency (fifty percent, I think it was), which was, I believe, being overwritten by the calls to "setColor". Using "setColorScale", both the model's native transparency and the transparency being specified by the method that shows the fade-screen are being multplied together. However, this is what I would expect to have happen, so I'm inclined to leave it in.

 * In "setFadeModel", added "self.fade.destroy()" before "del self.fade", as I found that it didn't seem to be properly cleaned up without the call.

Please see the attachment for the patch.

Revision history for this message
alan eborn (a-eborn) wrote :
Revision history for this message
rdb (rdb) wrote :

I don't really understand why it's necessary to change the semantics when there doesn't appear to be a good reason to. If the aim of this change is to replace the fade model with a frame, then it seems just unnecessary to use setColorScale.

I checked in the other changes:

Thank you! It feels good not to have unnecessary dependencies on loaded models.

Changed in panda3d:
assignee: nobody → rdb (rdb)
milestone: none → 1.9.0
status: New → Fix Committed
rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers