[Radiance-general] monitor model upload in Desktop Radiance

Mohamad Tarek Araji maraji2 at uiuc.edu
Tue Mar 20 23:58:55 CET 2007


Hi Thomas,

It was easy to follow all the steps you mentioned, expect for the one responsible on how to edit the scale/position of the monitor. The reason is that I wasn’t able to convert the .rad file to .oct file. Basically, I have three .rad files for the monitor, not one. I think one of them is responsible for the positioning/scaling factor, namely VDTon.rad. When typing in the command prompt (oconv VDTon.rad > VDTon.oct), I get error massage. I even tried the option of converting the other .vdt files to .oct, but I got similar/different error massages. Is there a problem that I’m not aware of. 

I'm attaching these files for your convenience, especially if you are interested in taking a closer look.

Again, thank you so much for your help and you are much appreciated.

Respectfully,
Mohamad

---- Original message ----
>Date: Tue, 20 Mar 2007 12:11:20 -0500
>From: Thomas Seebohm <tseebohm at engmail.uwaterloo.ca>  
>Subject: Re: [Radiance-general] monitor model upload in Desktop Radiance  
>To: Radiance general discussion <radiance-general at radiance-online.org>
>
>The general procedure that I would use is to run Desktop Radiance first 
>without the monitor in the scene and then to modify the files that 
>Desktop Radiance has produced to include the .rad file for the monitor. 
>If the .rad file for the monitor represents a monitor already 
>positioned at the right location in the scene (and of the right 
>dimensions) then one simply has to add the following line in the .rif 
>file:
>scene = monitor.rad  and  to add the monitor.rad file to the list of 
>rad files that Desktop Radiance has already produced
>Assuming the file is called monitor.rad
>
>If the monitor is not scaled correctly and/or not positioned correctly, 
>then one must convert the monitor.rad file to an octree first by typing 
>the line,  oconv monitor.rad  > monitor.oct, at the  command prompt.
>Next you need to create a new .rad file with this octree to position 
>and scale the monitor  correctly. This new text file would have the 
>following lines:
>void instance monitor1
>13 monitor.oct -s 1.0000 -rz 0.00000 -rx 0.0000 -ry 0.0000 - t 0.0000 
>0.0000 0.0000
>0
>0
>
>where the number after the -s represents the scale factor
>the numbers after the -rz, -rx, -ry represent the rotations (probably 
>in degrees)
>and the three numbers after the -t represent the x,y,z translation of 
>the monitor to the right location in the scene
>This new rad file should then be included with the list of rad files 
>that Desktop Radiance has already included and, as above, the following 
>line should be added to the rif file:
>scene = monitornew.rad
>where monitornew.rad is the new rad file.
>In order to do this you will, of course, need to find out where Desktop 
>Radiance stored the files it created.
>Lastly, after you have made all these changes, you need to run Radiance 
>from the command line rather than from the Desktop Radiance menu.
>In know this sounds a bit complicated but only if you are doing it for 
>the first time. You do this by clicking on the last .bat file that 
>Desktop Radiance created.
>
>Thomas
>On Mar 20, 2007, at 9:44 AM, Gregory J. Ward wrote:
>
>> As I understand it, Mohamad is asking how to incorporate a model 
>> already in Radiance format into a Desktop Radiance scene.  There must 
>> be a back door or some trick, but I don't know anything about DR.
>>
>> -Greg
>>
>>> From: "Mark de la Fuente" <MdelaFuente at wmtao.com>
>>> Date: March 20, 2007 6:06:43 AM PDT
>>>
>>> Are you asking for a radiance to autocad geometry converter?  That I 
>>> know of, there are only tools for exporting TO radiance, not from.  
>>> You might be better off either drawing your own cad furniture or 
>>> downloading furniture off the internet.  If you use the regular 
>>> radiance, you could combine both exported cad geometry as well as 
>>> radiance geometry (from some library) into your scene.
>>>
>>> Mark
>>
>>> From: Mohamad Tarek Araji <maraji2 at uiuc.edu>
>>> Date: March 19, 2007 9:36:26 AM PDT
>>>
>>> Dear all,
>>>
>>> If at all possible, could you please help on that.
>>>
>>> I'm in the process of modeling an office space in Desktop Radiance. 
>>> Greg provided for me an accurate monitor model as part of the 
>>> furnishing to be incorporated in this space. The monitor is a .rad 
>>> file format. I didn't get the chance to insert the file in the cad 
>>> system. I asked Greg about this and he doesn’t know enough about 
>>> Desktop Radiance to advise me on how to incorporate the monitor in my 
>>> model. Is there an advice that might help. The option of accessing 
>>> the file using the furnishing folder in the radiance menu (by 
>>> uploading the monitor in the library) didn't work.
>>>
>>> Is there is an efficient way to upload the monitor into my Desktop 
>>> Radiance model.
>>>
>>> With thanks and you are much appreciated.
>>>
>>> Respectfully,
>>> Mohamad
>>
>> _______________________________________________
>> Radiance-general mailing list
>> Radiance-general at radiance-online.org
>> http://www.radiance-online.org/mailman/listinfo/radiance-general
>>
>>
>
>
>_______________________________________________
>Radiance-general mailing list
>Radiance-general at radiance-online.org
>http://www.radiance-online.org/mailman/listinfo/radiance-general


---------------------------------------
Mohamad T. Araji
Ph.D. student
School of Architecture
The University of Illinois at Urbana-Champaign  
Temple Hoyne Buell Hall, MC-621
611 Taft Dr. Champaign, IL 61820
Office Tel: (217) 333-0538, (313) 903-4484, maraji2 at uiuc.edu
-------------- next part --------------
#
# A VDT display, switched on
#

!xform -rx -10 -t 0 0 12 VDThead.rad VDTscreen_on.rad

!genbox VDT_plastic base 8 8.5 1 -r .25 | xform -t -4 -5 0

!genbox VDT_plastic base_support 2 1 9.75 | xform -t -1 -.5 1

!genbox VDT_plastic support_side .5 1 1.5 \
	| xform -t -1 -.5 10.75 -a 2 -t 1.5 0 0
-------------- next part --------------
#
# A 17" diagonal flat-panel LCD monitor head
#
# Origin is at pivot point behind screen
#

VDT_plastic cylinder pivot_center
0
0
7
	.5	0	0
	-.5	0	0
	.5

VDT_plastic ring pivot_side1
0
0
8
	.5	0	0
	1	0	0
	0	.5

VDT_plastic ring pivot_side2
0
0
8
	-.5	0	0
	-1	0	0
	0	.5

VDT_plastic polygon pivot_link.4620
0
0
12
               -0.5                 -1                0.5
               -0.5                  0                0.5
               -0.5                  0               -0.5
               -0.5                 -1               -0.5

VDT_plastic polygon pivot_link.2310
0
0
12
               -0.5                  0               -0.5
                0.5                  0               -0.5
                0.5                 -1               -0.5
               -0.5                 -1               -0.5

VDT_plastic polygon pivot_link.5137
0
0
12
                0.5                 -1                0.5
                0.5                 -1               -0.5
                0.5                  0               -0.5
                0.5                  0                0.5

VDT_plastic polygon pivot_link.6457
0
0
12
               -0.5                  0                0.5
               -0.5                 -1                0.5
                0.5                 -1                0.5
                0.5                  0                0.5

VDT_plastic polygon VDT_border.lower
0
0
12
              6.885                 -3              -5.06
             -6.885                 -3              -5.06
             -6.635              -2.75              -4.81
              6.635              -2.75              -4.81

VDT_plastic polygon VDT_border.right
0
0
12
              6.885                 -3               6.06
              6.885                 -3              -5.06
              6.635              -2.75              -4.81
              6.635              -2.75               5.81

VDT_plastic polygon VDT_border.upper
0
0
12
             -6.885                 -3               6.06
              6.885                 -3               6.06
              6.635              -2.75               5.81
             -6.635              -2.75               5.81

VDT_plastic polygon VDT_border.left
0
0
12
             -6.885                 -3              -5.06
             -6.885                 -3               6.06
             -6.635              -2.75               5.81
             -6.635              -2.75              -4.81

VDT_plastic polygon VDT_face.lower
0
0
12
             -7.635                 -3              -6.81
              7.635                 -3              -6.81
              6.885                 -3              -5.06
             -6.885                 -3              -5.06

VDT_plastic polygon VDT_face.right
0
0
12
              7.635                 -3              -6.81
              7.635                 -3               6.81
              6.885                 -3               6.06
              6.885                 -3              -5.06

VDT_plastic polygon VDT_face.upper
0
0
12
              7.635                 -3               6.81
             -7.635                 -3               6.81
             -6.885                 -3               6.06
              6.885                 -3               6.06

VDT_plastic polygon VDT_face.left
0
0
12
             -7.635                 -3              -6.81
             -6.885                 -3              -5.06
             -6.885                 -3               6.06
             -7.635                 -3               6.81

# xform -t -7.885 -3 -7.06
# genbox VDT_plastic VDT_case 15.77 2 14.12 -r .25

# VDT_plastic polygon VDT_case.dhgc
# 0
# 0
# 12
#               7.635                 -3              -6.81
#               7.635                 -3               6.81
#              -7.635                 -3               6.81
#              -7.635                 -3              -6.81

VDT_plastic polygon VDT_case.oqmk
0
0
12
             -7.885              -2.75               6.81
             -7.885              -1.25               6.81
             -7.885              -1.25              -6.81
             -7.885              -2.75              -6.81

VDT_plastic polygon VDT_case.OPNM
0
0
12
             -7.635              -1.25              -7.06
              7.635              -1.25              -7.06
              7.635              -2.75              -7.06
             -7.635              -2.75              -7.06

VDT_plastic polygon VDT_case.feij
0
0
12
              7.635                 -1              -6.81
             -7.635                 -1              -6.81
             -7.635                 -1               6.81
              7.635                 -1               6.81

VDT_plastic polygon VDT_case.plnr
0
0
12
              7.885              -2.75               6.81
              7.885              -2.75              -6.81
              7.885              -1.25              -6.81
              7.885              -1.25               6.81

VDT_plastic polygon VDT_case.SQRT
0
0
12
             -7.635              -1.25               7.06
             -7.635              -2.75               7.06
              7.635              -2.75               7.06
              7.635              -1.25               7.06

VDT_plastic cylinder VDT_case.hi
0
0
7
             -7.635              -2.75              -6.81
              7.635              -2.75              -6.81
               0.25

VDT_plastic cylinder VDT_case.hl
0
0
7
             -7.635              -2.75              -6.81
             -7.635              -2.75               6.81
               0.25

VDT_plastic cylinder VDT_case.hj
0
0
7
             -7.635              -2.75              -6.81
             -7.635              -1.25              -6.81
               0.25

VDT_plastic cylinder VDT_case.ki
0
0
7
              7.635              -1.25              -6.81
              7.635              -2.75              -6.81
               0.25

VDT_plastic cylinder VDT_case.kj
0
0
7
              7.635              -1.25              -6.81
             -7.635              -1.25              -6.81
               0.25

VDT_plastic cylinder VDT_case.ko
0
0
7
              7.635              -1.25              -6.81
              7.635              -1.25               6.81
               0.25

VDT_plastic cylinder VDT_case.mi
0
0
7
              7.635              -2.75               6.81
              7.635              -2.75              -6.81
               0.25

VDT_plastic cylinder VDT_case.ml
0
0
7
              7.635              -2.75               6.81
             -7.635              -2.75               6.81
               0.25

VDT_plastic cylinder VDT_case.mo
0
0
7
              7.635              -2.75               6.81
              7.635              -1.25               6.81
               0.25

VDT_plastic cylinder VDT_case.nj
0
0
7
             -7.635              -1.25               6.81
             -7.635              -1.25              -6.81
               0.25

VDT_plastic cylinder VDT_case.nl
0
0
7
             -7.635              -1.25               6.81
             -7.635              -2.75               6.81
               0.25

VDT_plastic cylinder VDT_case.no
0
0
7
             -7.635              -1.25               6.81
              7.635              -1.25               6.81
               0.25

VDT_plastic sphere VDT_case.h
0
0
4             -7.635              -2.75              -6.81               0.25

VDT_plastic sphere VDT_case.i
0
0
4              7.635              -2.75              -6.81               0.25

VDT_plastic sphere VDT_case.j
0
0
4             -7.635              -1.25              -6.81               0.25

VDT_plastic sphere VDT_case.k
0
0
4              7.635              -1.25              -6.81               0.25

VDT_plastic sphere VDT_case.l
0
0
4             -7.635              -2.75               6.81               0.25

VDT_plastic sphere VDT_case.m
0
0
4              7.635              -2.75               6.81               0.25

VDT_plastic sphere VDT_case.n
0
0
4             -7.635              -1.25               6.81               0.25

VDT_plastic sphere VDT_case.o
0
0
4              7.635              -1.25               6.81               0.25
-------------- next part --------------
#
# 17" LCD screen switched on
#

void colorpict VDT_screen_pattern
7 clip_r clip_g clip_b VDTdisp.pic .
	0.1008*(Px+6.635) 0.0942*(Pz+4.81)
0
0

VDT_screen_pattern alias VDT_screen_image
		VDT_screen_glow

# The following is a hack to give a glowing screen some reflectance...
void mixfunc VDT_display_on
4 VDT_screen_image VDT_screen_refl 0.97 .
0
0

VDT_display_on polygon LCD_screen
0
0
12
             -6.635              -2.75              -4.81
              6.635              -2.75              -4.81
              6.635              -2.75               5.81
             -6.635              -2.75               5.81



More information about the Radiance-general mailing list