Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Has anyone run across or have an example of Jos Stam's Stable Fluids but in 3D? I need to pursue a 3D version of this in openGL but have been having a terrible time doing so. Is there an example of this preferably in openGL/C/C++?
This is the best information I found about solving the Navier Stokes equitation (searched about 6 month ago): link text. It explains every part of the equitation solver in the most easy way that I have ever found. I haven't looked intensively into Jos Stam's paper, but it seems to be based on this equitation.
However the link I posted is also in 2D, but as the code is so easy, it should be no problem to add one (or even more xD) additional dimension.
Edit:I just realized that the talk that I have linked was held by Jos Stam :). Its a small world. Nevertheless the talk is better documented then the pdf, so I hope it helps.
Although this answer comes a few years late, it might still be useful:
3D implementation here:
http://graphics.ethz.ch/teaching/former/imagesynthesis_06/miniprojects/p3/
Another 3D implementation: https://code.google.com/p/smoke3d
Also, this thesis has source code at the end (Bongart, Robert)
http://www.nada.kth.se/utbildning/grukth/exjobb/rapportlistor/2007/rapporter07/bongart_robert_07018.pdf
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
is it possible to draw a adjacency graph like the one shown below in c++
and show it graphically.
is this even possible with C++
if yes can some one please point me to the correct library or tutorial.
or an example or would be really helpful.
i would be using visual studio 2015 for this task.
There are plenty of plotting libraries google search will offer you, but they do require downloading source and building them which is sometimes not trivial especially for a beginner.
I suggest looking at graphviz which as you can see has similar graphics to your example. Good walk through on how to build it could be found here with specifics related to VS here.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I have a large 3D matrix and a small 3D matrix which I want to use 3D fft based convolution to find the best match for my small 3D matrix in the larger matrix. Do you have any code in C++ that can do it?
Stackoverflow is no community where one can request a code then gets it done by us, yet we can help you find the necessary resources and information so you are able to do so for yourself (usually questions on how to use libraries and help on specific topics are ok).
Let's come to your question: you already mentioned that you want to use FFT which is by far the best approach - a suitable library would be FFTW, so please take a look at it and keep the following things in mind:
To improve performace try to pad to powers of two which will speed up the process a lot!
Using real FFT and not complex will simplify and speed up this, too.
Usually single precision should be enough to achieve the desired results.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm looking for a sample code.
It's 3D modeling using camera.
like this: http://mi.eng.cam.ac.uk/~qp202/my_papers/BMVC09/
Hopefully, I want to use c or c++.
Thanks.
openCv is probably the easiest place to start.
There are a few chapters about creatign scenes from stereo pairs (which is a bit easier) in the opencv book otherwise 3d models from image understanding is still possible - but a lot harder mathematically.
You may want to check out OpenCV for computer vision functionality and OpenGL for 3D graphics. Both are widely used APIs with plenty of online documentation and examples, both official and third-party.
You could try contacting the author of the paper to see if he's willing to release his source code to you. It looks like he used CGAL (for the Delauny Tetrahedralisation) so if you go that route, you'll need to get a copy of that.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking for a C++ library, and I am dealing with convex objective and constraint functions.
I am guessing your problem is non-linear. Where i work, we use SNOPT, Ipopt and another proprietary solver (not for sale). We have also tried and heard good things about Knitro.
As long as your problem is convex, all these solvers work well.
They all have their own API, but they all ask for the same information : values, first and second derivatives.
Assuming your problems are nonlinear, you can use free and open-sourced OPT++, available from Sandia Lab. I have used it in one project in C++ and it was easy to use and worked well.
From what I know, the CPLEX solver is the best convex optimization solver. Its the state of the art in LP solvers. Does convex optimization really well. While looking for it, I see that its IBM's software now. You can find it here : http://www-01.ibm.com/software/integration/optimization/cplex/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
later this year I'm going to have a lot of time on my hands, and I thought I'd start a "small" project for myself and release it as open source.
I'd like to code my own Fraps alternative. (or continue with Taksi http://taksi.sourceforge.net ).
Fraps is a video & sound recording programm, which captures the screen during gameplay. It has way more functions than I need and its commercial.
All I want is being able to record the screen / game I'm currently playing continuously including sound no other extras.
Now this is a new area for me, but not the programming languages. I thought I'll be using C++ (& others if needed).
What I need are hints where to look, and what to look for, where to read stuff rearding it. Etc. etc.
I hope y'all can help me!
Here is some good info on the techniques used by FRAPS.
http://www.woodmann.com/forum/archive/index.php/t-11023.htm
My company published a source code in C++ for hooking into DirectX to capture video and calculate FPS (audio is not included). It is available on github as AVRecorderTool.