Welcome to Fractal Forums

Fractal Art => Images Showcase (Rate My Fractal) => Topic started by: ker2x on January 13, 2012, 02:16:58 PM




Title: having fun with fragmentarium
Post by: ker2x on January 13, 2012, 02:16:58 PM
(http://fractals.s3.amazonaws.com/fragmentarium/sinophere-small.jpg)

(http://fractals.s3.amazonaws.com/fragmentarium/compo-sinophere-2-small.jpg)

(http://fractals.s3.amazonaws.com/fragmentarium/keru-pseudomenger-1-small.jpg)

(http://fractals.s3.amazonaws.com/fragmentarium/blueklein1-2-small.jpg)


Title: Re: having fun with fragmentarium
Post by: Pauldelbrot on January 13, 2012, 08:29:16 PM
:thumbsup1:


Title: Re: having fun with fragmentarium
Post by: ker2x on January 14, 2012, 12:39:07 AM
another one  :embarrass:

(http://fractals.s3.amazonaws.com/fragmentarium/hearth-small.png)


Title: Re: having fun with fragmentarium
Post by: ker2x on January 14, 2012, 12:40:52 AM
Ha, and this one posted in another thread :

(http://fractals.s3.amazonaws.com/fragmentarium/blue-again-1-small.jpg)


Title: Re: having fun with fragmentarium
Post by: cKleinhuis on January 14, 2012, 03:58:16 AM
is the reflection formula included in the examples of fragmentarium?
love it ;)


Title: Re: having fun with fragmentarium
Post by: ker2x on January 14, 2012, 12:26:39 PM
is the reflection formula included in the examples of fragmentarium?
love it ;)

It is in the DE-Raytracer  (which is the default raytracer for most exemples).
It is not (yet?) in the Soft-Raytracer (not included in the release, you have to compile the git version for that)

The last blueish pic here, with DOF effect, use the Soft-Raytracer. The others use DE-Raytracer.

This one of the nice thing of fragmentarium, the raytracers (raymarcher  :embarrass: ) are in glsl too so you can modify them on the fly to fit your purpose :)

Code:
			if (Reflection>0.0 && (hit != vec3(.0))) {
vec3 d; vec3 d2 = vec3(0.0);
// todo: minDist = modifiedEps?
vec3 r = normalize(nDir - 2.0 * dot(hitNormal, nDir) * hitNormal);

vec3 c2 = trace(hit+4.0*r*minDist,r,d,d2);
color += c+c2*Reflection;
} else {
color += c;
}