Title: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: Botond Kósa on December 07, 2014, 02:05:48 AM A new version of Mandel Machine is available (http://web.t-online.hu/kbotond/mandelmachine/#1.3.10).
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:
Reference image without bump mapping: (http://web.t-online.hu/kbotond/mandelmachine/img/bm_off_4x4.jpg) Bump mapping with low depth and low strength: (http://web.t-online.hu/kbotond/mandelmachine/img/bm_lo_depth_lo_strength_4x4.jpg) Bump mapping with low depth and high strength: (http://web.t-online.hu/kbotond/mandelmachine/img/bm_lo_depth_hi_strength_4x4.jpg) Bump mapping with great depth and low strength: (http://web.t-online.hu/kbotond/mandelmachine/img/bm_hi_depth_lo_strength_4x4.jpg) Bump mapping with great depth and high strength: (http://web.t-online.hu/kbotond/mandelmachine/img/bm_hi_depth_hi_strength_4x4.jpg) Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: Botond Kósa 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 (https://www.youtube.com/user/phaumann)). 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: (http://web.t-online.hu/kbotond/mandelmachine/img/histo_density_0_2x2.jpg) Same image with color density = -100: (http://web.t-online.hu/kbotond/mandelmachine/img/histo_density_-100_2x2.jpg) Same image with color density = -200: (http://web.t-online.hu/kbotond/mandelmachine/img/histo_density_-200_2x2.jpg) Same image with color density = -300: (http://web.t-online.hu/kbotond/mandelmachine/img/histo_density_-300_2x2.jpg) Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: istinn 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! Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: cKleinhuis 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 ;)
in fact this can be extended to behave similar to frax, like light intensity, angle, color and so on ;) 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 ;) just my five cents to keep you going :D Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: Botond Kósa 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 ;) Direction of light under Rendering / Post processing does just that ;) 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 ;) 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 ;) Yeah... layering with transparency would be nice. Someday, maybe.Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: Kalles Fraktaler 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? Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: Botond Kósa 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. 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?I wonder if it is possible at all to avoid it, and make arbitrary deep zoom movies with this effect active? Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: istinn 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
Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: Botond Kósa 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. Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: istinn 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. Title: Faster bump mapping - v1.3.11 is available Post by: Botond Kósa 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.
Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: ellarien 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. :)
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. Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: Chillheimer 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?! Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: Botond Kósa 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:
Have a good fun! :) Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: ellarien 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. :) Quote the following formats are supported:
Have a good fun! :) That's good to know -- I hadn't realized there were formats other than AVI available. Thanks! Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: Kalles Fraktaler on December 10, 2014, 05:45:05 PM Did you find an example where the compensation for different resolutions is not perfect? No, it is 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.) But it is zoom level dependent, which you also mentioned.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? KFMM converts several key frames to memory bitmaps and uses Win32 stretchblt to squeeze them and paste them on top of each other. I think the standard Win32-Stretchblt is very good for antialiasing 2D fractals, the result doesn't get as blurry as the extensive photo-resizing methods used in Photoshop etc, and therefore preserves a little more information. But that is only my opinion. So when KFMM paste several stretched images on top of each other, the edges are very visible when slope/bump-encoding is used... Title: Re: Bump mapping & improved histogram coloring - v1.3.10 is available Post by: Alef on December 12, 2014, 06:25:44 PM I had an idea with the UF. You can interpolate colours differently. http://www.fractalforums.com/new-theories-and-research/colours-gradients-and-their-interpolation/ (http://www.fractalforums.com/new-theories-and-research/colours-gradients-and-their-interpolation/) |