-
Notifications
You must be signed in to change notification settings - Fork 336
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
Add implicit instancing support to AlembicAssembly #2424
base: master
Are you sure you want to change the base?
Conversation
I also think I should provide some test scene but I have no idea where I should put them. |
c96d14d
to
2513b56
Compare
A |
Thanks, I try to use relative paths in the appleseed XML file: <parameter name="file_path" value="alembics/xform_ogawa.abc" /> This path is relative to the scene but I suspect I have to resolve it as I'm in Any hint, in the code, where a similar problem is solved? |
It's my code logging this: https://github.com/Narann/appleseed/blob/master/sandbox/samples/cpp/alembicassembly/alembicassembly.cpp#L450 So I need to "interpret" a relative file path. Once again, I'm sure you guys already had to deal with that. |
Reading other scenes, it looks like .obj are always passed relative to the .appleseed scene: <object name="Sphere" model="mesh_object">
<parameter name="filename" value="meshes/Sphere.obj" />
</object> But the obj parser doesn't seems to do anything to convert to absolute path:
So I suspect the working directory used when rendering test scenes must be the place where scenes are. Am I good ? |
That's correct: relative paths aren't relative to the project's directory, they're relative to the current directory. You could add |
… assembly this improve performance a lot as there is no more useless assembly instance created
As its name states, this commit add implicit instancing in AlembicAssembly using
IObject::getPropertyHash()
on poly mesh.The weird part of the code review will be that a tiny refacto appear: I created a
do_extract_polymesh()
method that put the content of the AlembicIPolyMesh
into the appleseedMeshObject
. This obfuscate the diff but it make the whole logic easier to read.