New colordepth texture

Discussion related to the implementation of new features & algorithms to the Core Engine.

Moderators: jromang, tomb, zcott, coordinators

New colordepth texture

Hi,

There's a new "colordepth" color texture to compute the absorption property from a depth in meter (fixed float) and the resulting filter color (texturable color).
Code: Select all
Texture "absorption_color" "color" "colordepth" "float depth" [1] "color Kt" [0.1 0.5 0.01]

Jeanphi
jeanphi

Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

Re: New colordepth texture

Yay, thanks jeanphi! Hopefully this will make exporter work a little easier, plus now we can feed other color textures into the color @ depth formula.
-Jason

J the Ninja

Posts: 2210
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: New colordepth texture

The calculation seems to be off with this. The monkey on the left is using the new texture, the one on the right is getting its absorption color from luxblend25's color at depth selector (color is interpolated by the exporter). These two are the unscaled suzanne primitive, so the bounding box dimensions are 2.734mx1.969mx1.703m.

Both color at depth in the exporter and the texture are set for (0.7, 0.8, 0.9) @ 50cm.

EDIT: Here's with the colordepth texture scaled by .002 (this took a bit of trial and error to find the right number, .01 is much darker, .001 is slightly lighter)

It seems to come up with the correct hue, but the absorption is 500x too strong.

Btw, both of them are also using the new fresnel mix for textured IOR.
-Jason

J the Ninja

Posts: 2210
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: New colordepth texture

Great news, thank you!

pciccone

Posts: 686
Joined: Wed Jan 13, 2010 11:02 am
Location: California

Re: New colordepth texture

Hi,

Can you give me your input values so that I can check what's going on? Have you converted the depth to meters?

Jeanphi
jeanphi

Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

Re: New colordepth texture

Red 0.7
Green 0.8
Blue 0.9
Depth 0.5 (50cm)

This zip has the .blend and scene files: http://dl.dropbox.com/u/1706676/Color-depth.zip
-Jason

J the Ninja

Posts: 2210
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: New colordepth texture

It was a typo, I've pushed a fix.
May contain traces of nuts.

Lord Crc

Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

Re: New colordepth texture

Hi,

Indeed! That's way too many typos from me, sorry folks. I'll try to test better my changes next time.

Jeanphi
jeanphi

Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

Re: New colordepth texture

Aww no worries, only makes you human
May contain traces of nuts.

Lord Crc

Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

Re: New colordepth texture

jeanphi wrote:Hi,

Indeed! That's way too many typos from me, sorry folks. I'll try to test better my changes next time.

Jeanphi

Lord Crc wrote:Aww no worries, only makes you human

And knowing you are an actual human as opposed to some anthropomorphized artificial intelligence running simultaneously on every computer hooked up to the internet makes you that much more awesome.
Competition Coordinator.
Current Competition: Math is Beautiful / Abstract Wallpaper

Member of the first official jeanphi-fan club

binarycortex

Posts: 1501
Joined: Fri Feb 22, 2008 10:44 pm