Skip to content

Commit

Permalink
Merge branch 'master' into OptixBSDF
Browse files Browse the repository at this point in the history
  • Loading branch information
teachmain committed Oct 19, 2023
2 parents c95c290 + 7809d2b commit 8e13c0b
Show file tree
Hide file tree
Showing 33 changed files with 2,826 additions and 590 deletions.
4 changes: 3 additions & 1 deletion projects/Alembic/WriteAlembic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ struct WriteAlembic2 : INode {
virtual void apply() override {
auto prim = get_input<PrimitiveObject>("prim");
bool flipFrontBack = get_input2<int>("flipFrontBack");
float fps = has_input("fps")? get_input2<float>("fps") : 24.0f;
int frameid;
if (has_input("frameid")) {
frameid = get_input2<int>("frameid");
Expand All @@ -313,7 +314,7 @@ struct WriteAlembic2 : INode {
if (frameid == frame_start) {
std::string path = get_input2<std::string>("path");
archive = {Alembic::AbcCoreOgawa::WriteArchive(), path};
archive.addTimeSampling(TimeSampling(1.0/24, frame_start / 24.0));
archive.addTimeSampling(TimeSampling(1.0/fps, frame_start / fps));
if (prim->polys.size() || prim->tris.size()) {
meshyObj = OPolyMesh( OObject( archive, 1 ), "mesh" );
}
Expand Down Expand Up @@ -492,6 +493,7 @@ ZENDEFNODE(WriteAlembic2, {
{"writepath", "path", ""},
{"int", "frame_start", "0"},
{"int", "frame_end", "100"},
{"fps"},
{"bool", "flipFrontBack", "1"},
},
{},
Expand Down
2 changes: 1 addition & 1 deletion projects/CUDA/zpc
191 changes: 58 additions & 133 deletions projects/ImgCV/ImageComposite.cpp

Large diffs are not rendered by default.

Loading

0 comments on commit 8e13c0b

Please sign in to comment.