YOUR ACCOUNT

Login or Register to post new topics or replies
parrotdolphin
Posts: 9
Filters: 8
I want to be able get the inverse value of an IntSlider number and then be able to plug that into a rotation input. Is there a way to do this? It seems like there should be but I just don't see how.
  Details E-Mail
emme
Posts: 718
Filters: 8
You can enable the Use Remapping option in the IntSlider, and invert the output values in the remapper.

Alternatively you could use Invert, Tone Mapping, RGB math components etc.

There is no way, as far as I know, to output the actual integer HDR value directly, so you have to do the remapping manually based on the number of steps in the IntSlider.

Devs, maybe add an option to output the integer value directly smile;)
  Details E-Mail
parrotdolphin
Posts: 9
Filters: 8
Thanks Emme! I am still not able to make it work correctly, but maybe I don't understand the way the math works with colors. I just want basic math. Here's a picture of what I want to do. The user should be able to change the iterations and have the rotation stay in sync automatically. If iterations is x, then rotation will get set to 1/x. I tried remapping but that doesn't work for what I want. I tried Divide (under RGB Math) and it does something but not what I want.

  Details E-Mail
Rachel Duim
So Called Tortured Artist

Posts: 2498
Filters: 188
To do the 1/7 division you can use HDR values, which allow values outside of normal color range of 0 to 1. Using Remap on the IntSlider as follows: the range is 1 to 10 in my example, so the maximum map value is set to HDR value 10 by clicking the remap values to the left of the Divisor. Make sense?

Math meets art meets psychedelia.
  Details E-Mail
Rachel Duim
So Called Tortured Artist

Posts: 2498
Filters: 188
Code of example in FF10

one_seventh hdr.ffxml
Math meets art meets psychedelia.
  Details E-Mail
parrotdolphin
Posts: 9
Filters: 8
Thank you Rachel! That worked!
  Details E-Mail
emme
Posts: 718
Filters: 8
It's also possible to make this work dynamically with a setup like this. Just set the stairs threshold to 0 and make the gradient length really large like 100000 smile:)

  Details E-Mail
David Roberson
Artist
Posts: 404
Filters: 36
Quote
It's also possible to make this work dynamically with a setup like this. Just set the stairs threshold to 0 and make the gradient length really large like 100000 smile:)


I assume you would set that as x1, y1, x2, y2 = 0,0,1,0 (or 0,0,0,1)?
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,711 Registered Users
+18 new in 30 days!

153,531 Posts
+36 new in 30 days!

15,347 Topics
+72 new in year!

Create an Account

Online Users Last minute:

19 unregistered users.