### (Question) feature request ideas

• 33 Replies
• 931 Views

0 Members and 1 Guest are viewing this topic.

• 3f
• Posts: 1225

#### Re: feature request ideas

« Reply #30 on: February 08, 2019, 01:36:22 AM »
11/12

Menu item Edit->Insert Command->Preprocessor Commands->#define IterationsBetweenRedraws 10 EDIT: this should be named SubframesBetweenRedraws

there is also a "DisableRedraw" flag that could be set in the same way (in frag script) as the above IterationsBetweenRedraws, just have to add it to the preprocessor commands and add a couple of lines in the parser to set this flag in the engine.

18 add normalized mouse screen pos vector as XY offset in mouseWheelEvent function sounds good, should also be for 3D zoom too.

19 Have a look at the docs for QEasingCurve Class, there is a "Custom Type" that can be applied as user defined curve, it's the only one I didn't implement because it was just a hack that I didn't expect to work very well and I didn't want to put the effort into writing a besier curve editor, but... not too hard to do now that it has been proved useful

20 with 19 in place, there is a QVector<QPointF>toCubicSpline() function in QEasingCurve Class that returns the entire data set as opposed to emitting one point per tick.

...and not really big on java, don't really want to write a parser for FQS, it will currently jumpto and highlight the first error line, the reason I added it was more for automated testing and to have the ability to perform some tasks that might be hard to implement in the current GUI. Maybe will try flexx on that, it's been a while since I've played with that though.
« Last Edit: February 08, 2019, 03:12:56 AM by 3DickUlus »
Resistance is fertile... you will be illuminated!

https://en.wikibooks.org/wiki/Fractals/fragmentarium

• 3f
• Posts: 1225

#### Re: feature request ideas

« Reply #31 on: February 09, 2019, 12:05:09 AM »
RE:18 It's a good idea, I managed a working version but only for 0-1 greater than 1 went way off, if you want to look it's the last routine in CameraControl.cpp ...
Code: [Select]
        bool Camera2D::wheelEvent(QWheelEvent* e) {            double steps = e->delta()/120.0;            double factor = 1.15f;            if (!zoom) return false;            if (steps>0.0) {                zoom->setValue(zoom->getValue()*factor);            } else {                zoom->setValue(zoom->getValue()/factor);            }            return true;        }where e->delta() is the wheel scroll value

I think there might be a problem though because not all fractals are the same and trying to account for variations in fragment calculations and coordinate interpretation on the C++GUI side of things might be difficult if not impossible. From my standpoint as a user it makes no difference, I center the view on an intersting area and start zooming and making adjustments on the way if needed.

edit: width and height are global int values for the current GL render area screen size, the event object e contains all info about the mouse, x(), y(), screen location, buttons, up/down etc.

• 3f
• Posts: 1154

#### Re: feature request ideas

« Reply #32 on: February 09, 2019, 02:14:09 PM »
18

https://code.mathr.co.uk/et/blob/6e7517ec34b7693b10f8553f49a8c68b19f20dab:/gtk/Main.hs#l521 is a Haskell version that includes skew matrix.
https://code.mathr.co.uk/mightymandel/blob/8f45039d55408902d0d0c2723ed27fce65e10f14:/src/interact.c#l63 has no skew but MPFR C calls.
I could translate the second version to regular double arithmetic later.

• 3f
• Posts: 1154

#### Re: feature request ideas

« Reply #33 on: February 09, 2019, 02:33:15 PM »
Second version translated, input point X,Y in image coordinates (not screen coordinates):

g = pow(0.5, factor)
Zoom /= g
X *= 1-g
Y *= 1-g
Center *= g
Center += (X,Y)

### Similar Topics

###### "Time Span"

Started by cricke49 on Fractal Image Gallery

0 Replies
256 Views
August 02, 2018, 07:05:21 AM
by cricke49
###### Mandelbulber - VFX Feature Ideas

Started by stilikon on Mandelbulber

17 Replies
745 Views
February 07, 2019, 08:45:30 PM
by stilikon
###### Mandelbulber feature request

Started by meshcarver on Mandelbulber

1 Replies
160 Views
May 11, 2019, 08:24:33 PM
by buddhi
###### Forum Feature Request - Threaded messages

Started by Sabine62 on Discuss Fractalforums

11 Replies
536 Views
September 10, 2017, 08:13:57 PM
by Sabine62
###### Feature Request: OpenCL Streoscopic Mode

Started by stilikon on Mandelbulber

4 Replies
367 Views
August 04, 2018, 05:01:10 PM
by stilikon