Logo by Sockratease - 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: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. March 29, 2024, 01:03:21 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]   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: mandelbulber 1.08 patch  (Read 3347 times)
Description: issues and additions
0 Members and 1 Guest are viewing this topic.
mintaka
Forums Newbie
*
Posts: 2


« 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 smiley
* * * mintaka

* mandelbulber1.08-mintaka-patch-20111006.zip (5.05 KB - downloaded 155 times.)
« Last Edit: September 07, 2011, 08:41:50 PM by mintaka » Logged
BadCRC
Alien
***
Posts: 21



« Reply #1 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
Logged
BadCRC
Alien
***
Posts: 21



« Reply #2 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.
 
Logged
Buddhi
Fractal Iambus
***
Posts: 895



WWW
« Reply #3 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.

Logged

taurus
Fractal Supremo
*****
Posts: 1175



profile.php?id=1339106810 @taurus_arts_66
WWW
« Reply #4 on: November 24, 2011, 10:49:29 PM »

thanx, nice to hear, that i can bag the calculator in future  cheesy

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°?
Logged

when life offers you a lemon, get yourself some salt and tequila!
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Broccoli patch Mandelbulb Renderings Snakehand 4 1761 Last post December 22, 2009, 12:01:42 PM
by KRAFTWERK
Mandelbulber 0.80 Mandelbulber Buddhi 5 7968 Last post June 27, 2010, 05:30:54 PM
by knighty
In the Briar Patch Mandelbulb3D Gallery MarkJayBee 0 360 Last post January 16, 2011, 10:07:24 AM
by MarkJayBee
In the Briar Patch Images Showcase (Rate My Fractal) MarkJayBee 0 623 Last post January 16, 2011, 10:14:55 AM
by MarkJayBee

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.33 seconds with 26 queries. (Pretty URLs adds 0.012s, 2q)