Re: 3ds loader question

New Message Reply Date view Thread view Subject view Author view

Igor-Sunday Pandzic (Igor.Pandzic++at++cui.unige.ch)
Mon, 05 Feb 1996 07:49:49 +0100


On Feb 1, 13:06, Chris Hondl wrote:
> Subject: 3ds loader question
>
> So it would appear that the 3ds file loader does not support normal import.
> How can I get 3ds files into Performer and keep normal assignments performed
> in 3d Studio? How would I go about extending the file loader to support
normal
> import?
>
>
> Chris Hondl
>
>
>
>-- End of excerpt from Chris Hondl

Hi,

I had the same problem and solved it, as Jim Helman suggests, in DIY fashion.
Since I didn't know much about 3dStudio, or how to use the "group" information
provided, I made a solution that calculates the normal based on the
neighbouring polygons. To avoid the interpolation of the normal on
sharp edges (e.g. on a cube) there is a threshold angle. Since this
method takes a lot of time for a fairly complicated 3ds file, it
actually writes the normals into a file for subsequent use (i.e. if it
finds a .3dsn file it uses it, otherwise it creates it).
This is not the best soulution, but it worked OK for me. If anyone has
done something nicer I would be interested... Willing to send my version of
pf3ds.c.

Igor

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Igor Pandzic                         Igor.Pandzic++at++cui.unige.ch
MIRALab
University of Geneva                 tel. +41/22/705 76 56
24, rue General-Dufour                           705 77 63
CH-1211 GENEVE 4
SWITZERLAND                          fax  +41/22/705 77 80
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:21 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.