Betis
![]() |
Workin on a heavy-sampleage DOF script. Due to the nature of per-pixel scripting this is actually the opposite of how DOF works in reality, but sometimes it looks good anyway. Anyway my point is I'm trying to compile this and all it gives me is "syntax error" at the bottom where it the second-to-last line. I assume it's with all the breaks and loops that I havne't mastered in LUA yet.
Edit: I took of the semicolons at the end of the if statements/ for loops but I get the same problem Roses are #FF0000
Violets are #0000FF All my base are belong to you. |
|||
Posted: April 23, 2011 7:11 pm | ||||
Sphinx.
![]() |
Post the filter and I'll take a look at it
![]() |
|||
Posted: April 26, 2011 2:12 am | ||||
Betis
![]() |
I would suggest loading an image and it's respective depth map to get a clearer understanding of the previous nodes
![]() Faux Lens Blur.ffxml Roses are #FF0000
Violets are #0000FF All my base are belong to you. |
|||
Posted: April 26, 2011 8:39 am | ||||
Betis
![]() |
Okay I've been working on it and this one compiles but gives unexpected results, what am I not seeing?
Roses are #FF0000
Violets are #0000FF All my base are belong to you. |
|||
Posted: April 26, 2011 8:38 pm | ||||
Sphinx.
![]() |
The problem is in the inner loop - your "normalization" part is not correct, and the conditional exit caused discontinuities, so I removed that.
I cleaned up the script and moved various calculations to more appropriate places (i.e. out of the the inner loop ![]() I don't see weird cutoff artifacts now, but the displacement could use some work. Note that I bypassed all the threshold stuff as I don't understand its purpose ![]() Faux Lens Blur - Sphinx.ffxml |
|||
Posted: April 27, 2011 2:28 am | ||||
Betis
![]() |
I've been working on it today and thank you so much for your help sphinx! I'm good with C++ and java but this lua syntax is definitely weird
![]() Here's a sample image at maximum sampling and maximum macroness ![]() It took 2.5 minutes (Looks like I can fix up some things) ![]() Roses are #FF0000
Violets are #0000FF All my base are belong to you. |
|||
Posted: April 27, 2011 7:41 pm | ||||
Sphinx.
![]() |
could you post your photo sample set?
|
|||
Posted: April 28, 2011 3:53 am | ||||
Betis
![]() |
||||
Posted: April 29, 2011 6:57 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,533 Posts
+38 new in 30 days!
15,348 Topics
+73 new in year!
27 unregistered users.