[Radiance-general] filtering normal information from an obj

Kirk Thibault kthibault at biomechanicsinc.com
Thu Aug 10 15:39:53 CEST 2006


THis may not be the most elegant solution, but if you want more  
control over how your .obj files are structured, give the utility  
UVMapper a try:

http://www.uvmapper.com/

It is available for Windows and Mac and the "Classic" version is free  
(at least for the Mac).  You can load your obj into UVMapper and then  
export it with or without normals, UVs, Regions, etc.

If you have a lot of obj's this may not be the greatest solution, but  
try it out.  This is a must have if you model in Lightwave and export  
your models in obj format and you WANT normals, because LW does not  
export normal info.

kirk

--------------------------------------------------
Kirk L. Thibault, Ph.D.

Biomechanics, Inc.
439 S. Governor Printz Blvd.
Essington, PA 19029

p.  215.271.7720
f    215.271.7740

kthibault at biomechanicsinc.com
skype: kirkthibault


On Aug 10, 2006, at 4:18 AM, Lars O. Grobe wrote:

> Hi!
>
> As obj2mesh doesn't support something as obj2rad's -f option to  
> filter surface normal information, and mgffilt cannot be used here  
> because native radiance-format is not involved using obj2mesh  
> (well, I could use obj2rad -f and than the new rad-to-obj filter,  
> but that does not seam to make sense to me with all my large  
> files), I wonder how people get rid of normals if needed.
>
> I started with grep -v "vn", but that only removes the vertices,  
> not their referneces in the face (f) lines. So I need a sed-command  
> maybe, that finds the normal vertex reference by examining the /- 
> seperated triples in lines beginning with f and replace the normal  
> vertex index by 0. And it should take care of lines that are  
> continued after a line break, indicated by a backslash, as that  
> seams to be valid in obj.
>
> I am not very good in sed. If someone has a tested sed-string (I  
> guess so) it would be great if you could post it, might be of  
> general interest. If not, I will have to think myself ;-) and make  
> hundreds of failed attempts to get this done...
>
> Thanks... Lars.
>
>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-general/attachments/20060810/7719a17e/attachment.html


More information about the Radiance-general mailing list