Totte
![]() |
||||||
Posted: June 9, 2010 1:11 pm | ||||||
StevieJ
![]() |
Who??? What??? Where??? .....
![]()
Oh.....had me going for a moment there..... ![]() ![]() Steve
"Buzzards gotta eat...same as worms..." - Clint :) |
|||||
Posted: June 9, 2010 1:58 pm | ||||||
Totte
![]() |
||||||
Posted: June 9, 2010 1:59 pm | ||||||
Totte
![]() |
function get_sample(x, y)
local cr = (offsety-y)/0.25 local ci = (offsetx-x)/0.5 local zi = 0.0 local zr = 0.0 local i = 0 while 1 do i = i+1 local temp = zr * zi local zr2 = zr*zr local zi2 = zi*zi zr = zr2-zi2+cr zi = temp+temp+ci if (zi2+zr2 > BAILOUT) then return 0,0,0,0 end if (i > MAX_ITERATIONS) then local r, g, b, a = get_sample_map(zi2, zr2, COLOR) return r,g,b,1 end end end; - I never expected the Spanish inquisition |
|||||
Posted: June 9, 2010 1:59 pm | ||||||
Totte
![]() |
Steve - the Lua-code was ripped from the net, the fractals was made in ff!
here it is fractals.ffxml - I never expected the Spanish inquisition |
|||||
Posted: June 9, 2010 2:00 pm | ||||||
Vladimir Golovin
Administrator |
Totte, have you seen our Mandelbrot example?
http://www.filterforge.com/download/b...pting.html |
|||||
Posted: June 9, 2010 2:01 pm | ||||||
Totte
![]() |
Vlad, nope, I wanted to try it myself
![]() - I never expected the Spanish inquisition |
|||||
Posted: June 9, 2010 2:02 pm | ||||||
StevieJ
![]() |
Damn!!! Now I have to get into it.....might as well hardwire myself to the FF program and be fed intravenously.....
![]() ![]() Steve
"Buzzards gotta eat...same as worms..." - Clint :) |
|||||
Posted: June 9, 2010 2:14 pm | ||||||
Redcap
![]() |
If you know Lua script, FF can do that for you... ![]() |
|||||
Posted: June 9, 2010 2:55 pm | ||||||
Totte
![]() |
From the look of that picture, RGB is already flowing in your veins... - I never expected the Spanish inquisition |
|||||
Posted: June 9, 2010 3:03 pm | ||||||
Paul Wolfe |
I took a look at Vladimir's Mandelbrot example went into the code (Map Script component) and changed the Function
from this: function prepare() radius_sq = 4 MAX_ITERATION = 50 end; to this: prepare() radius_sq = 100 MAX_ITERATION = 500 end; I rendered at 2000 X 2000 pixels and the detail is just incredible. Now it took around 5 minutes to render on a quad computer, but worth it. I have attached this render scaled down to 600 X 600 to give you an idea, but it looses a lot in the scaling. ![]() |
|||||
Posted: June 9, 2010 3:55 pm | ||||||
StevieJ
![]() |
Well, looks like I'm going to have to learn it.....can't let you guys have all the fun..... ![]() ![]() I'm going to miss the good old days.....randomly connecting components without a clue.....submitting filters if I happenned to stumble acrossed something cool.....ahhh, the memories..... ![]() ![]()
Want some screwy RGB.....ya come to StevieJ..... ![]() ![]() Paul, nice one!!! ![]() ![]() ![]() ![]() Steve
"Buzzards gotta eat...same as worms..." - Clint :) |
|||||
Posted: June 9, 2010 4:36 pm | ||||||
Paul Wolfe |
Thanks Stevie, by the way I don't understand the Scripting either. Just playing around with the numbers. I do have an understanding of Visual Basic and some "C" but hope this helps to learn this Scripting Language. There are just toooooo many Programing Languages to learn and not enough time.
|
|||||
Posted: June 9, 2010 4:55 pm | ||||||
StevieJ
![]() |
Hey Paul.....I learned C++ a while back, but haven't touched it in over 10 years....but I have done more recent work in AutoLisp with AutoCad....so Lua shouldn't be too difficult to get into.....guess I've become spoiled with just plugging components together, setting parameters, and voila!!!
![]() ![]() Steve
"Buzzards gotta eat...same as worms..." - Clint :) |
|||||
Posted: June 9, 2010 8:01 pm | ||||||
Skybase
![]() |
Is it just a matter of time before we start getting... more fractals in FilterForge?
Paul Bourke has great references if you're interested. http://local.wasp.uwa.edu.au/~pbourke/fractals/ |
|||||
Posted: June 9, 2010 10:38 pm | ||||||
Totte
![]() |
I just got an idea from the Berestroika sample, where sprites are stored as an array of pixeldata.
Maybe I should write a little tool that takes a .png-image and converts it into a map[] array to paste into a script component. Now we a possibility to have prefabricated bomber particles... Anyone interested in such a little hack? - I never expected the Spanish inquisition |
|||||
Posted: June 10, 2010 6:17 am | ||||||
Sphinx.
![]() |
I was kinda going in that direction, writing the aux routines needed for that, but FF ppl didn't like that..lol
I was aiming at creating an unsafe script that would dump the table script code to a file or something. But I'm waiting to see if they come up with a solution to the memory consumption overhead |
|||||
Posted: June 10, 2010 6:25 am | ||||||
Vladimir Golovin
Administrator |
Hint: I think you can also do vectors using this approach. Store an array of vertices with their bezier handles, and provide a sampling function which either just hit-tests the spline and returns true or false, or returns the distance from the sample point to the nearest point on the spline -- this will allow you to do true vector-based bevels. |
|||||
Posted: June 10, 2010 6:31 am | ||||||
Totte
![]() |
Vlad: yeah, the opportunities are endless
![]() - I never expected the Spanish inquisition |
|||||
Posted: June 10, 2010 7:04 am | ||||||
ThreeDee
![]() |
Good tip. I might try this out. Investigating this possibility, I find that apparently you can't get the distance to a bezier curve directly (mathematically), but you have to do calculate the distance to each line segment that approximates the curve and pick the smallest distance. That small inconvenience aside, this would open up some interesting new possibilities, such as the one you mention, or for instance providing bezier curve control for creating shapes to lathe. Not to mention creating types of rounded shapes that were not possible before... |
|||||
Posted: June 20, 2010 12:03 pm |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,711 Registered Users
+18 new in 30 days!
153,531 Posts
+36 new in 30 days!
15,347 Topics
+72 new in year!
17 unregistered users.