odyaka341 / alembic

Automatically exported from code.google.com/p/alembic
0 stars 0 forks source link

AbcExport seems it cannot compute bounding box correctly for some geometry. #201

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It seems happens in many case... for example exporting imported .obj geometry 
or NURBS curves.

OS: linux
Maya: 2012
Alembic changeset: 41:24ded41237a0

Procedures to reproduction:

 * Create nurbs curve in Maya
 * AbcExport "curve1 /data/models/curve.abc"
 * read it in abcechobound or SimpleAbcViewer 

For example, SimpleAbcViewer reports invalid bounding box value as follows.

[syoyo@xeon.francine SimpleAbcViewer]$ ./SimpleAbcViewer /data/models/curve.abc 
viewerpath: ./SimpleAbcViewer
renderscript: ./SimpleAbcViewerRenderit
Beginning to open archive: /data/models/curve.abc
Opened archive and top object, creating drawables.
Created drawables, getting time range.

Constant Time.

Loading constant sample.
Done opening archive. Elapsed time: 0 seconds.
Bounds at min time: (1.79769e+308 1.79769e+308 1.79769e+308) to (-1.79769e+308 
-1.79769e+308 -1.79769e+308)

Original issue reported on code.google.com by syoyofuj...@gmail.com on 12 Jul 2011 at 8:13

GoogleCodeExporter commented 9 years ago
Based on the AbcExport command you report and the changeset you say you are 
using, I think nothing was written to your scene.

In Alembic 1.0 rc1 the command arguments for AbcExport changed.

Here is the blurb from the official announce:

    - The flags and arguments for the AbcExport Maya plugin have been
updated based on feedback from the   community, and to be more Maya-
idiomatic. You can see all the arguments supported by entering
"AbcExport -h" in the script editor. 

So:
AbcExport "curve1 /data/models/curve.abc"

is now:
AbcExport -j "-root curve1 -file /data/models/curve.abc"

Original comment by miller.lucas on 12 Jul 2011 at 4:10

GoogleCodeExporter commented 9 years ago
Ah, it seems i'm using old version of Alembic by my mistake.

I've just updated to recent AbcExport, but now I've encountered new problem: 
AbcExport throws exception at following code, so AbcExport cannot export 
geometry at all.

In this time I've confirmed it on SnowLeopard + Maya2012.  

Used command is like this:

# Create sphere polygon in Maya, then:
AbcExport -v -j "-sl /data/model/sphere.abc"

bool AbcWriteJob::eval(double iFrame)
{
...
        // -> Exception!
        mBoxProp = Alembic::Abc::OBox3dProperty(mRoot.getTop().getProperties(),
            ".childBnds", mTransTimeIndex);
...

Original comment by syoyofuj...@gmail.com on 13 Jul 2011 at 4:26

GoogleCodeExporter commented 9 years ago
Trivial typo...

AbcExport -v -j "-sl /data/model/sphere.abc"

->

AbcExport -v -j "-sl -file /data/model/sphere.abc"

Original comment by syoyofuj...@gmail.com on 13 Jul 2011 at 4:28

GoogleCodeExporter commented 9 years ago
One of my recent changes to AbcExport that hasn't been pushed to the main 
branch yet does a better job at complaining about the lack of -file.

Original comment by miller.lucas on 13 Jul 2011 at 4:35