Logo by Cyclops - 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 22, 2019, 10:08:46 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] 2   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: Bump mapping & improved histogram coloring - v1.3.10 is available  (Read 1888 times)
0 Members and 1 Guest are viewing this topic.
Botond Kósa
Fractal Lover
**
Posts: 233



WWW
« on: December 07, 2014, 02:05:48 AM »

A new version of Mandel Machine is available.

The major new feature is bump mapping. It allows fake-3D visualization of subtle details previously hidden by the slow gradients in the palette.
Bump mapping is controlled by 3 parameters:
  • Direction of lighting (in degrees): specifies the angle of the simulated lighting. Surfaces facing the light are highlighted, the ones blocked from lighting are darkened.
  • Depth: controls how much the structures emerge from the background of slow gradients. Shallow depth causes a relief/emboss-like look. Greater depth values result in deeper valleys between structures (see the examples below).
  • Strength: controls the amount of color shift caused by highlights and shadows.
The parameters are continuously adjustable to give instant feedback.

Reference image without bump mapping:


Bump mapping with low depth and low strength:


Bump mapping with low depth and high strength:


Bump mapping with great depth and low strength:


Bump mapping with great depth and high strength:

Logged

Check out my Mandelbrot set explorer:
http://web.t-online.hu/kbotond/mandelmachine/
Botond Kósa
Fractal Lover
**
Posts: 233



WWW
« Reply #1 on: December 07, 2014, 02:16:10 AM »

Histogram coloring is also improved in v1.3.10. The palette is no longer wrapped around, allowing for palettes with different starting and ending colors (like the classic one used in phaumann's videos). The color density controls the nonlinearity of the palette at the higher end. Color densities below 0 cause the pixels with the highest iteration counts to stand out:

Example image with histogram coloring using phaumann's palette, color density = 0:


Same image with color density = -100:


Same image with color density = -200:


Same image with color density = -300:
Logged

Check out my Mandelbrot set explorer:
http://web.t-online.hu/kbotond/mandelmachine/
istinn
Forums Freshman
**
Posts: 12



« Reply #2 on: December 07, 2014, 10:05:34 PM »

this hillshading light effect is very nice, great idea

i would also like to see a working pan solution if possible! right mouse click has the pan but there is no screen refresh, as far as I can understand there has to be a way to continue the image from there and fill only the new area that enters the frame without refreshing the whole fractal frame again. this will be useful for frame definition and exploring a specific zoom scale...

I do not know for sure but i guess pan could also use some specific cache solution, as every pan movement adds calculations to the same "very high resolution" image and returns to the same area are very possible. I think for pan, a specific area around the screen that can be cached and pre-defined in megapixels


but even a brutal refresh pan is useful!
Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #3 on: December 07, 2014, 10:44:50 PM »

if you want to be cool like frax app, be sure to implement a realtime adjustment for the light angle wink

in fact this can be extended to behave similar to frax, like light intensity, angle, color and so on wink unsure if you have yet implemented layering, but layerings work well with that as well, but for layerings some kind of transparency handling is a must wink

just my five cents to keep you going cheesy
Logged

---

divide and conquer - iterate and rule - chaos is No random!
Botond Kósa
Fractal Lover
**
Posts: 233



WWW
« Reply #4 on: December 07, 2014, 11:13:22 PM »

if you want to be cool like frax app, be sure to implement a realtime adjustment for the light angle wink
Direction of light under Rendering / Post processing does just that wink You can get realtime feedback by dragging the slider.

in fact this can be extended to behave similar to frax, like light intensity, angle, color and so on wink unsure if you have yet implemented layering, but layerings work well with that as well, but for layerings some kind of transparency handling is a must wink
Yeah... layering with transparency would be nice. Someday, maybe.
Logged

Check out my Mandelbrot set explorer:
http://web.t-online.hu/kbotond/mandelmachine/
Kalles Fraktaler
Fractal Senior
******
Posts: 1458



kallesfraktaler
WWW
« Reply #5 on: December 08, 2014, 02:10:19 PM »

Your "bump" mappings is really nice, the arbitrary angle is awesome and it compensates a bit for different resolutions.
However, unfortunately it also has the limitation that the result is dependent of the zoom level.
I wonder if it is possible at all to avoid it, and make arbitrary deep zoom movies with this effect active?
Logged

Want to create DEEP Mandelbrot fractals 100 times faster than the commercial programs, for FREE? One hour or one minute? Three months or one day? Try Kalles Fraktaler http://www.chillheimer.de/kallesfraktaler
http://www.facebook.com/kallesfraktaler
Botond Kósa
Fractal Lover
**
Posts: 233



WWW
« Reply #6 on: December 08, 2014, 03:04:12 PM »

Your "bump" mappings is really nice, the arbitrary angle is awesome and it compensates a bit for different resolutions.
Did you find an example where the compensation for different resolutions is not perfect? It was designed to provide the same shadings, no matter what resolution or supersampling is chosen. (Technically, the slopes are normalized with image width.)

However, unfortunately it also has the limitation that the result is dependent of the zoom level.
I wonder if it is possible at all to avoid it, and make arbitrary deep zoom movies with this effect active?
MM calculates the slopes based on the 2-dimensional derivative of iteration count. By zooming in 1 step, the distance of the pixels doubles, hence the derivative halves. I think this is OK for zoom movies as long as the bump mapping is performed for each frame independently, not just for the key frames. This will make movie rendering a bit slower though, since all key frame scaling would have to be performed on iteration values, not color values. But this will also be necessary for the histogram coloring of movies. KFR Movie Maker already works this way, right?
Logged

Check out my Mandelbrot set explorer:
http://web.t-online.hu/kbotond/mandelmachine/
istinn
Forums Freshman
**
Posts: 12



« Reply #7 on: December 08, 2014, 05:01:43 PM »

crash log files for version 1.3.10 crash on restoring last position, had to rename history folder to start again

* Mandel_Machine_x64_crash_log_files_ver-1.3.10.zip (35.88 KB - downloaded 77 times.)
Logged
Botond Kósa
Fractal Lover
**
Posts: 233



WWW
« Reply #8 on: December 08, 2014, 08:17:23 PM »

crash log files for version 1.3.10 crash on restoring last position, had to rename history folder to start again

From the log files it seems you had very little free memory, around 370 MB. Trying to restore a moderately large image (~30 megapixels) could result in an out of memory error.

A warning will be shown in such cases with the option to quit the application.
Logged

Check out my Mandelbrot set explorer:
http://web.t-online.hu/kbotond/mandelmachine/
istinn
Forums Freshman
**
Posts: 12



« Reply #9 on: December 08, 2014, 08:23:37 PM »

thanks, good to know
one more finding, sometimes the new bump mapping just fills the half of the screen, recompute does not fill it, changing zoom value slightly or color offset completes it ok.
« Last Edit: December 08, 2014, 09:14:06 PM by istinn » Logged
Botond Kósa
Fractal Lover
**
Posts: 233



WWW
« Reply #10 on: December 09, 2014, 01:15:55 AM »

A small update is available, with up to 2x faster bump mapping when adjusting the light angle / depth / strength sliders. The speedup is achieved by caching the normal vectors for each pixel of the image. The cache consumes 12 bytes of RAM per pixel, effectively doubling the RAM consumption of the image. Caching can be switched off to enable processing of very large images.
Logged

Check out my Mandelbrot set explorer:
http://web.t-online.hu/kbotond/mandelmachine/
ellarien
Conqueror
*******
Posts: 123


I like flowers


WWW
« Reply #11 on: December 09, 2014, 09:21:39 PM »

Thank you for all the recent improvements and features! I may be falling in love with the good old Mandelbrot set all over again.  smiley

Would it be possible to have the movie maker break the movie down into manageable (<2Gb, I guess) chunks? I made a 4Gb movie, but my computer couldn't play it.
Logged
Chillheimer
Global Moderator
Fractal Schemer
******
Posts: 972


Just another fractal being floating by..


chilli.chillheimer chillheimer
WWW
« Reply #12 on: December 09, 2014, 09:32:22 PM »

Would it be possible to have the movie maker break the movie down into manageable (<2Gb, I guess) chunks? I made a 4Gb movie, but my computer couldn't play it.

did I miss something? since when can you make movies with mandel machine?
If so - how/where?!
Logged

--- Fractals - add some Chaos to your life and put the world in order. ---
Botond Kósa
Fractal Lover
**
Posts: 233



WWW
« Reply #13 on: December 10, 2014, 10:08:35 AM »

did I miss something? since when can you make movies with mandel machine?
If so - how/where?!

I've been working on MM movie maker for months now. It was unintentionally included in version 1.3.5 and SeryZone started using it, so I left it in the public release but did not make an announcement. It can be found at the very bottom of the tool bar, look for a toolbox called Animation. It still needs some refinements here and there to be easily usable, but anyway, here's a short tutorial on how to use it:

1. Set the Starting and ending location of your animation by navigating to the desired location and clicking the left/right thumbnail in the Animation toolbox. The ending location must have a zoom depth greater than the starting location, so zoom-out animations are not possible currently. You can also specify the zoom step between key frames, but anything different from the default value of 1 is untested.
2. Click on the Compute key frames button and specify a filename to save the animation definition (.mma file). You should create the file in an empty folder. After saving the starting and ending location in the mma file, the key frames will be computed and saved automatically in the same folder. This process could take a long time, so be patient.
3. You can check the saved key frames by opening their .mmf files from the folder. If you see glitches on a key frame, it can be recomputed and saved manually with altered parameters (e.g. Use lower scale data types turned off).
4. When all the key frames are correct, it's time to render the animation! Set the rendering parameters in the Rendering toolbox and the animation parameters in the Step 2 - Render animation part of the Animation toolbox. You have to set the total frames in the movie and the framerate (fps), and the duration will be computed based on them. You can also specify the length and color of the fade-in and fade-out effects. The max zoom rate and zoom acceleration are calculated based on the duration and the zoom depth difference of the starting and ending locations. You can also add a motion blur effect by setting a value greater than 1 in the Motion blur (temporal AA) field. Output supersampling, Key frame supersampling an Temporal blending can be used to improve the quality of the video at the cost of longer rendering times. I will describe these parameters later.
5. Click the Render animation button and then select the previously saved .mma file. Then you have to specify an output format and file name. Currently the following formats are supported:
  • Uncompressed AVI: lossless, only sizes under 4GB are supported
  • PNG sequence: lossless, ~30% size reduction compared to AVI
  • JPG sequence: lossy, ~80% size reduction compared to AVI

Have a good fun! smiley
« Last Edit: December 10, 2014, 10:12:35 AM by Botond Kósa » Logged

Check out my Mandelbrot set explorer:
http://web.t-online.hu/kbotond/mandelmachine/
ellarien
Conqueror
*******
Posts: 123


I like flowers


WWW
« Reply #14 on: December 10, 2014, 11:36:45 AM »

I've been working on MM movie maker for months now. It was unintentionally included in version 1.3.5

Ah, I see. I wasn't sure whether it was officially supposed to work or not, so I was pleasantly surprised that it mostly does. I love the acceleration/deceleration effects at the beginning and end. smiley

Quote
the following formats are supported:
  • Uncompressed AVI: losless, only sizes under 4GB are supported
  • PNG sequence: lossless, ~30% size reduction compared to AVI
  • JPG sequence: lossy, ~80% size reduction compared to AVI

Have a good fun! smiley

That's good to know -- I hadn't realized there were formats other than AVI available. Thanks!
Logged
Pages: [1] 2   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Histogram jitter test 1 FractalWorks Gallery Duncan C 0 621 Last post December 20, 2008, 03:57:59 AM
by Duncan C
Histogram Coloring Issue Programming clonexpert 9 2548 Last post February 21, 2010, 04:29:28 AM
by Duncan C
Bump/image maps Mandelbulb 3d DarkBeam 11 1450 Last post December 28, 2011, 12:02:37 PM
by DarkBeam
Histogram equalization tests Images Showcase (Rate My Fractal) SeryZone 0 399 Last post May 02, 2014, 07:58:02 PM
by SeryZone
histogram colouring is really streching (not true histogram) Kalles Fraktaler claude 3 1980 Last post December 14, 2014, 11:34:00 PM
by claude

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.183 seconds with 29 queries. (Pretty URLs adds 0.011s, 2q)