Forum: Fractals


Subject: New Version of FMF (FerryMan Fractal) Released

spanzhang opened this issue on Apr 28, 2007 · 5 posts


spanzhang posted Sun, 29 April 2007 at 12:26 PM

Here's a ray tracing sample. If your FMF dosen't support it. Please download it again from http://www.cgpad.com




<coloring guid="{0BFF86C1-9839-40f1-A51F-1FC43E02EC0D}"  prop="|0,0,0,1|1|3|0|32765||6|0|0|-5|1|" fibrics="LwAqAA0ACgANAAoAdABlAHMAdAAgAG8AZgAgAHQAaABlACAAYgBvAHgAIABvAGIAagBlAGMAdAAuAA0ACgANAAoAKgAvAA0ACgANAAoALwAvAEYAcgBhAG0AZQBzAA0ACgBvAGIAagAgAD0AIABuAGUAdwAgAFAAbABhAG4AZQAoADAALAAgADEALAAgADAALAAgADQALgA0ACkAOwANAAoAbwBiAGoALgBzAGUAdABDAG8AbABvAHIAKAAwAC4ANwAsACAAMAAuADQALAAgADAALAAgADEALgAwACkAOwANAAoAcAByAGkAbQBpAHQAaQB2AGUAcwAuAHAAdQBzAGgAKABvAGIAagApADsADQAKAA0ACgBvAGIAagAgAD0AIABuAGUAdwAgAFAAbABhAG4AZQAoADAALAAgAC0AMQAsACAAMAAsACAANwAuADQAKQA7AA0ACgBvAGIAagAuAHMAZQB0AEMAbwBsAG8AcgAoADAALgA3ACwAIAAwAC4ANAAsACAAMAAuADAALAAgADEAKQA7AA0ACgBwAHIAaQBtAGkAdABpAHYAZQBzAC4AcAB1AHMAaAAoAG8AYgBqACkAOwANAAoADQAKAG8AYgBqACAAPQAgAG4AZQB3ACAAUABsAGEAbgBlACgAMAAuADQALAAgADAALAAgAC0AMQAsACAAMQAyACkAOwANAAoAbwBiAGoALgBzAGUAdABDAG8AbABvAHIAKAAwAC4ANwAsACAAMAAuADQALAAgADAALgAwACwAIAAwAC4ANQApADsADQAKAHAAcgBpAG0AaQB0AGkAdgBlAHMALgBwAHUAcwBoACgAbwBiAGoAKQA7AA0ACgANAAoALwAvAEwAaQBnAGgAdAAgAHMAbwB1AHIAYwBlAHMADQAKAG8AYgBqACAAPQAgAG4AZQB3ACAAUwBwAGgAZQByAGUAKAAwACwAIAA1ACwAIAA1ACwAIAAwAC4AMAAwADAAMQApADsADQAKAG8AYgBqAC4AbABpAGcAaAB0ACAAPQAgADEAOwANAAoAbwBiAGoALgBzAGUAdABDAG8AbABvAHIAKAAwAC4AOQAsACAAMAAuADkALAAgADAALgA5ACkAOwANAAoAcAByAGkAbQBpAHQAaQB2AGUAcwAuAHAAdQBzAGgAKABvAGIAagApADsADQAKAA0ACgBvAGIAagAgAD0AIABuAGUAdwAgAFMAcABoAGUAcgBlACgALQAzACwAIAA1ACwAIAAxACwAIAAwAC4AMAAwADAAMQApADsADQAKAG8AYgBqAC4AbABpAGcAaAB0ACAAPQAgADEAOwANAAoAbwBiAGoALgBzAGUAdABDAG8AbABvAHIAKAAwAC4ANwAsACAAMAAuADcALAAgADAALgA3ACkAOwANAAoAcAByAGkAbQBpAHQAaQB2AGUAcwAuAHAAdQBzAGgAKABvAGIAagApADsADQAKAA0ACgAvAC8ATwBiAGoAZQBjAHQAcwANAAoAbwBiAGoAIAA9ACAAbgBlAHcAIABTAHAAaABlAHIAZQAoADIALAAgADAALgA4ACwAIAAzACwAIAAyAC4ANQApADsADQAKAG8AYgBqAC4AcwBlAHQAQwBvAGwAbwByACgAMAAuADcALAAgADAALgA3ACwAIAAxAC4AMAAsACAAMAAuADIALAAgADAALgAyACwAIAAwAC4AOAAsACAAMQAuADMAKQA7AA0ACgBwAHIAaQBtAGkAdABpAHYAZQBzAC4AcAB1AHMAaAAoAG8AYgBqACkAOwANAAoADQAKAG8AYgBqACAAPQAgAG4AZQB3ACAAUwBwAGgAZQByAGUAKAAtADUALgA1ACwAIAAtADAALgA1ACwAIAA3ACwAIAAzACkAOwANAAoAbwBiAGoALgBzAGUAdABDAG8AbABvAHIAKAAwAC4ANwAsACAAMAAuADcALAAgADEALgAwACwAIAAwAC4AMQAsACAAMAAuADUALAAgADAALgAwACwAIAAxAC4AMwApADsADQAKAHAAcgBpAG0AaQB0AGkAdgBlAHMALgBwAHUAcwBoACgAbwBiAGoAKQA7AA0ACgANAAoAZgBvAHIAIAAoAGkAIAA9ACAAMAA7ACAAaQAgADwAIAA0ADsAIAArACsAaQApACAAewANAAoAbwBiAGoAIAA9ACAAbgBlAHcAIABTAHAAaABlAHIAZQAoAC0ANgAgACsAIAAoAGkAIAAqACAAMwApACwAIAAtADAALgA1ACwAIAAtADIALAAgADEAKQA7AA0ACgBvAGIAagAuAHMAZQB0AEMAbwBsAG8AcgAoADAALgA3ACwAIAAwAC4ANwAsACAAMQAuADAALAAgADAALgAxACwAIAAwAC4ANQAsACAAMAAuADAALAAgADEALgAzACkAOwANAAoAcAByAGkAbQBpAHQAaQB2AGUAcwAuAHAAdQBzAGgAKABvAGIAagApADsADQAKAH0ADQAKAA0ACgBmAG8AcgAgACgAaQAgAD0AIAAwADsAIABpACAAPAAgADQAOwAgACsAKwBpACkAIAB7AA0ACgBvAGIAagAgAD0AIABuAGUAdwAgAFMAcABoAGUAcgBlACgALQA0ACAAKwAgACgAaQAgACoAIAAzACkALAAgADMALAAgAC0AMgAsACAAMQApADsADQAKAG8AYgBqAC4AcwBlAHQAQwBvAGwAbwByACgATQBhAHQAaAAuAGMAbwBzACgAaQAvADQAKQAsACAAMQAsACAAMQAuADAALAAgADAALgAxACwAIAAxACwAIAAxAC4AMAAsACAAMQAuADMAKQA7AA0ACgBwAHIAaQBtAGkAdABpAHYAZQBzAC4AcAB1AHMAaAAoAG8AYgBqACkAOwANAAoAfQANAAoADQAKAGYAbwByACAAKABpACAAPQAgADAAOwAgAGkAIAA8ACAANAA7ACAAKwArAGkAKQAgAHsADQAKAG8AYgBqACAAPQAgAG4AZQB3ACAAUwBwAGgAZQByAGUAKAAtADUAIAArACAAKABpACAAKgAgADMAKQAsACAALQAzACwAIAAtADIALAAgADEAKQA7AA0ACgBvAGIAagAuAHMAZQB0AEMAbwBsAG8AcgAoADEALgAwACwAIABNAGEAdABoAC4AYwBvAHMAKABpAC8ANAApACwAIAAxAC4AMAAsACAAMAAuADEALAAgADEALAAgADEALgAwACwAIAAxAC4AMwApADsADQAKAHAAcgBpAG0AaQB0AGkAdgBlAHMALgBwAHUAcwBoACgAbwBiAGoAKQA7AA0ACgB9AA0ACgANAAoAZgBvAHIAIAAoAGkAIAA9ACAAMAA7ACAAaQAgADwAIAA0ADsAIAArACsAaQApACAAewANAAoAbwBiAGoAIAA9ACAAbgBlAHcAIABTAHAAaABlAHIAZQAoAC0AMgAgACsAIAAoAGkAIAAqACAAMgApACwAIAAtADIAIAArACAAKABpACAAKgAgADEAKQAsACAAMAAsACAAMAAuADUAKQA7AA0ACgBvAGIAagAuAHMAZQB0AEMAbwBsAG8AcgAoADEALgAwACwAIABNAGEAdABoAC4AYwBvAHMAKABpAC8ANAApACwAIAAxAC4AMAAsACAAMAAuADEALAAgADEALAAgADEALgAwACwAIAAxAC4AMwApADsADQAKAHAAcgBpAG0AaQB0AGkAdgBlAHMALgBwAHUAcwBoACgAbwBiAGoAKQA7AA0ACgB9AA==" />



You can explore it by magnify a block by select and double click in it.
Following is the coresponding scene script for the above ray tracing fractal.
It's writen in JScript grammar.
You need not paste it to the FMF.
Just switch to Property Editor's Color tab and click the toolbar's last button to view or edit it.

//Frames
obj = new Plane(0, 1, 0, 4.4);
obj.setColor(0.7, 0.4, 0, 1.0);
primitives.push(obj);

obj = new Plane(0, -1, 0, 7.4);
obj.setColor(0.7, 0.4, 0.0, 1);
primitives.push(obj);

obj = new Plane(0.4, 0, -1, 12);
obj.setColor(0.7, 0.4, 0.0, 0.5);
primitives.push(obj);

//Light sources
obj = new Sphere(0, 5, 5, 0.0001);
obj.light = 1;
obj.setColor(0.9, 0.9, 0.9);
primitives.push(obj);

obj = new Sphere(-3, 5, 1, 0.0001);
obj.light = 1;
obj.setColor(0.7, 0.7, 0.7);
primitives.push(obj);

//Objects
obj = new Sphere(2, 0.8, 3, 2.5);
obj.setColor(0.7, 0.7, 1.0, 0.2, 0.2, 0.8, 1.3);
primitives.push(obj);

obj = new Sphere(-5.5, -0.5, 7, 3);
obj.setColor(0.7, 0.7, 1.0, 0.1, 0.5, 0.0, 1.3);
primitives.push(obj);

for (i = 0; i < 4; ++i) {
obj = new Sphere(-6 + (i * 3), -0.5, -2, 1);
obj.setColor(0.7, 0.7, 1.0, 0.1, 0.5, 0.0, 1.3);
primitives.push(obj);
}

for (i = 0; i < 4; ++i) {
obj = new Sphere(-4 + (i * 3), 3, -2, 1);
obj.setColor(Math.cos(i/4), 1, 1.0, 0.1, 1, 1.0, 1.3);
primitives.push(obj);
}

for (i = 0; i < 4; ++i) {
obj = new Sphere(-5 + (i * 3), -3, -2, 1);
obj.setColor(1.0, Math.cos(i/4), 1.0, 0.1, 1, 1.0, 1.3);
primitives.push(obj);
}

**for (i = 0; i < 4; ++i) {
obj = new Sphere(-2 + (i * 2), -2 + (i * 1), 0, 0.5);
obj.setColor(1.0, Math.cos(i/4), 1.0, 0.1, 1, 1.0, 1.3);
primitives.push(obj);
}
**The image generated by FMF looks like this: