Comments (7)
requires rewriting FloatWidget(s)
from fragm.
...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.
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.
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.
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.
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.
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)
- render time with ETA & progress per subframe
- Windows build of Fragmentarium 2.5.6 crashes at startup HOT 6
- Is there any homepage for FragM like there was for Fragmentarium HOT 2
- segfault on mouse click in dead window HOT 1
- Nothing showing HOT 3
- Attempting to build on google collab HOT 9
- frag/vert compatibility patches should handle `#extension` HOT 11
- cmake 3.20 is too new HOT 1
- Video encoding dialog bug
- Looping camera path
- Ping pong
- Easingcurve crash
- Easing curve loop off by 1
- Rewind animation
- Cannot find `rand` function HOT 4
- Undefined variable "time" when use #define USE_IQ_CLOUDS HOT 7
- The animation render doesn't rename the frames incrementally HOT 6
- glsl preprocessor directives not parsed
- Support exporting to shadertoy HOT 5
- Is "subframe" equivalent to "iFrame" in shadertoy? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fragm.