import from other software

Hello all:

Besides using command, is there any third party software that can help
import the current Radiance?

Thank you in advance.
jia

Hi Jia,

What are you trying to convert from? What software are you modeling with?

-Jack

···

--
# Jack de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction

Jia Hu wrote:

Hello all:
Besides using command, is there any third party software that can help import the current Radiance?
Thank you in advance.
jia
------------------------------------------------------------------------

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Thanks for your prompt reply.

I use Revit Architecture, AutoCAD, and SketchUp. The first one is my
priority. Is it possible to import from Revit?

Jia

···

On Wed, Apr 28, 2010 at 2:33 PM, Jack de Valpine <[email protected]> wrote:

Hi Jia,

What are you trying to convert from? What software are you modeling with?

-Jack

--
# Jack de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction

Jia Hu wrote:

Hello all:
Besides using command, is there any third party software that can help
import the current Radiance?
Thank you in advance.
jia
------------------------------------------------------------------------

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Hi Jia,

Here are a few options:

    * revit -> fbx - then convert fbx to obj via fbx converter
    * revit -> dwg - then convert via something like Polytrans or NuGraf
    * revit -> dwg - then use torad autolisp export (this might need
      updating though to function in current autocad)
    * sketchup -> obj - via sketchup pro
    * skectup -> rad - via su2rad

-Jack

···

--
# Jack de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction

Jia Hu wrote:

Thanks for your prompt reply.
I use Revit Architecture, AutoCAD, and SketchUp. The first one is my priority. Is it possible to import from Revit?
Jia

On Wed, Apr 28, 2010 at 2:33 PM, Jack de Valpine <[email protected] > <mailto:[email protected]>> wrote:

    Hi Jia,

    What are you trying to convert from? What software are you
    modeling with?

    -Jack

    -- # Jack de Valpine
    # president
    #
    # visarc incorporated
    # http://www.visarc.com <http://www.visarc.com/>
    #
    # channeling technology for superior design and construction

    Jia Hu wrote:

        Hello all:
         Besides using command, is there any third party software that
        can help import the current Radiance?
         Thank you in advance.
        jia
        ------------------------------------------------------------------------

        _______________________________________________
        Radiance-general mailing list
        [email protected]
        <mailto:[email protected]>
        http://www.radiance-online.org/mailman/listinfo/radiance-general
         
    _______________________________________________
    Radiance-general mailing list
    [email protected]
    <mailto:[email protected]>
    http://www.radiance-online.org/mailman/listinfo/radiance-general

------------------------------------------------------------------------

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Thank you, Jack.I will take a look at it.

Jia

···

On Wed, Apr 28, 2010 at 2:56 PM, Jack de Valpine <[email protected]> wrote:

Hi Jia,

Here are a few options:

  * revit -> fbx - then convert fbx to obj via fbx converter
  * revit -> dwg - then convert via something like Polytrans or NuGraf
  * revit -> dwg - then use torad autolisp export (this might need
    updating though to function in current autocad)
  * sketchup -> obj - via sketchup pro
  * skectup -> rad - via su2rad

-Jack

--
# Jack de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction

Jia Hu wrote:

Thanks for your prompt reply.
I use Revit Architecture, AutoCAD, and SketchUp. The first one is my
priority. Is it possible to import from Revit?
Jia

On Wed, Apr 28, 2010 at 2:33 PM, Jack de Valpine <[email protected]<mailto: >> [email protected]>> wrote:

   Hi Jia,

   What are you trying to convert from? What software are you
   modeling with?

   -Jack

   -- # Jack de Valpine
   # president
   #
   # visarc incorporated
   # http://www.visarc.com <http://www.visarc.com/>

   #
   # channeling technology for superior design and construction

   Jia Hu wrote:

       Hello all:
        Besides using command, is there any third party software that
       can help import the current Radiance?
        Thank you in advance.
       jia

------------------------------------------------------------------------

       _______________________________________________
       Radiance-general mailing list
       [email protected]
       <mailto:[email protected]>

       http://www.radiance-online.org/mailman/listinfo/radiance-general

   _______________________________________________
   Radiance-general mailing list
   [email protected]
   <mailto:[email protected]>

   http://www.radiance-online.org/mailman/listinfo/radiance-general

------------------------------------------------------------------------

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Has anybody tried sweethome3d?

http://www.sweethome3d.eu/faq.jsp

It exports to obj with a corresponding mat file. Apart from that, I'm not
clear on its abilities.

···

From: [email protected]
[mailto:[email protected]] On Behalf Of Jia Hu
Sent: 28 April 2010 21:04
To: Radiance general discussion
Subject: Re: [Radiance-general] import from other software

Thank you, Jack.I will take a look at it.

Jia

On Wed, Apr 28, 2010 at 2:56 PM, Jack de Valpine <[email protected]> wrote:

Hi Jia,

Here are a few options:

  * revit -> fbx - then convert fbx to obj via fbx converter
  * revit -> dwg - then convert via something like Polytrans or NuGraf
  * revit -> dwg - then use torad autolisp export (this might need
    updating though to function in current autocad)
  * sketchup -> obj - via sketchup pro
  * skectup -> rad - via su2rad

-Jack

--
# Jack de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com <http://www.visarc.com/>
#
# channeling technology for superior design and construction

Jia Hu wrote:

Thanks for your prompt reply.
I use Revit Architecture, AutoCAD, and SketchUp. The first one is my
priority. Is it possible to import from Revit?
Jia

On Wed, Apr 28, 2010 at 2:33 PM, Jack de Valpine <[email protected] <mailto:[email protected]>> wrote:

   Hi Jia,

   What are you trying to convert from? What software are you
   modeling with?

   -Jack

   -- # Jack de Valpine
   # president
   #
   # visarc incorporated

   # http://www.visarc.com <http://www.visarc.com/>
<http://www.visarc.com/>

   #
   # channeling technology for superior design and construction

   Jia Hu wrote:

       Hello all:
        Besides using command, is there any third party software that
       can help import the current Radiance?
        Thank you in advance.
       jia

------------------------------------------------------------------------

       _______________________________________________
       Radiance-general mailing list
       [email protected]

       <mailto:[email protected]>

       http://www.radiance-online.org/mailman/listinfo/radiance-general
        
   _______________________________________________
   Radiance-general mailing list
   [email protected]

   <mailto:[email protected]>

   http://www.radiance-online.org/mailman/listinfo/radiance-general

------------------------------------------------------------------------

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Our office uses Autodesk Ecotect mostly because of its ability to handle
illumination grids, it is also well suited to export to Radiance. However it
isn't the best modeling program, so typically modeling in other programs and
importing is one of the best options.

When we bring in Revit models we import them as a .dwg.

But when we bring in a Sketchup model it is imported as a .obj.

Most architectural models have more detail than what is needed for daylight
analysis or renderings, so alter the models within their native modeling
program (Revit, Sketchup) first while thinking of how Ecotect/Radiance will
handle it. Good luck.

···

From: [email protected]
[mailto:[email protected]] On Behalf Of Chris
Yates
Sent: Friday, April 30, 2010 8:39 AM
To: 'Radiance general discussion'
Subject: RE: [Radiance-general] import from other software

Has anybody tried sweethome3d?

http://www.sweethome3d.eu/faq.jsp

It exports to obj with a corresponding mat file. Apart from that, I'm not
clear on its abilities.

From: [email protected]
[mailto:[email protected]] On Behalf Of Jia Hu
Sent: 28 April 2010 21:04
To: Radiance general discussion
Subject: Re: [Radiance-general] import from other software

Thank you, Jack.I will take a look at it.

Jia

On Wed, Apr 28, 2010 at 2:56 PM, Jack de Valpine <[email protected]> wrote:

Hi Jia,

Here are a few options:

  * revit -> fbx - then convert fbx to obj via fbx converter
  * revit -> dwg - then convert via something like Polytrans or NuGraf
  * revit -> dwg - then use torad autolisp export (this might need
    updating though to function in current autocad)
  * sketchup -> obj - via sketchup pro
  * skectup -> rad - via su2rad

-Jack

--
# Jack de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com <http://www.visarc.com/>
#
# channeling technology for superior design and construction

Jia Hu wrote:

Thanks for your prompt reply.
I use Revit Architecture, AutoCAD, and SketchUp. The first one is my
priority. Is it possible to import from Revit?
Jia

On Wed, Apr 28, 2010 at 2:33 PM, Jack de Valpine <[email protected] <mailto:[email protected]>> wrote:

   Hi Jia,

   What are you trying to convert from? What software are you
   modeling with?

   -Jack

   -- # Jack de Valpine
   # president
   #
   # visarc incorporated

   # http://www.visarc.com <http://www.visarc.com/>
<http://www.visarc.com/>

   #
   # channeling technology for superior design and construction

   Jia Hu wrote:

       Hello all:
        Besides using command, is there any third party software that
       can help import the current Radiance?
        Thank you in advance.
       jia

------------------------------------------------------------------------

       _______________________________________________
       Radiance-general mailing list
       [email protected]

       <mailto:[email protected]>

       http://www.radiance-online.org/mailman/listinfo/radiance-general
        
   _______________________________________________
   Radiance-general mailing list
   [email protected]

   <mailto:[email protected]>

   http://www.radiance-online.org/mailman/listinfo/radiance-general

------------------------------------------------------------------------

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Hello:

First thank all of you for the replies.

I tried some ways mentioned, I am confused with some of the methods.

*(1)* When I export Revit to fbx and then use FBX converter (provided by
autodesk) to convert fbx to .obj file. The .mtl file just contains the name
of materials without any other data such as RGB, or reflectance.

Also I tried to use: obj2rad -n objfile.obj > obj.data . I found all the
materials in .obj file should be defined. Some of them are as follows:

"Basic_Wall_Typ__Partition_Wall__188653_"
"Basic_Wall_Typ__Partition_Wall__188781_"
"Basic_Wall_Typ__Partition_Wall__188881_"
"Basic_Wall_Typ__Partition_Wall__188971_"
"Basic_Wall_Typ__Partition_Wall__189016_"
...... too long

Should I define so many materials? Maybe I should delete some of them if
they use the same materials.

*(2)* I am stuck with the command obj2rad. I just know some basic knowledge
of .obj file such as its basic structure, the basic command of obj file.
But I can not follow the man page of obj2rad, such as mapping rule file.

Is that right the mapping rule file in this command contained the texture
and materials (like those in Radiance) or some images? Should I write
up the mapping file by myself or just find from somewhere? I have no idea
of what the mapping file is so, Could someone send me one or two
small examples of map files or others related to this command?

*(3)* When the building model is complicated, is that reliable for this
command? I mean whether it makes mistakes about the surface normals. Is
there any point that should be noted when using export Revit file to
Radiance?

*(4)* If I export .dwg, the torad autolisp (
http://www.schorsch.com/download/torad/) seems to be used for AutoCAD
R11-14. If I use Polytrans, for example, should I convert obj file? Is there
any better way?

*(5) *I do not have a SketchUp pro, so I just browsed the su2rad for free
version of SketchUp, it seems easy to understand.

Sorry for so many confusions and questions.

As always, Thank you all.

Jia

···

On Fri, Apr 30, 2010 at 10:50 AM, Nick Hubof <[email protected]> wrote:

Our office uses Autodesk Ecotect mostly because of its ability to handle
illumination grids, it is also well suited to export to Radiance. However it
isn’t the best modeling program, so typically modeling in other programs and
importing is one of the best options.

When we bring in Revit models we import them as a .dwg.

But when we bring in a Sketchup model it is imported as a .obj.

Most architectural models have more detail than what is needed for daylight
analysis or renderings, so alter the models within their native modeling
program (Revit, Sketchup) first while thinking of how Ecotect/Radiance will
handle it. Good luck.

*From:* [email protected] [mailto:
[email protected]] *On Behalf Of *Chris Yates
*Sent:* Friday, April 30, 2010 8:39 AM
*To:* 'Radiance general discussion'
*Subject:* RE: [Radiance-general] import from other software

Has anybody tried sweethome3d?

http://www.sweethome3d.eu/faq.jsp

It exports to obj with a corresponding mat file. Apart from that, I’m not
clear on its abilities.

*From:* [email protected] [mailto:
[email protected]] *On Behalf Of *Jia Hu
*Sent:* 28 April 2010 21:04
*To:* Radiance general discussion
*Subject:* Re: [Radiance-general] import from other software

Thank you, Jack.I will take a look at it.

Jia

On Wed, Apr 28, 2010 at 2:56 PM, Jack de Valpine <[email protected]> wrote:

Hi Jia,

Here are a few options:

  * revit -> fbx - then convert fbx to obj via fbx converter
  * revit -> dwg - then convert via something like Polytrans or NuGraf
  * revit -> dwg - then use torad autolisp export (this might need
    updating though to function in current autocad)
  * sketchup -> obj - via sketchup pro
  * skectup -> rad - via su2rad

-Jack

--
# Jack de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction

Jia Hu wrote:

Thanks for your prompt reply.
I use Revit Architecture, AutoCAD, and SketchUp. The first one is my
priority. Is it possible to import from Revit?
Jia

On Wed, Apr 28, 2010 at 2:33 PM, Jack de Valpine <[email protected]<mailto: > [email protected]>> wrote:

   Hi Jia,

   What are you trying to convert from? What software are you
   modeling with?

   -Jack

   -- # Jack de Valpine
   # president
   #
   # visarc incorporated

   # http://www.visarc.com <http://www.visarc.com/>

   #
   # channeling technology for superior design and construction

Jia.

I don't have any experience with a Revit based process. Below are just
a few general remarks to obj2rad (and CAD import in general).

(1) When I export Revit to fbx and then use FBX converter (provided by
autodesk) to convert fbx to .obj file. The .mtl file just contains the name
of materials without any other data such as RGB, or reflectance.

That is not necessarily a bad thing. The RGB values would almost
certainly be based on screen RGB values which have to be converted for
Radiance. It's better to define a set of materials for Radiance and
assign colors/materials with the same name in your CAD application.
After you have converted the geometry (material data not necessary)
you add your Radiance materials file to the scene and all polygons
will pick up the assigned materials with correct definition.

Also I tried to use: obj2rad -n objfile.obj > obj.data . I found all the
materials in .obj file should be defined. Some of them are as follows:

"Basic_Wall_Typ__Partition_Wall__188653_"
"Basic_Wall_Typ__Partition_Wall__188781_"
"Basic_Wall_Typ__Partition_Wall__188881_"
"Basic_Wall_Typ__Partition_Wall__188971_"
"Basic_Wall_Typ__Partition_Wall__189016_"
...... too long

Should I define so many materials? Maybe I should delete some of them if
they use the same materials.

The idea of the -n option is to give you an understanding of the
objfile structure. You can use the output to define a mapping file
which, for example, assigns a new material to each group in the file.
If there are any useful groups or objects in the file depends on the
way the converter works.

(2) I am stuck with the command obj2rad. I just know some basic knowledge of
.obj file such as its basic structure, the basic command of obj file. But I
can not follow the man page of obj2rad, such as mapping rule file.

Is that right the mapping rule file in this command contained the texture
and materials (like those in Radiance) or some images?

No. The mapping file contains rules that define something along the lines of:

"for any face in the group 'tree' that has the texture 'bark' use the
Radiance material 'brown'"

There is no definition of the material 'brown'. You have to provide
that only when you compile your octree at a later stage.

The above rule in the mapfile would look like:

brown (Group "tree") (Map "bark") ;

You can find out which objects and groups are used in the objfile with
the -n option.

Should I write up the mapping file by myself or just find from
somewhere? I have no idea of what the mapping file is so, Could
someone send me one or two small examples of map files or
others related to this command?

You have to write the map file yourself because it depends on the
definitions in your obj file. If the man page and the above example
are not clear enough you can export the geometry into different obj
files based on their material (all "wall" polygons go in one file, all
"floor" polygons in another). Then you use a single line with the
material name you wish to use for each object. So the mapping file
"floor.map" contains only the line

floor ;

and would be use in the obj2rad command:

obj2rad -m floor.map floor.obj > floor.rad

(3) When the building model is complicated, is that reliable for this
command? I mean whether it makes mistakes about the surface normals. Is
there any point that should be noted when using export Revit file to
Radiance?

Radiance does not care about the surface normals. The obj file can
only contain 3- and 4-vertex polygons which Radiance can handle. If
Revit produces surface normals for all polygons and you have only flat
objects you can use the "-f" option of obj2rad to ignore this
information. This will make your *.rad file much smaller.

Caveat: Yesterday I tried to import a *.obj file created by 3D Max.
The file was not a valid file and obj2rad (or rather obj2mesh in my
case) stopped with an error. This is obviously not the fault of
obj2rad but the usability of this work flow depends on the quality of
the *.obj files you can create.

(4) If I export .dwg, the torad autolisp
(http://www.schorsch.com/download/torad/) seems to be used for AutoCAD
R11-14. If I use Polytrans, for example, should I convert obj file? Is there
any better way?

George also has a stand alone application available for download:

http://www.schorsch.com/download/dxf2rad/

I'm not sure about the Linux version with all the glib versions out
there but the Windows version should still run on a typical Windows
machine.

(5) I do not have a SketchUp pro, so I just browsed the su2rad for free
version of SketchUp, it seems easy to understand.

Wow. Easier than obj2rad, eh? Please note that su2rad will also covert
your RGB colors to the Radiance RGB values. You can use your existing
Radiance materials if you want, though.

Regards,
Thomas

···

On Sat, May 1, 2010 at 2:49 AM, Jia Hu <[email protected]> wrote:

Thank you very much, Thomas and all the other experts! Through your
explanation, I am more clear about the usage of this command.

Only one question about the surface normal you mentioned. Genrbox and other
functions have option to determine the surface normal. For polygon, does
the surface normal affect the materials? i.e. the sequence of vertex in
command Polygon will determine which face has the material.

In .obj file, the face with vertex index 1, 2 and 3 and face with vertex
index 3, 2 and1 should have opposite normals, So are the materials added to
the two surfaces are different. Is that right? I just copy a simple obj
file to help you understand my problem. It is a wall (10' by 20').

···

#
# Wavefront OBJ file
# Created with Kaydara FBX
#
mtllib f02.mtl
g Basic_Wall_Foundation___12__Concrete__146504_
v -0.000000 -0.500000 0.000000
v 40.000000 -0.500000 0.000000
v 40.000000 -0.500000 20.000000
v -0.000000 -0.500000 20.000000
v 0.000000 0.500000 0.000000
v 0.000000 0.500000 20.000000
v 40.000000 0.500000 20.000000
v 40.000000 0.500000 0.000000
vt 0.000000 20.000000
vt 0.000000 0.000000
vt 40.000000 0.000000
vt 40.000000 20.000000
vt -40.000000 20.000000
vt -40.000000 0.000000
vt -0.000000 0.000000
vt -0.000000 20.000000
vt 0.000000 40.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 40.000000
vt 0.000000 20.000000
vt 0.000000 0.000000
vt 1.000000 20.000000
vt 0.000000 40.000000
vt 1.000000 40.000000
vn -0.000000 -1.000000 0.000000
vn 0.000000 1.000000 0.000000
vn 0.000000 0.000000 -1.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 0.000000 1.000000
vn -1.000000 0.000000 0.000000
vn 0.000000 0.000000 0.000000
vn 0.000000 0.000000 0.000000 (this all zeros casue errors when using
obj2rad)
usemtl Concrete___Cast_in_Place_Concrete
f 4/1/4 1/2/1 2/3/2
f 2/3/2 3/4/3 4/1/4
f 7/5/7 8/6/8 5/7/5
f 5/7/5 6/8/6 7/5/7
f 2/9/2 1/10/1 5/11/5
f 5/11/5 8/12/8 2/9/2
f 3/13/3 2/14/2 8/11/8
f 8/11/8 7/15/7 3/13/3
f 4/16/4 3/14/3 7/11/7
f 7/11/7 6/17/6 4/16/4
f 1/13/1 4/14/4 6/11/6
f 6/11/6 5/15/5 1/13/1

Thank you,
jia

For polygon, does the surface normal affect the materials? i.e. the
sequence of vertex in command Polygon will determine which face
has the material.

Radiance only uses one material per polygon. Front or back does only
matter if you use a emitting material like 'glow' or 'light' which
only emits to the front side.

In .obj file, the face with vertex index 1, 2 and 3 and face with vertex
index 3, 2 and 1 should have opposite normals, So are the materials added to
the two surfaces are different.

The front face of a polygon is defined by the right-hand-rule. But
since front and back material are identical it does not really matter.

...
vn 0.000000 0.000000 0.000000
vn 0.000000 0.000000 0.000000 (this all zeros casue errors when using
obj2rad)
...

That's what I meant about the quality of the *.obj files. You only
need the vertex normals if you want a smoothed surface (for example
for a round column) instead of the faceted polygons. If you can't get
it to work with -f you can just delete all the lines starting with
"vt".

Regards,
Thomas

···

On Sat, May 1, 2010 at 6:37 PM, Jia Hu <[email protected]> wrote: