NVil Forum

General Category => Bug Reports => Topic started by: samardac on January 12, 2015, 07:58:23 am

Title: obj Import problem
Post by: samardac on January 12, 2015, 07:58:23 am
Hallo, I exported obj from KeyShot and can not open it in NVil.
Have this error:

(https://monosnap.com/image/s8HXaG8mEdGkWszlzVT2yuDLiDFbWq.png)

(https://monosnap.com/image/irQqfxgOovdI3DYsTjWOUWhbbOwJNG.png)


obj:
https://drive.google.com/file/d/0B1uI4ljG15POX3M1X1AySVlNSG8/view?usp=sharing
Title: Re: obj Import problem
Post by: steve on January 12, 2015, 09:03:09 am
Looking at the .obj file, it is using "Relative Vertex Numbering". That is causing issues in various 3d applications I use.

Is there an option in "Keyshot" to export .obj in "Absolute"?

Title: Re: obj Import problem
Post by: samardac on January 12, 2015, 09:52:47 am
Hay Steve,
Looks like there is no any setting for Export in KeyShot.
Also wanted to say that some files that I Exported from KeyShot, NVil opens without problems.
All that files I created with NVil.
Title: Re: obj Import problem
Post by: samardac on January 12, 2015, 09:55:12 am
For example this file I exported from KeyShot and it opens well in NVil.
https://drive.google.com/file/d/0B1uI4ljG15POX3M1X1AySVlNSG8/view?usp=sharing
Title: Re: obj Import problem
Post by: steve on January 12, 2015, 10:15:29 am
For example this file I exported from KeyShot and it opens well in NVil.
https://drive.google.com/file/d/0B1uI4ljG15POX3M1X1AySVlNSG8/view?usp=sharing

Same error in Nvil.

The files appear to be the same, with the same download link.
Title: Re: obj Import problem
Post by: IStonia on January 12, 2015, 10:18:24 am
If you open the obj file in a text editor, you will find two line like this

vn -1.#IND -1.#IND -1.#IND

It is a definition for a normal. But I don't know what means #IND.

If I change those two lines to

vn -1.0 -1.0 -1.0

It works.
Title: Re: obj Import problem
Post by: samardac on January 12, 2015, 10:20:28 am
Steve, sorry, this one:
https://drive.google.com/file/d/0B1uI4ljG15POYkNhWl9zdnpUZVU/view?usp=sharing
Title: Re: obj Import problem
Post by: steve on January 12, 2015, 10:24:39 am
If you open the obj file in a text editor, you will find two line like this

vn -1.#IND -1.#IND -1.#IND

Good find.

That usually refers to Invalid Normals.
Title: Re: obj Import problem
Post by: IStonia on January 18, 2015, 09:26:27 am
I made some changes. If invalid normal values found, the normal information will be dumped and NVil will generate new normals.