[Radiance-general] One question on colordata

Simin Wang sw629 at cornell.edu
Mon Dec 10 18:57:28 PST 2012


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 <gregoryjward at gmail.com> 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 <sw629 at cornell.edu>
> > 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
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general
>



-- 
Simin Wang
M.Arch 1, 2nd Year Student
Architecture, AAP, Cornell University
LinkIn: http://www.linkedin.com/in/siminwang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20121211/77cd2ccf/attachment.html>


More information about the Radiance-general mailing list