Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/aiekick/VdbWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Feb 25, 2024
2 parents 78f3a7a + 9cef0e5 commit 03a41b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Aiekick
Copyright (c) 2024 Aiekick

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# VdbWriter

VdbWriter is a specficic and limited writer for openvdb.
VdbWriter is a specific and limited writer for openvdb.

He is absed on https://github.com/jangafx/simple-vdb-writer
He is based on https://github.com/jangafx/simple-vdb-writer

## App

Expand All @@ -28,7 +28,7 @@ int main()
for (int32_t j = -SIZE; j < SIZE; ++j) {
float len = (i * i + j * j) * len_ratio;
int32_t pz = (int32_t)((std::sin(len * 10.0 + time) * 0.5 + 0.5) * (std::abs(50.0f - 25.0f * len)) * Z_SCALE);
vdb.addVoxelDensity(i + OFFSET, j + OFFSET, pz, 1.0f); // magicavoxel use the z as up axis
vdb.addVoxelDensity(i + OFFSET, j + OFFSET, pz, 1.0f); // blender3D use the z as up axis
}
}
time += 0.5f;
Expand All @@ -42,4 +42,7 @@ int main()
### Output in blender3D :

![alt](https://github.com/aiekick/VdbWriter/blob/master/doc/wave_blender.jpg)

### Another Output in blender3D with my julia revolute

![alt](https://github.com/aiekick/VdbWriter/blob/master/doc/julia_revolute_blender.jpg)

0 comments on commit 03a41b1

Please sign in to comment.