[Radiance-general] Re: obj2rad failing
Greg Ward
gregoryjward at gmail.com
Wed Oct 8 07:44:29 PDT 2008
Hi Erwin,
Importing minus the vertex and textures can be done with this command:
sed '/^f /s@/[0-9/]*@@g' Hauk-EZ.obj | obj2rad > Hauk-EZ.rad
Seems to work for me, at least.
-Greg
P.S. I also tried putting all the vertex normals at the front of the
file, thinking maybe ACAD just scattered them throughout in violation
of one of the Wavefront syntax restrictions, but there were still
faces that referred to vertex normal indices that exceeded the total
number of vertex normals in the file.
> From: "Erwin Zierler" <radiance at rendigo.com>
> Date: October 7, 2008 11:44:42 PM PDT
>
> Hi Greg,
>
> thanks for the investigation. This means that Archicad produces
> faulty OBJ files or something went wrong during the export. I will
> have to ask the folks who gave me the file. I tried importing this
> file into other modellers, some of them seem to ignore all faulty
> objects, and some of them import everything only up to that line.
> But I have not checked this out in great detail. Maybe I can
> implement some kind of syntax checker that does some sanity checks
> on obj files before I throw them at obj2rad. I guess my goal will
> be to import at least the geometry, even if the vn or vt info is
> not correct.
> Regards,
> Erwin
More information about the Radiance-general
mailing list