Page 3 of 4

Re: OBJ Importer/Exporter Plug-in Oddities

Posted: 12 Jul 2011, 02:18
by froo
Yeah; I believe Workspace is left handed.

Re: OBJ Importer/Exporter Plug-in Oddities

Posted: 12 Jul 2011, 02:29
by froo
Well, I think we can get this to work, in a two step process for now,
while I solve the other part of the problem. BTW; I may need to add
a checkbox for this, to the dialog. Depends.

Import the file, enter edit mode to convert to editable mesh, then without selecting any verts/faces/triangles, select: Flip Selected Faces.

Re: OBJ Importer/Exporter Plug-in Oddities

Posted: 12 Jul 2011, 03:48
by froo
Ok; looks like it is working ok now, at least for the test cube danperk posted.
Please test this. If other objects are imported 'inverted/reversed/inside out/whatever',
please post them in a zip file here. That may mean, I need to make this 'inversion' optional
in the dialog.

Attached is a picture showing, from left to right:

1) the imported file
2) the imported file after converting to editable mesh and flipping selected faces (no faces selected,
so all faces are flipped)
3) #2, exported from tS, then reimported to tS using the obj importer.

Yes, I know the textures are missing from the imported file.
If that's really a problem let me know. I am not sure if it's worth debugging that, to be honest.
The reason I say that is, most folks do their texturing in the final-destination application anyway.
At least I've heard.

Re: OBJ Importer/Exporter Plug-in Oddities

Posted: 12 Jul 2011, 11:17
by Steinie
Thanks Froo!
I'll test it out and let you know.

Re: OBJ Importer/Exporter Plug-in Oddities

Posted: 12 Jul 2011, 14:48
by froo
Excellent! Thanks Steinie!
I can try to find out why the textures/materials are not loading correctly,
from the exported object.

Re: OBJ Importer/Exporter Plug-in Oddities

Posted: 13 Jul 2011, 19:52
by BNG
froo wrote:Here is the release version of the OBJ package.
If you already have a version of this, Please make a backup copy of it
and keep it in a safe place before installing this version.
That way you can revert to your original version if you don't like this version.
Thanks Froo. I haven't done much with the OBJ importer, but it may come in handy down the road.

Re: OBJ Importer/Exporter Plug-in Oddities

Posted: 13 Jul 2011, 19:59
by froo
Welcome BNG. :bananacheers:

Re: OBJ Importer/Exporter Plug-in Oddities

Posted: 14 Jul 2011, 20:50
by froo
Package updated.
Steinie reported that textures were being imported reversed.
I think this will take care of that.
Please let me know if this works, and if it breaks anything that imported successfully before.

Remember to make a backup copy of the old version. You can just unzip this file and place it
where the old one was located.

Thanks

Froo

EDIT:
Version removed

Re: OBJ Importer/Exporter Plug-in Oddities

Posted: 14 Jul 2011, 22:11
by Steinie
Thanks for working on this one Froo!

With this version the object and texture are both reversed. I sent you an
example by email.
Your getting closer! :bananadevil:

I guess the confusion is describing an object where it is visually backwards or an object that you can see into with the
faces flipped. I believe in this build the faces are flipped so after applying the texture and flipping
the faces the object and texture is perfect.
See what you can do with the object and texture I sent you.

Re: OBJ Importer/Exporter Plug-in Oddities

Posted: 15 Jul 2011, 21:59
by froo
Ok; try this one on for size.

When I import, the object does not need to be converted to an editable shape,
nor does it require its faces to be flipped.

Since I am not well versed with textures, that part still needs to be tested.

This is what I did:

import danperk's testcube.
Result: imported just fine
No conversion to editable shape required.
No face flipping required.

exported danperk's testcube and reimported.
Result: no textures, but object imported correctly.
No conversion to editable shape required.
No face flipping required.