Logo by AGUS - Contribute your own Logo!
News: Become a fan of fractalforums.com on facebook
 
*
Welcome, Guest. Please login or register., Guest. Please login or register. September 03, 2010, 09:52:53 AM


Login with username, password and session length



Pages: 1 [2]
  Print  
Share this topic on Facebook
Author Topic: True 3D Julia  (Read 7372 times)
0 Members and 1 Guest are viewing this topic.
Buddhi
Fractal Fanatic
****
Posts: 271



WWW
« Reply #15 on: August 22, 2009, 09:12:54 AM »

Hi
I stay with my render method. It needs lots of memory and it's very slow but I can generate accurate shadows, transparent fog, environment mapping (based on normal vectors). Now I'm working to prepare full raytracing (with reflections). I agree with you that distance estimation method will be helpfull for rendering because this distance information we can use to calculate step distance in for example raytracing algorithm.  Rendering will be much more faster. But now I know how to calculate distance only using quaternions. Quaternions fractals has unfortunately few interesting details.
Below there is new rendering of Julia fractal.


Logged

Buddhi
Fractal Fanatic
****
Posts: 271



WWW
« Reply #16 on: October 23, 2009, 04:04:24 PM »

Last times I have rendered two new Julia 3D Fractals using Twinbee formula. For shading I used global illumination and hard shadows algorithms.

Julia constant  = -0.78 + 0.15i + 0.07j

http://www.fractalforums.com/gallery/?sa=view;id=1000

Julia constant  = -0.4360393 + 0.0147539i + 0j

http://www.fractalforums.com/gallery/?sa=view;id=1017

Logged

David Makin
Global Moderator
Fractal Omnipotent
******
Posts: 1396



Makin' Magic Fractals
WWW
« Reply #17 on: October 23, 2009, 08:08:15 PM »

Awesome renders !
Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
Trifox
Administrator
Fractal Omnipotent
*******
Posts: 1628


Frascinating!


WWW
« Reply #18 on: October 24, 2009, 04:04:16 AM »

indeed
 Repeating Zooming Self-Silimilar Thumb Up, by Craig
Logged

---

divide and conquer - iterate and rule
lycium
Global Moderator
Fractal Molossus
******
Posts: 691



WWW
« Reply #19 on: October 24, 2009, 04:37:25 AM »

global illumination and hard shadows algorithms

even if that's a contradiction, i must also agree: very fine renders!
Logged

Trifox
Administrator
Fractal Omnipotent
*******
Posts: 1628


Frascinating!


WWW
« Reply #20 on: October 24, 2009, 04:53:34 AM »

as i said in the gallery, the first of the last 2 really looks like a coral water plant ... actually REALLY IN the water!  Elvis Presley
Logged

---

divide and conquer - iterate and rule
JColyer
Navigator
*****
Posts: 37


3D's the only way to fly baby!


« Reply #21 on: December 04, 2009, 02:36:56 PM »

@buddhi - i've been working on a similar rendering technique to yours for about the past week or so, biggest difference is that I'm storing my pre-render data in a DB instead of JPEG files.  I've gotten quite far in the ray-tracing process but i'm having a devil of a time trying to figure out how to come up with the normals?  any suggestions or guidance you can offer?

thanks!

JC
Logged
Buddhi
Fractal Fanatic
****
Posts: 271



WWW
« Reply #22 on: December 04, 2009, 05:44:55 PM »

@JColyer - bellow is some fragment of code from my program where is procedure for calculation normal vector. This algorithm calculates average gradient for some small area near calculated point.
Code:
for(int k=-smooth; k<=smooth; k++)
{
for(int j=-smooth; j<=smooth; j++)
{
for(int i=-smooth; i<=smooth; i++)
{
double delta2X = Interpol3D(x+0.5+i,y+0.5+j,z+0.5+k,fractal3D)
            -Interpol3D(x-0.5+i,y-0.5+j,z-0.5+k,fractal3D);
double delta2Y = Interpol3D(x+0.5+i,y+0.5+j,z+0.5+k,fractal3D)
            -Interpol3D(x-0.5+i,y-0.5+j,z-0.5+k,fractal3D);
double delta2Z = Interpol3D(x+0.5+i,y+0.5+j,z+0.5+k,fractal3D)
            -Interpol3D(x-0.5+i,y-0.5+j,z-0.5+k,fractal3D);
deltaX+=delta2X;
deltaY+=delta2Y;
deltaZ+=delta2Z;
        }
        }
}
                   
//length of vector (normalization factor)
double modul = sqrt(deltaX*deltaX + deltaY*deltaY + deltaZ*deltaZ);
           
if(modul>0.001)
{
      //normalization of normal vector
        normalX = deltaX/modul;
        normalY = deltaY/modul;
        normalZ = deltaZ/modul;
}

Interpol3D function calculates linear interpolation between adjacent points of 3D array which consist fractal slices. It is for more smooth results.

I know that it is not optimal algorithm but this is only one I know. Maybe it helps you.

I resigned from pre-calculating slices into array, because it is not effective (program have to calculate points also inside Mandelbulb) and needs lots of memory. Maximum array size which I achieved was 1500x1500x1500 (3,2GiB of RAM). Unfortunately it is not enough for any perspective views. Now I'm calculating fractal iterations directly in 3D view and it is about 10 times faster than with calculated fractal slices. It is faster because program have to calculate only visible points.
Logged

JColyer
Navigator
*****
Posts: 37


3D's the only way to fly baby!


« Reply #23 on: December 05, 2009, 01:01:08 AM »

@buddhi - ah thank you, i had read about using a linear gradient function but hand't quite been able to get my brain wrapped around it.  as of last night I built a very crude fractal ray tracer and it works ok, but needs a load of work.  I'm working with dataset driven rendering as I'm rendering the interior structures of julia sets and the method I use requires post-generation data mapping to get full quality and detail from the data.  I'll get some pics posted asap!

thanks for pointing me in the right direction!

JC
Logged
Pages: 1 [2]
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
True 3D mandelbrot type fractal 3D Fractal Generation « 1 2 ... 36 37 » twinbee 551 116052 Last post November 19, 2009, 11:56:16 PM
by Trifox
Moved: True 3D mandelbrot Implementation Mandelbulb Implementation Geometrian 6 1470 Last post November 20, 2009, 01:55:21 PM
by mattiasFagerlund
Re: True 3D mandelbrot type fractal Mandelbulb Software shanest 2 3328 Last post November 20, 2009, 03:24:26 AM
by fractalrebel
True 3D mandelbrot fractal (search for the holy grail continues) 3D Fractal Generation « 1 2 ... 15 16 » illi 230 11330 Last post August 25, 2010, 04:55:29 PM
by fracmonk
Have i found the true three D mandy's? Fractal Humor jehovajah 0 129 Last post August 02, 2010, 02:31:03 AM
by jehovajah

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

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