Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Filter: Trilinear Int

Abu Nasu
Code Monkey
Join date: 17 Jun 2006
Posts: 476
12-07-2008 05:37
There are a few ideas that I've been playing with for quite awhile. One of my ideas was going no where, so I tried trilinear interpolation as a last ditch resort. Suprisingly, it made me happy.

My wiki kind of freaked out, so I hacking it up temporarily by hand. I haven't done any HTML since 3.0 first appeared, so it was a quick hack after a little jaunt to W3C. I didn't bother with anything fancy and I have no idea how it will render.

[ link deleted ]

I've only just started playing with it, so I'm still not sure as to it's possible uses. I do have a few uses, but I still have yet to start exploring other areas of potential.
Abu Nasu
Code Monkey
Join date: 17 Jun 2006
Posts: 476
12-15-2008 00:32
I fixed my wiki all by my lonesome. It was awesome because I don't know anything about these kinds of things. Nothing like playing with something for the first time and fixing it. I rock.

I really like Trilinear Int, but I have problems with RGB mode for these kinds of things. RGB was made for monitors and the rules are a bit different when it comes to blending and interpolation. So I took it to Lab mode and was even happier. Lab is based on our very own perceptions, so some things are more pleasing.

So, you start with a base template. In this case, I took one of Eloh's face templates and rearranged the data. This gave me 2 channels. Then I took one channel from a normal render for the 3rd channel. Split and Merge for Lab mode.

Oh, very happy fiddling with that. Very muchly happy.

Now, playing with changing the corners of the Lab cube was good, but it wasn't quite enough. Another thing that I have been playing with is chaotic parametrics with purpose. For example, the shapes of the cheeks. Is it possible to create a system where one template for the cheeks can create a variety of base cheek shapes?

In my quest for chaotic parametrics, or happy accidents, I've been in quite a few directions. I eventually settled on running in circles by using basic trig. Or in the case of Trilinear, a 3d vector and rotating it about a sphere using pitch, yaw, and roll.

Using this approach has made me very happy. Using a base template and a vector map, things can be easily fiddled with for a massive variety. Now, I'm not just talking about global colour balance and filling layers with different colours - I'm talking about local changes in different frequencies that is very easy to use either with chaos or purpose.

Let's say that you have a template and a colour scheme that you are happy with. Now let's say that you want to do the cheeks in a slightly different way other than just simply changing a few colours. Let's say that you want to change the lighting in such a way as to suggest a different cheek shape. Hack out a vector map in a quick-n-sleazy manner, and fiddle around. Tada. Instant variation on the cheeks using the same colours.

Despite all that, I'm going to show a simple example where the base template is the vector map.

http://tech-slop.serveit.org/wiki/images/PYR_manip01.jpg

After settling on a colour scheme, I rotated the whole damn thing just a tad and a whole new face popped out. Even though the colour scheme is the same in both of those, notice that the colours are manifested very differently, especially in the cheeks.

Now it's just a matter of other corrections. Fix some saturation, add some detail, some skin grain/noise... things like that.

I can't wait to try this with a full body template.

~does a happy dance~
Nexii Malthus
[Cubitar]Mothership
Join date: 24 Apr 2006
Posts: 400
12-15-2008 02:00
Interesting, nice job.

Now I wonder if I could try create that trilinear interpolation as a new component for my scripted user interface mhmhm...

Seems rather extremely awesome for colour schemes.
_____________________

Geometric Library, for all your 3D maths needs.
https://wiki.secondlife.com/wiki/Geometric

Creator of the Vertical Life Client
Abu Nasu
Code Monkey
Join date: 17 Jun 2006
Posts: 476
12-15-2008 06:37
I'm having so much fun playing with this thing. Bloody awesome tossing random junk into it and seeing what it spits out.

And I did add Load and Save buttons for the settings. Should save you some time if you find some schemes that you like. But there is something going on with the directory it dumps you in. Global variables are getting jumbled just a tad and I still have to hunt it down. This also affects (effects?) the Load Bitmap button. You just might find yourself having to do a little extra navigating when the dialog pops up. And watch out for file names when saving a settings file!

In that node is a PSD file in Lab mode that is the face template that I've been playing with. You might want to check the individual channels and smooth them out in places. I have no idea if it will open in any other host.

The sliders have tracking turned on, so you can watch the changes as you scrub. If these slow you down, I can add an option to turn tracking off.

http://tech-slop.serveit.org/wiki/index.php?title=Trilinear_Lab

I love this thing.
~happy dances some more~

BTW, I deleted the stuff in the original post. The junk linked to is gone.