Hallo and thanks for the answers.
First @Giugi I did it exactly like you said:
- I calculated the ratio
#getinfo -d solarcell_pattern.pic | rcalc -e "$1=$5/$3" -> 0.604747162
#ratio needs to be bigger then one
#-> ratio = 1/0.604747162 = 1.653583618
- I set the parameters in the following way
Ru = 1, Rv = 1.653583618
Tu,v = 0
Su,v = 1
void colorpict solarcell_pattern
7 red green blue solarcell_pattern.pic . A1*((Lu-A3)/A5-floor((Lu-A3)/A5)) A2*((Lv-A4)/A6-floor((Lv-A4)/A6))
0
6 1 1.653583618 0 0 1 1
# Ru Rv Tu Tv Su Sv
- I created the mesh with obj2mesh and then generated the picture. But the result was not the result I wanted .
I put the files I used to generate this picture in Dropbox - Radiance - UV-Mapping - Simplify your life.
I also looked at your example but when I render your files with rad the result is a totall yellow box. Is that what you wanted?
And I now understand the advantages of local coordinates but my problem is that I’ve got a obj-File with hundreds of rectangles with diffrent orientations and with addiational code I can calculate those orientations. This is why I wanted to know how I can do everything manually. And I’m still not quite sure how to realise:
It would be better to have your materials defined in your object file
Greeting Philip