Comments (8)
I've merged (technically, I rebased, but..) viz
branch into gpu
branch. Any latest dev work will happen in gpu
branch. Note that it also contains some CUDA experiments, so if you don't want that feature, you can turn if off by passing -DUSE_CUDA=OFF to the cmake command. Both GL and CUDA are WIP, so there might be some build issues. (I'm mostly testing with macOS and Windows + Visual C++ 2015)
from fluid-engine-dev.
Thanks for trying out the branch, @subatomicglue ! For macOS, you can use Homebrew to install glfw. (For Ubuntu, apt-get. For Windows, NuGet.) But yeah, I also want to make the code almost self-buildable with very basic build tools, so let me see if I can think of alternative approaches (such as git submodule or CMake externalproject_add).
from fluid-engine-dev.
Thanks for the comment! Yes, although some examples in this engine have some exporters to Matplotlib, it would be great to have a built-in previz tool. Let me use this issue to track it. Maybe simple glfw-based viewer would be nice.
from fluid-engine-dev.
Great I am working on this for myself. Will share with you when done.
from fluid-engine-dev.
Sounds great, thanks!
from fluid-engine-dev.
This feature is almost ready to roll out (checkout viz
branch). I'm introducing jet.viz
module with GL implementation inside. Documentation and Python binding is still missing, though. Also, name of the module may change since I think there should be a better name than viz
:)
from fluid-engine-dev.
Thanks will have a look :)
from fluid-engine-dev.
Solution how to fix the glfw3
dependency (on MacOSX):
> mkdir build
> cd build
> cmake -DUSE_CUDA=OFF ..
...
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework
CMake Error at CMakeLists.txt:53 (find_package):
By not providing "Findglfw3.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "glfw3", but
CMake did not find one.
Could not find a package configuration file provided by "glfw3" with any of
the following names:
glfw3Config.cmake
glfw3-config.cmake
Add the installation prefix of "glfw3" to CMAKE_PREFIX_PATH or set
"glfw3_DIR" to a directory containing one of the above files. If "glfw3"
provides a separate development package or SDK, be sure it has been
installed.
Need to install glfw
per their instructions.
As you can see, this includes all the headers, libs, and the .cmake
files needed to find glfw
git clone https://github.com/glfw/glfw.git
cd glfw
mkdir build
cd build/
cmake ..
make -j 8
make install
-- Install configuration: ""
-- Installing: /usr/local/include/GLFW
-- Installing: /usr/local/include/GLFW/glfw3.h
-- Installing: /usr/local/include/GLFW/glfw3native.h
-- Installing: /usr/local/lib/cmake/glfw3/glfw3Config.cmake
-- Installing: /usr/local/lib/cmake/glfw3/glfw3ConfigVersion.cmake
-- Installing: /usr/local/lib/cmake/glfw3/glfw3Targets.cmake
-- Installing: /usr/local/lib/cmake/glfw3/glfw3Targets-noconfig.cmake
-- Installing: /usr/local/lib/pkgconfig/glfw3.pc
-- Installing: /usr/local/lib/libglfw3.a
cd ../../fluidengine/build
cmake -DUSE_CUDA=OFF ..
make -j 8
from fluid-engine-dev.
Related Issues (20)
- How do I run the examples and the animations?
- How to run the particles2obj example? HOT 14
- Compile error when compiling with Clang 10 HOT 1
- Promotion of projects/research using Jet Framework HOT 4
- How to implement the xyz to mesh generation to another code for fluid simulation? HOT 1
- How do I set up a fluid particles at rest and a fluid particles with initial velocity HOT 3
- Suggestion to replace Travis CI/Appveyor with GitHub Actions HOT 5
- Some unit tests failure on 32-bit system
- Fix Visual Studio 2017 build failure on GitHub Action
- Timer test code failure on MinGW system
- No known features for CXX compiler "Clang" HOT 5
- running the Python example show error HOT 8
- Replace Clara
- makeTranslationMatrix should be transposed HOT 8
- About the local method in the surface_to_implicit HOT 1
- GridSmokeSolver3::computeDiffusion is diffusing smokeDensity instead of temperature HOT 2
- Incorrect formula for collider boundary conditions (Equation 3.18 in the book)
- can't build cmake in win64 HOT 1
- bug in void Matrix<T, M, N>::invert() in "include/detail/matrix-inl.h" HOT 1
- Newer Versions of Flatbuffer is breaking the build in particle_system_data2.cpp HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluid-engine-dev.