Converting your RGB colour To NK

General questions about Indigo, the scene format, rendering etc...
tinman999
Posts: 23
Joined: Tue Apr 17, 2007 1:29 pm
Location: UK
Contact:

Converting your RGB colour To NK

Post by tinman999 » Wed May 09, 2007 12:25 pm

Here is a win32 program that convert most of the RGB colour to NK

Image

Image
http://www.renderlight.co.uk/files/rgbtonk.exe

Just enter the rgb value and press 'To NK' button. The result nk data should be display in the big edit box.

Open Notepad, paste (the data is automatically copy to clipboard, if not just right click on the big edit box, select all and copy)
and save :)
Last edited by tinman999 on Wed May 09, 2007 2:05 pm, edited 1 time in total.

User avatar
joegiampaoli
Posts: 837
Joined: Thu Oct 05, 2006 7:12 am
Location: San Miguel de Allende-MEXICO
Contact:

Post by joegiampaoli » Wed May 09, 2007 1:35 pm

:shock: :shock: :shock:
Oh wow, christmas balls!!!
Joe Giampaoli
Never tie a ship to a single anchor, nor life to a single hope
My Indigo Gallery

User avatar
manitwo
Posts: 1029
Joined: Wed Jul 05, 2006 4:50 am
Location: Tirol - Austria

Post by manitwo » Wed May 09, 2007 2:42 pm

cool, thanks tinman! :D

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Post by CTZn » Wed May 09, 2007 5:14 pm

Looks interesting, thanks !
obsolete asset

mrCarnivore
Posts: 517
Joined: Sun Mar 04, 2007 6:20 am
Location: Stuttgart, Germany

Post by mrCarnivore » Wed May 09, 2007 7:03 pm

What's all this recent fuss about custom nk materials?

What's the point of setting a single colour, then calculating the nk values for it and using it for a material instead of a phong material with that specific colour?

tinman999
Posts: 23
Joined: Tue Apr 17, 2007 1:29 pm
Location: UK
Contact:

Post by tinman999 » Wed May 09, 2007 8:00 pm

mrCarnivore wrote:What's all this recent fuss about custom nk materials?

What's the point of setting a single colour, then calculating the nk values for it and using it for a material instead of a phong material with that specific colour?
The main reason is to provide the user with a start point to create custom nk.

Depending on the implementation of the fresnel equation (unpolarised or polarised light, approximation or using the actual fresnel equation. Indigo's phong model used approximation possibly schlick's approximation to the fresnel equation) refraction index is needed instead of the reflectance values. Approximate fresnel equation can't simulate the sightly different colour changes when the media surrounding the object have ior <> 1 or polarisation effect.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed May 09, 2007 11:35 pm

could you add a reversed version?
I'd like to use nk-ish things with SSS or difuse (which actually should be possible by using Exp 0-1) or st. like that :D

AND it would be great, if you'd add the IoR, too.

Those balls look great, already!

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Post by Zom-B » Thu May 10, 2007 12:58 am

great work tinman :D

would it be possible to code some kind of fresnel control to this nice little Program to enable effects like VOID.nk got:

Image

control over the fresnel effect would make some nice (basic) Car Paint possible, and more...
polygonmanufaktur.de

User avatar
zsouthboy
Posts: 1395
Joined: Fri Oct 13, 2006 5:12 am

Post by zsouthboy » Thu May 10, 2007 2:41 am

hey, void.nk is pretty!

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Thu May 10, 2007 2:42 am

you didn't know void? :lol:

Deus
Posts: 336
Joined: Sun Feb 04, 2007 3:47 am

Post by Deus » Thu May 10, 2007 3:22 am

I slept with Void.nk plenty of times.

Pretty on the outside but empty inside

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Thu May 10, 2007 4:29 am

:roll:

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Thu May 10, 2007 4:57 am

Deus wrote:I slept with Void.nk plenty of times.

Pretty on the outside but empty inside
lol
..a good one 8)

sth
Posts: 57
Joined: Mon Mar 05, 2007 1:55 am

Post by sth » Thu May 10, 2007 5:37 am

hmm... very nice and useful thing, but i see it creates only first column of numbers, what about the second? to get the same color should it be order-inversed first column or sth other?

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Thu May 10, 2007 5:46 am

that's what he already said...
2nd = IoR. If it isn't set, there are two possibilitys (dunno, which one's correct...):
a) you can set it by hand
b) there is a standard setting...

Post Reply
55 posts

Who is online

Users browsing this forum: No registered users and 105 guests