Welcome to Fractal Forums

Fractal Software => Releases => Topic started by: mintaka on September 07, 2011, 08:30:25 PM




Title: mandelbulber 1.08 patch
Post by: mintaka on September 07, 2011, 08:30:25 PM
Hello folks, it's my first posting here, thought i should share some fix/addition that i made in 1.08.

Thanks, Krzysztof, for this wonderful software that lets me extend my universe to N times infinity (again). I hope that you can include these changes in the next release.

The fix i made addresses an issue with navigation. It only reveals when you let it render an animation. If you turn the camera between keyframes with 3-axis rotation and one of the angles goes above 180° or below -180°, then the animation makes weird turns. This is not a bug but it's annoying to have to correct the angles manually. The reason for this is the math that is used to calculate the new set of view angles, which involves arcsin and arctan functions. The nature of these functions is that they are repetitive below -180° and above +180°. So, if you make for example a turn from 170° to 190°, it gives -170° as a result, which is equivalent to +190° in math but not the same for the frame interpolation - then the camera makes almost a full revolution between two keyframes (340°).
This patch fixes the view, it should work with turns up to 180° but it doesn't do much math, so 180 is a safe guess where it should always recognize the error. Maybe Krzysztof can do better.

The second change in this patch is the addition of two navigation buttons: rotate the camera around its axis (gamma rotation). I made icons for the buttons that fit the style of the existing ones.


Many words, now how to apply:
Extract the files from the archive attached to this posting. The contents of the mandelbulber1.08/ folder therein go to the mandelbulber source folder - should work with 32-bit and 64-bit versions. It will not overwrite anything, as there's only some new files. Then, in a shell, cd to the mandelbulber1.08 folder and apply the patch (this is for the patch program in linux but the file should be suitable for win also):
Code:
patch -p1 -c -i mandelbulber1.08-mintaka-20111006.patch
after that, compile, install and

enjoy :)
* * * mintaka


Title: Re: mandelbulber 1.08 patch
Post by: BadCRC on September 07, 2011, 11:19:24 PM
Nice job.  I have had many animations do weird camera moves like you describe but did not know why exactly.  I thought it was something along those lines.  I am glad you figured it out and fixed it.

The roll buttons.  Ask and you shall receive.  Boy that was fast.  It's cool how you had already done it.

I hope both get into the next release.

Thanks


Title: Re: mandelbulber 1.08 patch
Post by: BadCRC on September 10, 2011, 03:03:21 AM
You think you can post a compiled version for Windows and Linux?  So people that do not have a compiler could use it.
 


Title: Re: mandelbulber 1.08 patch
Post by: Buddhi on November 24, 2011, 08:36:24 PM
I have just used your patch for Mandelbulber. All rotations works perfectly. It's also good idea to add roll rotation button. It will be included in next Mandelbulber release (soon).
Thank you.

Hello folks, it's my first posting here, thought i should share some fix/addition that i made in 1.08.

Thanks, Krzysztof, for this wonderful software that lets me extend my universe to N times infinity (again). I hope that you can include these changes in the next release.

The fix i made addresses an issue with navigation. It only reveals when you let it render an animation. If you turn the camera between keyframes with 3-axis rotation and one of the angles goes above 180° or below -180°, then the animation makes weird turns. This is not a bug but it's annoying to have to correct the angles manually. The reason for this is the math that is used to calculate the new set of view angles, which involves arcsin and arctan functions. The nature of these functions is that they are repetitive below -180° and above +180°. So, if you make for example a turn from 170° to 190°, it gives -170° as a result, which is equivalent to +190° in math but not the same for the frame interpolation - then the camera makes almost a full revolution between two keyframes (340°).
This patch fixes the view, it should work with turns up to 180° but it doesn't do much math, so 180 is a safe guess where it should always recognize the error. Maybe Krzysztof can do better.

The second change in this patch is the addition of two navigation buttons: rotate the camera around its axis (gamma rotation). I made icons for the buttons that fit the style of the existing ones.



Title: Re: mandelbulber 1.08 patch
Post by: taurus on November 24, 2011, 10:49:29 PM
thanx, nice to hear, that i can bag the calculator in future  :D

i don't run any linux on my machine any more, so i'd like to know if i understand this right. the patch works for angles up to +-360°?