Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make alembicassembly sample compiles again #2418

Merged
merged 3 commits into from Feb 13, 2019
Merged

Conversation

Narann
Copy link
Contributor

@Narann Narann commented Feb 11, 2019

I've updated the alembic assembly sample to make it compile again with new inheritance.

Any feedback appreciate. :)

Copy link
Member

@dictoon dictoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

What's the status of the importer, functionality-wise?

.insert("type", "text")
.insert("use", "required"));

metadata.push_back(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these supposed to be the metadata for the pinhole camera?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, those are assembly parameters use to sample the given alembic file.

For now, if not setted, it use 0.0f.

IIRC there is no way to retrieve the shutter open/close of the current scene, so you need to pass it explicitly to each assembly.

Doc here

The camera doesn't have shutter open/close but explicit time_offset

Any suggestion ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC there is no way to retrieve the shutter open/close of the current scene, so you need to pass it explicitly to each assembly.

You can retrieve the shutter times of the camera. In do_expand_contents() you've got a Project so you first need to retrieve the active camera used for rendering:

const Camera* camera = project.get_scene()->get_active_camera();

Then you can use camera->get_shutter_open_begin_time(), etc. to retrieve shutter times.

sandbox/samples/cpp/alembicassembly/alembicassembly.cpp Outdated Show resolved Hide resolved
@Narann
Copy link
Contributor Author

Narann commented Feb 12, 2019

What's the status of the importer, functionality-wise?
This PR simply make it compile with new appleseed code. No modification.

I have a board I try to keep up to date.

For now I will focus on implicit instancing. I will need to have a dedicated method (maybe static) for polymesh extraction because it's a big part of the code and it make the rest of the logic (specially, the code flow for instancing) hard to read. I will try to do hte PR in two times. Split polymesh extraction method, and add implicit instancing.

Have you any feature you would want to see supported ?

Copy link
Member

@dictoon dictoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Should we merge?

@Narann
Copy link
Contributor Author

Narann commented Feb 13, 2019

Yes we can. The next PR would be the implicit instancing system.

@dictoon dictoon merged commit c476fda into appleseedhq:master Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants