To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 1412
1411  |  1413
Subject: 
lgeo library
Newsgroups: 
lugnet.cad.ray
Date: 
Sun, 1 Sep 2002 00:46:09 GMT
Viewed: 
632 times
  
i don't think that i'm getting the lgeo library to work.  I check -l when i
convert the file, and render with the with a command line for the lgeo
library, it errors at the third line below that starts #macros.  any
suggestions.  I'm just getting started with this so its probably something
that i'm doing wrong.

-tk

// Color manipulation macros

// Takes Hue value as input, returns RGB vector.
#macro CH2RGB (H)
   #local H = mod(H, 360);
   #local H = (H < 0 ? H+360 : H);
   #switch (H)
      #range (0, 120)
         #local R = (120-  H) / 60;
         #local G = (  H-  0) / 60;
         #local B = 0;
      #break
      #range (120, 240)
         #local R = 0;
         #local G = (240-  H) / 60;
         #local B = (  H-120) / 60;
      #break
      #range (240, 360)
         #local R = (  H-240) / 60;
         #local G = 0;
         #local B = (360-  H) / 60;
      #break
   #end
   <min(R,1), min(G,1), min(B,1)>
#end



Message has 2 Replies:
  Re: lgeo library
 
(...) Travis read the following post: (URL) Help Desk (22 years ago, 1-Sep-02, to lugnet.cad.ray)
  Re: lgeo library
 
success. thanks for all you guy's help. Now if i could find some tutorials on lighting and camera. check out the side by side comparison that I posted. (URL) (22 years ago, 2-Sep-02, to lugnet.cad.ray)

11 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR