Logo by reallybigname - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Visit the official fractalforums.com Youtube Channel
 
*
Welcome, Guest. Please login or register. October 02, 2018, 11:55:49 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: 1 ... 3 4 [5] 6 7 ... 13   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: FRGMENTARIUM 3DICKULUS - Catmull-Rom spline paths ! camera/parameter keyframes !  (Read 15436 times)
Description: adding spline paths for smooth transitions between key frames
0 Members and 1 Guest are viewing this topic.
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #60 on: August 31, 2013, 03:23:00 AM »

Vinz asked "how you animated the parameters in tut 32"

well...

The comments like this are the settings for the actions

/// Cycles:CosineCurve:44:1:24:1:240:0.3:1:1.7
/// Power:SineCurve:43:1:6:20:220:0.3:1:1.7
/// RotAngle:OutInBack:36:0:360:40:200:0.3:1:1.7

"///" = parser flag so we can find and recognize them

the items on each line are used as follows...

[Var Name]:[Ease Name]:[Ease Type]:[start frame]:[end frame]:[begin parm value]:[end parm value]:[period]:[amplitude]:[overshoot]

yes yes a lot of silly things to remember but fortunately there's a nice little GUI for all that smiley

1> load tutorial 32
2> Select the "Mandelbulb" tab
3> Select the "Power" slider
4> Push "F7" key (or menu item "Edit->Add Easing Curve")
5> Change some settings cheesy
     (a little math to figure out frame start finish numbers, I'll fix that to a start/fin slider or something)
6> hit OK that's it, voila!

Frames before start frame will use start value until start frame is reached.
Frames after finish frame will use finish value until end of animation is reached.
These become active when the animation is playing.

When you do this on a var that already has a curve you will be prompted "Apply" "Discard" "Cancel"

"Apply" will change these settings for this var (liked it so set it)
"Discard" will delete the settings for this var (clean up so no animating)
"Cancel" does nothing

This only saves internally the changes!!! if you like the result then...

1> you need to save params file or
2> add a new preset with a new name and save the GLSL script or
3> render a highres or anim to create "<name>png Files"
     this  folder will have all of your var morph settings in a single default preset but no campath keyframes
     as they can be cut and pasted if needed

camera path KeyFrame presets are only saved to a file when you save the GLSL script you create  them in.
param morph settings should all be in one named (not keyframe) preset.

Its not terribly complicated :O and once you play with it for a while I'm sure you will figure it out have fun cheesy

Disclaimer: Most of the code I've added to Fragmentarium was just hacking proof of concept, I know it needs a lot of adjusting and tweaking but that will come with input from users and hopefully contributions from other coders.
« Last Edit: September 01, 2013, 12:00:18 AM by 3dickulus, Reason: mo in fo » Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #61 on: August 31, 2013, 11:54:10 PM »

How to use the auto focus...

add this code to your GLSL script...
right before the raytracer #include like...
Code:
#group Raytracer
// Sets focal plane to Target location
uniform bool AutoFocus; checkbox[false]

#include "DE-Raytracer.frag"

Now in the Raytracer tab you can enable/disable focal plane target tracking, the focal plane maximum distance is 5,
if you need more than that...
Open the 3D.frag file and at around line 94 edit the focal plane widget maximum...

uniform float FocalPlane; slider[0,1,5]

to what ever you  need like...

uniform float FocalPlane; slider[0,1,50]

keep in mind that the target floats around at some distance from the camera, dynamically adjusted (sometimes a lot) as you navigate,
it is generally beyond what you are looking at and will need to be adjusted by hand in the keyframe presets.

TODO: add target locking mechanism so it stays where you put it or add click/drag editing for spline control points.
Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #62 on: September 02, 2013, 07:27:47 AM »

I found a nifty Qt (nokia code) range slider widget that I would like to use for setting frame-in and frame-out and it works great but... there's always a but...
it compiles and works perfectly on linux under Qt 4.8 but chokes and won't compile on windows under Qt 5.1, the problem is that in 5.1 QIcon and QLayout now report being virtual functions pure in this context and thus won't allocate "new QStyleRangeSlider()"

any input would be appreciated. (especially if there is a Qt5 widget I'm not familiar with yet)


* rangeslider.jpg (8.08 KB, 580x84 - viewed 143 times.)
« Last Edit: September 02, 2013, 07:29:18 AM by 3dickulus, Reason: clarification » Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #63 on: September 02, 2013, 09:18:55 AM »

hmm, sounds like there should be some mentioning of those changes in the "port guide to 5"
http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5

i am unfamillar with current qt verisons, i think last time i used qt was the 3 branch
Logged

---

divide and conquer - iterate and rule - chaos is No random!
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #64 on: September 02, 2013, 11:49:26 AM »

tnx cK  grin nailed it! the above mentioned "nifty widget" is now working, just had to re-implement the missing functions 2EZ! Qt Rocks!
I think it would be nice to popup this doodle when RMB or hovering over a float slider that has settings.

Windows executable here                Source code here

bon appetite!
« Last Edit: October 11, 2013, 01:01:09 AM by 3dickulus, Reason: URLs » Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #65 on: September 02, 2013, 03:26:29 PM »

This might be of interest to other coders that use QtCreator and QtDesigner, I built a RangeSlider widget plugin for Designer  shocked

Just unpack it and open the project with QtCreator, configure, build, install and it should be ready for use.
You will find two new widgets under "Input Widgets" int and double RangeSliders.

Here's the source code QtRangeSlider.zip

cheers  wink

P.S. used this to add one of each to the EasingCurve editor int for frameRange and double for valueRange
      the valueRange can be higher to start and lower at end by using the spinBox to adjust,
      the frameRange can not.

hmm... maybe this post should be on the "programming" board?
« Last Edit: September 02, 2013, 03:30:56 PM by 3dickulus, Reason: ps » Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #66 on: September 05, 2013, 03:53:56 PM »

I've posted a zip file of the executable only,
for those who have already downloaded the larger file with all of the libraries
or if you have Qt 5.1.1 installed with MinGW from the qt-projects site
this file is only 350k Fragmentarium-Desktop_Qt_5_1_1_MinGW_32bit-Release-exe-only.zip

overwrite the Fragmentarium.exe file with this one or copy
icudt51.dll  icuuc51.dll  libstdc++-6.dll Qt5Core.dll  Qt5OpenGL.dll  Qt5Widgets.dll
icuin51.dll  libgcc_s_dw2-1.dll  libwinpthread-1.dll  Qt5Gui.dll   Qt5Script.dll  Qt5Xml.dll

into the same folder as Fragmentarium.exe

latest tweak: the spline paths and control points now show up with the right colors but only line up properly when FOV == 1.0  embarrass
« Last Edit: October 11, 2013, 01:02:01 AM by 3dickulus, Reason: URLs » Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #67 on: September 29, 2013, 04:07:25 PM »

My humblest apologies to anyone that tried to download the 3Dickulus version of Fragmentarium over the last week,
had a little disaster, lost 3 machines and a hub angry but I did manage to save the webserver and all of it's data cheesy

It's back online now.

edit: set up a temporary system until I can rebuild properly, any problems just post me a note
« Last Edit: September 30, 2013, 05:30:13 PM by 3dickulus, Reason: upd » Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #68 on: September 30, 2013, 10:08:44 AM »

I am laughing at "cat mull"! Meow! grin grin grin
Logged

No sweat, guardian of wisdom!
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #69 on: September 30, 2013, 10:18:11 AM »

 embarrass fatfinkers typing too fast with over emphasis on the enter key and a bit of distraction with coding up this version causing an apparent lack of desire to fix it... but I suppose it will only take a moment  embarrass
« Last Edit: October 02, 2013, 12:58:46 PM by Nahee_Enterprises » Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
barcud
Navigator
*****
Posts: 69


« Reply #70 on: October 02, 2013, 11:31:05 AM »

Hi, just a question about animations.
I am using the Fragmentarium version of the  28th of August and I am playing around with animations in equirectangular fractals.
So far I am sort of successfull with the key frame animations but I have two questions (bear in mind I have not done that much work with Fragmentarium).

I posted two 360 videos on vrtv360.
In my first one http://www.vrtv360.com/watch=TLCaoGEMWils you can sometimes see the splinepath and I am not sure why that is. I made the path in progressive mode using F8 to insert keyframes and I do not see the path when I use the animation slider but I see it in the finished render.
Then again that did not happen in another animation I did so I am not sure how I caused it.

Now the second question is how do I change fractal parameters.  I would the fractal to be unchanged for e.g. 5 keyframes and then change one (or more) parameter(s) over the next 3 frames and then fly on.
As far as I read those changed paramters do not go in the keyframe section (as they do in Mandelbulb 3D AFAIK).
Do I need to use the script section and set up some if (time > 20 ) { 'start parameter change' } and do my own calculations or is there an easier way?

Sorry if I am missing something really obvious.

Logged
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #71 on: October 02, 2013, 12:02:28 PM »

Quote
you can sometimes see the splinepath and I am not sure why that is.
hmmm... I haven't had that happen but if I can reproduce it I'll fix it,
if you post me a copy of the frag file with keyframes and default preset you're using I'll give it a run
Quote
how do I change fractal parameters
at the top of this page(5) is a description of the steps for animating parameters

basically:
 1> select any single float value (click on the slider so it's highlighted)
 2> press the "F7" key and make some changes in the dialog that pops up (value start/finish and frame start/finish and easing curve type)
 3> hit "OK"

the transition will take place over the selected frame range

don't forget to save a preset NOT named keyframe.nnn to preserve these

have a look at Fragmentarium/Examples/Tutorials/32 - Simple Multi-Parameter Easing Animation.frag
the default preset contains the parameter morphs and at least two keyframes are needed for animating

NOTE: the last preset applied is used as the base for settings over the length of the anmation, no GLSL editing is required unless you have some special function you want to apply for an effect.

EDIT: very cool video btw  A Beer Cup

« Last Edit: October 02, 2013, 12:20:18 PM by 3dickulus, Reason: cheers » Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
barcud
Navigator
*****
Posts: 69


« Reply #72 on: October 02, 2013, 01:09:19 PM »

Ahhh!!!
I knew I was missing something. embarrass
I did the F7 thing and saved them as non-keyframes parameters BUT I put each change in a separate parameter section and started the animation with default - somhow wondering how those sections will be chosen because I could find no reference to them anywhere.

As you say - once you got it it seems quite obvious.

Thanks, my first flythrough with parameter changes is just rendering!  grin
Logged
barcud
Navigator
*****
Posts: 69


« Reply #73 on: October 02, 2013, 01:24:28 PM »

Well it worked fine in terms of parameter changes.
BUT
the splinepath lines are back.
Starting in frame 400 and ending in 469.
I have attached the .frag file I am using and a crop of frame 413 with the spline line.


* PKMchange.00413splineline.jpg (48.37 KB, 850x526 - viewed 125 times.)
* PKManim.frag (6.36 KB - downloaded 48 times.)
Logged
SCORPION
Conqueror
*******
Posts: 104


« Reply #74 on: October 02, 2013, 02:51:30 PM »

Yes, I confirm the words barcud! Indeed, in the finished animation skips the line splines.

<a href="http://www.youtube.com/v/R_ZCHI8nNzA&rel=1&fs=1&hd=1" target="_blank">http://www.youtube.com/v/R_ZCHI8nNzA&rel=1&fs=1&hd=1</a>
« Last Edit: October 02, 2013, 02:53:26 PM by SCORPION » Logged
Pages: 1 ... 3 4 [5] 6 7 ... 13   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Setting a parameter in all keyframes at once... Mandelbulber nameinuse2 2 1105 Last post January 25, 2011, 07:56:58 PM
by Buddhi
inserting intermediate keyframes along the parameter splines Mandelbulber huminado 0 858 Last post November 25, 2011, 07:03:16 PM
by huminado
Mandelbulber - idea for spline editing Help & Support eiffie 6 237 Last post February 13, 2013, 07:08:24 AM
by Apophyster
Catmull-Rom Fragmentarium JosLeys 4 1156 Last post July 24, 2013, 01:05:18 AM
by marius
Fragmentarium spline paths Animations Showcase (Rate My short Animation) 3dickulus 2 776 Last post August 22, 2013, 08:41:41 AM
by 3dickulus

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.177 seconds with 24 queries. (Pretty URLs adds 0.016s, 2q)