Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] - loops on temporal Output x #18

Open
NelloF opened this issue Mar 22, 2024 · 4 comments
Open

[feature request] - loops on temporal Output x #18

NelloF opened this issue Mar 22, 2024 · 4 comments

Comments

@NelloF
Copy link

NelloF commented Mar 22, 2024

about the light effects:
temporal Output x mapping could have a "loop x number of times" option during the total duration of the effect.
So the color change could repeat with different speed depending on the number of loops value
(1 = no loops)

image

@NelloF NelloF changed the title [FEATURE REQUEST] - loops on temporal mapping [FEATURE REQUEST] - loops on temporal Output x Mar 22, 2024
@NelloF NelloF changed the title [FEATURE REQUEST] - loops on temporal Output x [feature request] - loops on temporal Output x Mar 22, 2024
@ntamas
Copy link
Member

ntamas commented Mar 24, 2024

This should be generalized a bit; the current proposal is specific to the temporal mapping, but similar concepts could be applied to other mappings as well. The idea is that the "Output X" and the "Output Y" parameters are simply values in the [0, 1] range that are then used to pick a color, either by looking it up based on "Output X" from the color ramp, or by looking it up based on both the "Output X" and "Output Y" values from the associated image. I guess what you really want is a scalar multiplier to "Output X" and "Output Y". So, for instance, "Output X" = "Temporal" would make the X value go from 0 to 1 according to the passing of time during the light effect. However, if you multiply this by 10 with a newly introduced "Scale X" parameter, and then take the result modulo 1, you effectively speeded up the passage of time by 10x, looping over the color ramp 10 times during the duration of the light effect. The advantage is that the same concept could be used to alter the result of any output function, not only "Temporal".

How does that sound?

@NelloF
Copy link
Author

NelloF commented Mar 24, 2024

sounds great!
this way you could also scale the xyz mapped gradients and repeat them multiple times over the formation space

@ntamas
Copy link
Member

ntamas commented Mar 25, 2024

I was thinking about this a bit during the night and I can't get rid of the feeling that instead of implementing a linear mapping ourselves, we should somehow jsut make it possible for the user to associate an F-curve to the light effect and then the F-curve will map the raw output to a new value. The new value will then be taken modulo 1 (or clamped to the [0;1] interval) to determine the position to evaluate on the color ramp. This would make the feature even more powerful.

I need to figure out whether it's possible to create F-curves "on their own" so that they are not attached to the animation data of a mesh.

@NelloF
Copy link
Author

NelloF commented Mar 25, 2024

with an f-curve would be even more useful, allowing acceleration ad deceleration in the speed for example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants