bradley/Blotter

'No loop' parameter

Serse opened this issue · 2 comments

Serse commented

Is there a parameter to avoid the loop in slidingDoorMaterial? For stopping the execution after the first complete animation.
Thanks

No there is not. In terms of using SlidingDoorMaterial, your only option is to work out the timing in your JavaScript so that you call pause on the renderScope at the right moment during animation.

The Blotter materials that have so far been packaged with Blotter are what they are, and should serve as configurable, but eventually limited, examples of what can be done with Blotter. That is, you have another option here, which is to dig into the source for SlidingDoorMaterial, and to create a new custom build with modifications made to add any uniform you desire.

I know that's asking a lot, but again, the existing Materials are as they are.

Serse commented

Thank you for answering. I appreciate very much your library, I will follow your hint about a custom build.
Keep up the grat job