[Radiance-general] One question on colordata

Greg Ward gregoryjward at gmail.com
Thu Dec 13 09:14:59 PST 2012


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 <sw629 at cornell.edu>
> 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 <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
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20121213/72a130e9/attachment.html>


More information about the Radiance-general mailing list