New colordepth texture

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

Moderators: jromang, tomb, zcott, coordinators

New colordepth texture

Postby jeanphi » Thu Sep 08, 2011 3:47 pm

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
Developer
 
Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

Re: New colordepth texture

Postby J the Ninja » Thu Sep 08, 2011 6:56 pm

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

Material DB Admin
User avatar
J the Ninja
Developer
 
Posts: 2210
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: New colordepth texture

Postby J the Ninja » Thu Sep 08, 2011 11:26 pm

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.

fresnel-tex-tester.Scene.00001.jpg


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)

fresnel-tex-tester.Scene.00002.jpg


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

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

Material DB Admin
User avatar
J the Ninja
Developer
 
Posts: 2210
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: New colordepth texture

Postby pciccone » Thu Sep 08, 2011 11:37 pm

Great news, thank you!
User avatar
pciccone
Developer
 
Posts: 686
Joined: Wed Jan 13, 2010 11:02 am
Location: California

Re: New colordepth texture

Postby jeanphi » Fri Sep 09, 2011 2:13 am

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
Developer
 
Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

Re: New colordepth texture

Postby J the Ninja » Fri Sep 09, 2011 2:39 am

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

Material DB Admin
User avatar
J the Ninja
Developer
 
Posts: 2210
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: New colordepth texture

Postby Lord Crc » Fri Sep 09, 2011 9:01 am

It was a typo, I've pushed a fix.
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

Re: New colordepth texture

Postby jeanphi » Fri Sep 09, 2011 11:08 am

Hi,

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

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

Re: New colordepth texture

Postby Lord Crc » Fri Sep 09, 2011 11:12 am

Aww no worries, only makes you human :)
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

Re: New colordepth texture

Postby binarycortex » Sat Sep 10, 2011 8:41 pm

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
User avatar
binarycortex
Developer
 
Posts: 1501
Joined: Fri Feb 22, 2008 10:44 pm


Return to Architecture & Design

Who is online

Users browsing this forum: No registered users and 0 guests