OBJ Importer/Exporter Plug-in Oddities

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: OBJ Importer/Exporter Plug-in Oddities

Post by froo » 12 Jul 2011, 02:18

Yeah; I believe Workspace is left handed.

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: OBJ Importer/Exporter Plug-in Oddities

Post by froo » 12 Jul 2011, 02:29

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.

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: OBJ Importer/Exporter Plug-in Oddities

Post by froo » 12 Jul 2011, 03:48

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.
Attachments
obj_fixed.png

User avatar
Steinie
Captain
Posts: 2777
Joined: 21 May 2009, 17:38
Type the number ten into the box: 10
Contact:

Re: OBJ Importer/Exporter Plug-in Oddities

Post by Steinie » 12 Jul 2011, 11:17

Thanks Froo!
I'll test it out and let you know.

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: OBJ Importer/Exporter Plug-in Oddities

Post by froo » 12 Jul 2011, 14:48

Excellent! Thanks Steinie!
I can try to find out why the textures/materials are not loading correctly,
from the exported object.

User avatar
BNG
Chief Warrant Officer
Posts: 678
Joined: 16 Oct 2009, 03:26
Type the number ten into the box: 0
Location: Texas
Contact:

Re: OBJ Importer/Exporter Plug-in Oddities

Post by BNG » 13 Jul 2011, 19:52

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.

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: OBJ Importer/Exporter Plug-in Oddities

Post by froo » 13 Jul 2011, 19:59

Welcome BNG. :bananacheers:

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: OBJ Importer/Exporter Plug-in Oddities

Post by froo » 14 Jul 2011, 20:50

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

User avatar
Steinie
Captain
Posts: 2777
Joined: 21 May 2009, 17:38
Type the number ten into the box: 10
Contact:

Re: OBJ Importer/Exporter Plug-in Oddities

Post by Steinie » 14 Jul 2011, 22:11

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.

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: OBJ Importer/Exporter Plug-in Oddities

Post by froo » 15 Jul 2011, 21:59

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.
Attachments
OBJImporter.zip
(163.31 KiB) Downloaded 82 times

Post Reply