One question on colordata

I was trying to use colordata manipulate material's color based on the
incident angle of light. But there was something wrong with my script. Can
you help me check with that?

void colordata Try
8 noop noop noop rdatafile.dat gdatafile.dat bdatafile.dat rang.cal rang
0
1 0.2 #What is the meaning of those parameters in colordata? How many of
those I need?

Try plastic a
0
0
5 0.35 0.35 0.35 0 0

r/g/bdatafile.dat are all looks like this:

1

0 90 10

0
.1
.2
.3
.4
.5
.6
.7
.8
.9

Thank you so much for your help in advance!

···

--
Simin Wang

Hi Simin,

The color won't be different if all three of your data files are the same. You could just use brightdata in that case. Without knowing what is in "rang.cal", it's difficult to even guess what this will do.

The real parameters to colordata are optional, and used by your .cal file for whatever purpose suits you.

-Greg

···

From: Simin Wang <[email protected]>
Date: December 7, 2012 5:27:40 AM PST

I was trying to use colordata manipulate material's color based on the incident angle of light. But there was something wrong with my script. Can you help me check with that?

void colordata Try
8 noop noop noop rdatafile.dat gdatafile.dat bdatafile.dat rang.cal rang
0
1 0.2 #What is the meaning of those parameters in colordata? How many of those I need?

Try plastic a
0
0
5 0.35 0.35 0.35 0 0

r/g/bdatafile.dat are all looks like this:

1

0 90 10

0
.1
.2
.3
.4
.5
.6
.7
.8
.9

Thank you so much for your help in advance!

--
Simin Wang

Dear Greg,

As for a test, rang.cal is just the original file in the library:

{ Compute incident angle in degrees (from either side) }
rang(dx,dy,dz) = 180/PI*Acos(abs(Nx*dx+Ny*dy+Nz*dz));

rgb data files are different.

I have updated my material library like that:

void colordata Try
8 noop noop noop rdatafile.dat gdatafile.dat bdatafile.dat rang.cal rang
0
0

Try plastic a
0
0
5 0.35 0.35 0.35 0 0

rdatafile.dat:

1

0 90 9

0
.1
.2
.3
.4
.5
.6
.7
.8

gdatafile.dat

1

0 90 9

0
.2
.4
.6
.8
1
.8
.6
.2

bdatafile.dat

1

0 90 9

1
.9
.8
.7
.6
.5
.4
.3
.2

Those data are just for a test. I am using DIVA to connect radiance with
rhino. The final result of this material rendering so far is just a black
screen.

Do you have any idea of that?

Best,
Simin Wang

···

On Tue, Dec 11, 2012 at 8:34 AM, Greg Ward <[email protected]> wrote:

Hi Simin,

The color won't be different if all three of your data files are the same.
You could just use brightdata in that case. Without knowing what is in
"rang.cal", it's difficult to even guess what this will do.

The real parameters to colordata are optional, and used by your .cal file
for whatever purpose suits you.

-Greg

> From: Simin Wang <[email protected]>
> Date: December 7, 2012 5:27:40 AM PST
>
> I was trying to use colordata manipulate material's color based on the
incident angle of light. But there was something wrong with my script. Can
you help me check with that?
>
> void colordata Try
> 8 noop noop noop rdatafile.dat gdatafile.dat bdatafile.dat rang.cal rang
> 0
> 1 0.2 #What is the meaning of those parameters in colordata? How many of
those I need?
>
> Try plastic a
> 0
> 0
> 5 0.35 0.35 0.35 0 0
>
> r/g/bdatafile.dat are all looks like this:
>
> 1
>
> 0 90 10
>
> 0
> .1
> .2
> .3
> .4
> .5
> .6
> .7
> .8
> .9
>
> Thank you so much for your help in advance!
>
> --
> Simin Wang

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

--
Simin Wang
M.Arch 1, 2nd Year Student
Architecture, AAP, Cornell University
LinkIn: Simin Wang - Founder, CEO - 琢磨琢磨ZOMOZOMO | LinkedIn

It is probable that you have multiple errors. Your rays are probably not even striking the surface with your plastic material, since the rangl.cal file you are using defines a function rather than a variable for "rang", which should produce an error if it is ever called.

Do you even have a surface defined in your scene? Is this all there is? You really need to spend some time on the basics in Radiance and show us your complete files or there is not enough information to help you.

-Greg

···

From: Simin Wang <[email protected]>
Date: December 10, 2012 6:57:28 PM PST

Dear Greg,

As for a test, rang.cal is just the original file in the library:

{ Compute incident angle in degrees (from either side) }
rang(dx,dy,dz) = 180/PI*Acos(abs(Nx*dx+Ny*dy+Nz*dz));

rgb data files are different.

I have updated my material library like that:

void colordata Try
8 noop noop noop rdatafile.dat gdatafile.dat bdatafile.dat rang.cal rang
0
0

Try plastic a
0
0
5 0.35 0.35 0.35 0 0

rdatafile.dat:

1

0 90 9

0
.1
.2
.3
.4
.5
.6
.7
.8

gdatafile.dat

1

0 90 9

0
.2
.4
.6
.8
1
.8
.6
.2

bdatafile.dat

1

0 90 9

1
.9
.8
.7
.6
.5
.4
.3
.2

Those data are just for a test. I am using DIVA to connect radiance with rhino. The final result of this material rendering so far is just a black screen.

Do you have any idea of that?

Best,
Simin Wang

On Tue, Dec 11, 2012 at 8:34 AM, Greg Ward <[email protected]> wrote:
Hi Simin,

The color won't be different if all three of your data files are the same. You could just use brightdata in that case. Without knowing what is in "rang.cal", it's difficult to even guess what this will do.

The real parameters to colordata are optional, and used by your .cal file for whatever purpose suits you.

-Greg