Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: Bug in .97c: object export  (Read 8820 times)

Gregory

  • Newbie
  • *
  • Posts: 39
    • View Profile
Bug in .97c: object export
« on: June 05, 2008, 01:18:41 am »

I built a steam train in anim8or, mapped it with UVMapperPro.  9 materials, 72 groups.  Rigged it in Poser.  Discovered that some doors need to be wider, and other slight modifications need to be made.  Modified it in anim8or then exported but could not recover my uvs.
 
Ordinarily I can export .obj from anim8or, open it in UVMapper, import the saved UVs, and move on.  Something is changing in the .obj in anim8or; UVMapper throws the error "Incompatible Facet Structure" and cannot import UVs as in the past.  Reverting to anim8or version .95 solves it, and I can export then import uvs.  In this train model there are about 51,000 polys; I noticed a 7 poly difference between the original mapped model and the same model after exporting from anim8or. 
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2124
    • View Profile
Re: Bug in .97c: object export
« Reply #1 on: June 05, 2008, 03:29:07 pm »

I assume that you mean v0.97b doesn't work.  Does the previous version (v0.97a dated March 18, 2008) work?

Can you send me the input .obj file and the outputs from v0.95 and v0.95b?  I'll take a look at it.
Logged

Gregory

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Bug in .97c: object export
« Reply #2 on: June 05, 2008, 05:19:41 pm »

I assume that you mean v0.97b doesn't work.  Does the previous version (v0.97a dated March 18, 2008) work?

Can you send me the input .obj file and the outputs from v0.95 and v0.95b?  I'll take a look at it.

It was .97a, not c.

I downloaded .97b just now and I'll try it; if the error persists I'll zip it all up and send you the files.
- edit:

I've just tested it with 97b and the same thing occurs.  Cannot import uvs.  It works fine when using v95.
I've emailed it to you.

« Last Edit: June 05, 2008, 05:45:20 pm by Gregory »
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2124
    • View Profile
Re: Bug in .97c: object export
« Reply #3 on: June 06, 2008, 01:59:51 am »

I got your e-mail.  I don't understand what all the files are.  How did you make the .uvs files?  They have a comment that says they were make in UVMapper at the top.  Similarly the .obj files both say they were made by UVmapper.  Anim8or writes a different comment at the top of the file when it exports to .obj format by both the built in and plug-in exporters.

Can you explain the sequence of steps that you did?
Logged

Gregory

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Bug in .97c: object export
« Reply #4 on: June 06, 2008, 06:03:28 pm »

I got your e-mail.  I don't understand what all the files are.  How did you make the .uvs files?  They have a comment that says they were make in UVMapper at the top.  Similarly the .obj files both say they were made by UVmapper.  Anim8or writes a different comment at the top of the file when it exports to .obj format by both the built in and plug-in exporters.

Can you explain the sequence of steps that you did?

When you export from anim8or you lose groups (and materials in earlier versions).  If you have two identical geometries, and assign materials and groups and lay out the uv coordinates in one model, you can save that model and also export a .uvs file, then open the unmapped geometry in UVMapper, and Import uvs; it will assign them to it just as in the first model.  Voila:  groups and materials in both models.  This will only work if the geometry in both models is identical.

Build model in anim8or.
Export as HP_OltonHall.obj
close anim8or

Open UVMapperPro
Import HP_OltonHall.obj
Lay out UVs, assign textures and groups, save HP_OltonHall.obj. 
Export uvs. 
close UVMapperPro.

Open  HP_OltonHall.obj with anim8or ver .95.  Select some vertices and move them.  (Do not detach faces or in any way change the geometry other than scaling or moving.)  In my case I wanted the boiler a bit shorter so i selected the verts on it and moved them.
Export HP_OltonHallExported.obj
close anim8or

Open HP_OltonHallExported.obj with UVMapperPro.  You will see the changes you made in the verts and also there will be a default group and default material.
Import uvs -- select HP_OltonHall.uvs
UVMapperPro will apply the mapping, groups, and materials from the first model to this modified and exported one.  Save the model as HP_OltonHallFinal.

Here's the test:
Now try it with version 97b.  You will get an error reading Incompatible facet structure.  Something has changed in the model from the export from anim8or.  I've used anim8or and UVMapper with this method for years; this new version adds verts or faces or something.
 

« Last Edit: June 06, 2008, 06:06:16 pm by Gregory »
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2124
    • View Profile
Re: Bug in .97c: object export
« Reply #5 on: June 07, 2008, 07:49:43 pm »

OK I understand.  But it seems to work OK for me.

You sent me two .obj files "HP_OltonExportV97b.obj" and "HP_OltonHall.obj" but both had headers that said "# file generated by UVMapper" at the top.  There isn't any Amnim8or output in any file.

What I did was import "HP_OltonHall.obj" and the exported it using v0.95c.  I get 54118 points and 51884 faces, and the same for v0.97b.  The v0.97b version has the mtllib and usemtl commands and the faces in a different order the put all faces with the same material together, but otherwise they are identical.  (You can do this too: I sorted both files using the sort.exe program that comes with windows and compared the results.  The geometry is exactly the same.

I then imported the v0.97b.obj file into UVMapperPro V3.2a and it worked.

Can you try this (importing and exporting using v097b without changing anything in the model) and see if that works for you?
Logged

Gregory

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Bug in .97c: object export
« Reply #6 on: June 21, 2008, 09:55:21 pm »

The only reason they have the UVMapper header is that after I exportrted them from Anim8or I imported and saved with UVM. 

Forget the HP_OltonExportV97b.obj

Open HP_OltonHall.obj in anim8or.  Export as obj witha  new filename.  open it in UVMapper, and try to import uvs from HP_OltonHall.obj .
Logged