Giter Site home page Giter Site logo

Comments (7)

3Dickulus avatar 3Dickulus commented on July 28, 2024

requires rewriting FloatWidget(s)

from fragm.

3Dickulus avatar 3Dickulus commented on July 28, 2024

...and adding slider type linear, default, and logarithmic, optional, to the parser, this will probably affect easing curves when applied to a slider.

from fragm.

3Dickulus avatar 3Dickulus commented on July 28, 2024

re:useless slider
with such a large number the slider step multiplier needs to be adjusted, right click on the Zoom slider and enter 1000 or 10000, that will make the arrow keys and page-up/down keys working.
The step value is automagicaly calculated for all other sliders but gets set to 1 for Zoom slider in 2D thus rendering it useless... investigating...

from fragm.

claudeha avatar claudeha commented on July 28, 2024

step multiplier could be relative to current value, eg 1% for fine adjustment, 10% for slightly coarser, etc.

implemented by *= 1.01 and /= 1.01 for up and down

from fragm.

3Dickulus avatar 3Dickulus commented on July 28, 2024

step multiplier is controled by Shift+wheel but doesn't work in the double test frags, only in standard float frags. not sure why? the code mechanism should not be affected by float/double type frags as it's all in the C++ code not GLSL, hmmm, something else to investigate... fixed?

I have a beta logarithmic slider version, enabled via log_ prefix on slider name, but only works halfway, by the time the slider is dragged to just over half the spinner hits max.
just pushed,
using...
#define USE_DOUBLE
#include "MathUtils.frag"
#include "Complex.frag"
#include "Progressive2D-4.frag"

from fragm.

3Dickulus avatar 3Dickulus commented on July 28, 2024

look at ThirdParty/qdoublerangeslider.cpp there is some settings and calculations for logarithmic range sliders but I think it may have been left in an unfinished state, I don't recall exactly where I found that code, an example somewhere? maybe can subclass QSlider and add the log bits?

from fragm.

claudeha avatar claudeha commented on July 28, 2024

Working on it... approach is to add a logarithmic slider bool flag to ComboSlider, and plumb it through from the parser for float vec2 vec3 vec4 slider. Default will remain Linear, syntax will be like:

uniform float Zoom; slider[1e-6,1,1e16] Logarithmic NotLockable

Seems cleaner than having to modify uniform names.

from fragm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.