Thursday, December 12, 2019

Fedora mySql



fix Table 'information_schema.SCHEMATA' doesn't exist

$sudo mysql_upgrade -u root -p --force

Photo3D Resources



[1] Convert image + depth map in 3D animation http://depthy.me
[2] depth map generator https://3dphoto.io/uploader/
[3] Manual depth creation https://triaxes.com/articles/manual-depth-map-creation/
[4] Complete pipeline https://www.omnivirt.com/3d-photo/
[5] https://www.brainfevermedia.com/DepthCamProTutorial.html

Tuesday, December 10, 2019

Sunday, December 08, 2019

Matlab 3D meshes and Volumes



[1] meshgrid https://la.mathworks.com/help/matlab/ref/meshgrid.html

[2] isosurface to obj file http://www.aleph.se/Nada/Ray/matlabobj.html


Thursday, November 21, 2019

Linux System Information



Find if your Linux is 64 bit is by using:

$getconf LONG_BIT

`uname -m` tells only about the kernel, the userspace and distro can be still 32-bit. Similarly `lscpu` only tells what the CPU is capable of, not if OS, kernel and distro are 32 or 64 bit.
 
 
$file /lib/systemd/systemd
$lscpu
$uname -i
$uname -m 
$dpkg --print-architecture
 

Tuesday, November 19, 2019

cuda 8.0 compile related


Compile cuda-z

    https://sourceforge.net/p/cuda-z/code/HEAD/tree/trunk/


Cuda 8.0 and Qt5


$qmake file.pro

$make


1) Error fPIC

error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."

 #  error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\


#sol, add next parameter in Makefile


$nvcc -shared -Xcompiler -fPIC

2) Compile error , comment CZ_VER_BUILD block

3) Error link stage

bld/o/czdialog.o: In function `CZDialog::getCudaDeviceNumber()':

czdialog.cpp:(.text+0x421): undefined reference to `CZCudaDeviceFound'

bld/o/czdeviceinfo.o: In function `CZCudaDeviceInfo::prepareDevice()':

czdeviceinfo.cpp:(.text+0x569): undefined reference to `CZCudaCalcDeviceSelect'

bld/o/czdeviceinfo.o: In function `CZCudaDeviceInfo::updateInfo()':

czdeviceinfo.cpp:(.text+0x5c5): undefined reference to `CZCudaCalcDeviceBandwidth'

czdeviceinfo.cpp:(.text+0x5d2): undefined reference to `CZCudaCalcDevicePerformance'

bld/o/czdeviceinfo.o: In function `CZCudaDeviceInfo::readInfo()':

czdeviceinfo.cpp:(.text+0x448): undefined reference to `CZCudaReadDeviceInfo'

bld/o/czdeviceinfo.o: In function `CZCudaDeviceInfo::prepareDevice()':

czdeviceinfo.cpp:(.text+0x585): undefined reference to `CZCudaPrepareDevice'

bld/o/czdeviceinfo.o: In function `CZCudaDeviceInfo::cleanDevice()':

czdeviceinfo.cpp:(.text+0x615): undefined reference to `CZCudaCleanDevice'

bld/o/czcommandline.o: In function `CZCommandLine::printDeviceList()':

czcommandline.cpp:(.text+0x45b5): undefined reference to `CZCudaDeviceFound'

czcommandline.cpp:(.text+0x46e8): undefined reference to `CZCudaReadDeviceInfo'

bld/o/czcommandline.o: In function `CZCommandLine::exec()':

czcommandline.cpp:(.text+0x4b16): undefined reference to `CZCudaDeviceFound'

czcommandline.cpp:(.text+0x4e2c): undefined reference to `CZCudaReadDeviceInfo'

czcommandline.cpp:(.text+0x4fbb): undefined reference to `CZCudaPrepareDevice'

czcommandline.cpp:(.text+0x4fd0): undefined reference to `CZCudaCalcDeviceBandwidth'

czcommandline.cpp:(.text+0x52fe): undefined reference to `CZCudaCalcDevicePerformance'

czcommandline.cpp:(.text+0x561f): undefined reference to `CZCudaCleanDevice'

bld/o/main.o: In function `testCudaPresent()':

main.cpp:(.text+0x2): undefined reference to `CZCudaCheck'

bld/o/main.o: In function `getCudaDeviceNum()':

main.cpp:(.text+0x4c): undefined reference to `CZCudaDeviceFound'

main.cpp:(.text+0x96): undefined reference to `CZCudaReadDeviceInfo'


#sol, change order of object files


$ g++ -m64 -Wl,-O1 -o bin/cuda-z bld/o/main.o bld/o/cudainfo.o bld/o/czdialog.o bld/o/czdeviceinfo.o bld/o/czdeviceinfodecoder.o bld/o/czcommandline.o bld/o/log.o bld/o/platform.o bld/o/qrc_cuda-z.o bld/o/moc_czdialog.o bld/o/moc_czdeviceinfo.o bld/o/moc_czdeviceinfodecoder.o bld/o/moc_czcommandline.o   -L /usr/local/cuda/lib64 -L/usr/X11R6/lib64 -lcudart_static -ldl -lm -lrt -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread

4) Execution error
./cuda-z: error while loading shared libraries: bld/o/cudainfo.o: cannot open shared object file: No such file or directory


#sol, move from bin to ..

$./cuda-z


Wednesday, November 13, 2019

Saturday, October 26, 2019

Vulkan Resources


[1] Vulkan-sdk https://www.lunarg.com/vulkan-sdk/
[2] Download https://vulkan.lunarg.com/
[3] Document
https://vulkan.lunarg.com/doc/view/1.1.101.0/linux/getting_started.html
https://vulkan.lunarg.com/doc/view/1.1.70.1/linux/getting_started.html
[4] C++ binding https://github.com/KhronosGroup/Vulkan-Hpp

[5] Examples https://github.com/SaschaWillems/Vulkan

[] gli, C++ image library. Works with OpenGL or Vulkan https://github.com/g-truc/gli

Sunday, October 20, 2019

https://github.com/alexjc/neural-enhance
https://github.com/idealo/image-super-resolution

Saturday, October 19, 2019

Fluids mandatory lectures



Navier-Stokes-equations
[0] Thesis: Parallel architecture to solve NSE https://tel.archives-ouvertes.fr/tel-01152623/document


[1] https://www.quora.com/What-are-the-uses-of-the-Bernoulli-equations-Eulers-equations-and-the-Navier-Stokes-equations-and-when-do-we-apply-them
[2] Prof. Wang http://web.cse.ohio-state.edu/~wang.3602/
[2] http://web.cse.ohio-state.edu/~wang.3602/courses/cse3541-2019-fall/
[2] Course http://web.cse.ohio-state.edu/~wang.3602/courses/cse788-2011-fall/
[2.1] SPH Water Simulation equations http://web.cse.ohio-state.edu/~wang.3602/courses/cse788-2011-fall/results/Yi_Liu/SPH%20Water%20Simulation.htm
[3] https://www.comsol.jp/multiphysics/fluid-flow-conservation-of-momentum-mass-and-energy
[4] Matthias Müller http://matthias-mueller-fischer.ch/
[5] CFD Intro https://www.mathematik.uni-dortmund.de/~kuzmin/cfdintro/lecture1.pdf


Others
[1] CSG https://evanw.github.io/csg.js/

Sunday, October 06, 2019

Quadtree/Octree Resources



Dual Marching Cubes
[1] C++ https://github.com/planaria/dmc
[2] C++ https://github.com/dominikwodniok/dualmc
[3] Dual MC, C++ https://github.com/VVingerfly/surfRecon

Python Quadtree
[1] https://github.com/karimbahgat/Pyqtree
[2] https://github.com/ceumicrodata/quadtree
[3] https://kpully.github.io/Quadtrees/



References:
[1] quad-boost https://arxiv.org/pdf/1607.03292.pdf
[2] Morton code http://www.cs.umd.edu/~hjs/pubs/ShaffIVC88.pdf
[3] https://www.slideserve.com/bessie/dual-marching-cubes

Monday, September 30, 2019

Thursday, September 26, 2019

PCA/WPCA

Video Lectures
[1] SVD to PCA https://www.youtube.com/watch?v=mBcLRGuAFUk

Lectures
[1] https://skymind.ai/wiki/eigenvector
[2] https://www.projectrhea.org/rhea/index.php/PCA_Theory_Examples


[3] PCA Theory Example http://www.cs.otago.ac.nz/cosc453/student_tutorials/principal_components.pdf

[4] Animation 2D PCA https://www.intmath.com/matrices-determinants/eigenvalues-eigenvectors-concept-applet.php


[5] PCA on OpenCV
https://robospace.wordpress.com/2013/10/09/object-orientation-principal-component-analysis-opencv/


[6] Wavelets, Fourier, Kalman http://www.cs.otago.ac.nz/cosc453/





Resources:
[1] https://machinelearningmastery.com/calculate-principal-component-analysis-scratch-python/
[2] https://jakevdp.github.io/PythonDataScienceHandbook/05.09-principal-component-analysis.html
[3] Draw 2D principal axis PCA https://stackoverflow.com/questions/18299523/basic-example-for-pca-with-matplotlib

Saturday, September 21, 2019

Alternatives to Renderman

https://github.com/POV-Ray/povray/tree/3.7-stable/unix

Friday, September 20, 2019

Point Splatting codes


Compile GLviz
[1] code https://github.com/sebastianlipponer/glviz

     error: storage size of ‘shell_surface_listener’ isn’t known
 static const struct wl_shell_surface_listener shell_surface_listener = {


      solution: add #include "wayland-client-protocol.h" in SDL_waylandwindow.c


Not able to make successfully - undefined reference to symbol 'XCreateBitmapFromData'
add into extern/anttweakbar/CMakeLists.txt after set_target_properties(anttweakbar ... )

if (UNIX)
    target_link_libraries(anttweakbar X11)
endif()


Based on GLViz
[2] Surface Splatting code https://github.com/sebastianlipponer/surface_splatting

      error: storage size of ‘shell_surface_listener’ isn’t known
 static const struct wl_shell_surface_listener shell_surface_listener = {


      solution: add #include "wayland-client-protocol.h" in SDL_waylandwindow.c

Not able to make successfully - undefined reference to symbol 'XCreateBitmapFromData'
add into extern/anttweakbar/CMakeLists.txt after set_target_properties(anttweakbar ... )

if (UNIX)
    target_link_libraries(anttweakbar X11)
endif()

Graphics Guide



Persons:

[1] Point Splatting https://cgg.mff.cuni.cz/~jaroslav/

Thursday, September 12, 2019

SPH on Python

Based on https://pysph.readthedocs.io/en/1.0a1/installation.html
                https://pysph.readthedocs.io/en/latest/installation.html
Examples https://pypi.org/project/PySPH/

python3.2 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
python3 -m venv /path/to/new/virtual/environment
 
 
Object arrays cannot be loaded when allow_pickle=False
pip install numpy==1.16.1
pip3 install PyQt5

 [1] SPH on Python https://github.com/pypr/pysph

Saturday, August 31, 2019

Word cloud

Python codes
[1] https://www.geeksforgeeks.org/generating-word-cloud-python/

Computer Graphics books




Basic in Fluids
Fluid Simulation for Computer Graphics Robert Bridson
The Art of Fluid Animation Jos Stam
Fluid Engine Development Doyub Kim


Fluid Simulations
 

 [1] Mathematics for 3D Game Programming and Computer Graphics


http://canvas.projekti.info/ebooks/Mathematics%20for%203D%20Game%20Programming%20and%20Computer%20Graphics,%20Third%20Edition.pdf
 [2] Computer Graphics Programming in OpenGL with C++
 [3] Opengl http://newton.uam.mx/xgeorge/uea/graficacion/(Morgan%20Kaufmann)%20Advanced%20Graphics%20Programming%20Using%20OpenGL%20(2005).pdf
 [4] 3D Graphics http://www.cse.chalmers.se/edu/year/2018/course/TDA361/LearningModern3DGraphicsProgramming.pdf
 [5]Foundations of 3D Computer Graphics
 [6] Interactive Computer Graphics https://inspirit.net.in/books/academic/Interactive%20Computer%20Graphics.pdf







Thursday, August 29, 2019

Anti Aliasing Lectures


Lectures
[1] http://cs248.stanford.edu/winter19content/lectures/02_drawtriangle/02_drawtriangle_slides.pdf
[2] http://graphics.stanford.edu/courses/cs348b-19-spring-content/lectures/08_sampling/08_sampling_slides.pdf
[3] http://www8.cs.umu.se/kurser/TDBC07/HT04/handouts/HO-lecture5.pdf


References:
[1] Super Sample http://hhoppe.com/proj/supersample/
Amortized Supersampling  http://hhoppe.com/supersample.pdf
[2] Sampling https://noahmjacobs.com/graphics/rasterizer/
[3] MultiSampling https://learnopengl.com/Advanced-OpenGL/Anti-Aliasing
[4] Anti Aliasing https://vr.arvilab.com/blog/anti-aliasing

Super-sampling Anti-aliasing Analyzed https://pdfs.semanticscholar.org/ebd9/ddb08c4244fc7df00672cacb420212cdde54.pdf

Comparison for R.T. Applications http://jacoblongazo.com/documents/Anti-Aliasing%20Paper.pdf


Related:
[1] Deep Learning Super resolution (2019) https://arxiv.org/pdf/1808.03344.pdf

Machine intelligence







Google brain https://research.google.com/bigpicture/

Mathematical Morphology on Graphs



References:
[1] A graph-based mathematical morphology reader https://arxiv.org/pdf/1404.7748.pdf
[2] Morphological filtering on graphs https://hal.archives-ouvertes.fr/hal-00700784v1/document

Monday, August 26, 2019

CGAL Alpha Shape Demos


Install CGAL
sudo apt-get install libcgal-dev

Compiling
g++ ex_alpha_shapes3.cpp -o ex1 -lCGAL -lgmp -frounding-math

Install Dependences for AlphaShape code

qtscript5-dev
libqt5opengl5-dev
libqt5svg5-dev

Others
[1] Poisson Disk Sample http://devmag.org.za/2009/05/03/poisson-disk-sampling/

Projection Resources

T-SNE SAMMON ...

Resources:
[1] t-sne tutorial https://distill.pub/2016/misread-tsne/
[2] umap python code https://colab.research.google.com/drive/1x22doRqgtsfnjFNB4MAYQPkruT2n3fmE

Source Code:
[1] https://github.com/tompollard/sammon

Friday, August 23, 2019

3D Contouring, Surface Reconstruction

IO/Tools
[1] Read OBJ file https://github.com/pywavefront/PyWavefront

Marching Squares
[1] Reading Metaballs and MS http://jamie-wong.com/2014/08/19/metaballs-and-marching-squares/
[2] https://github.com/SushantKafle/MarchingSquares

Marching cubes Python
[1] Python Code https://scikit-image.org/docs/dev/auto_examples/edges/plot_marching_cubes.html
[2] Python and OpenGL(Fast) https://github.com/ilastik/marching_cubes
[2.1] http://www.pyqtgraph.org/documentation/_modules/pyqtgraph/opengl/GLViewWidget.html
[2.2] http://www.pyqtgraph.org/ 

[3] https://github.com/pmneila/PyMCubes





Marching cubes C/C++
[0 http://paulbourke.net/geometry/polygonise/

[1] On OpenGl  http://paulbourke.net/geometry/polygonise/
     For compile :
     $g++ filename.cpp -o filename -lGL -lglut -lGLU

[2] On OpenGl https://github.com/nsf/mc

[3] Marching Cubes 33
         https://github.com/liscustodio/modified_mc33
         http://liscustodio.github.io/C_MC33/
[4] http://www.angelfire.com/linux/myp/MC/index.html

[5] Read  Wavefront obj file https://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadOBJ

[6] https://lorensen.github.io/VTKExamples/site/Cxx/Modelling/DiscreteMarchingCubes/

Lectures:
[1] O Marching Cubes(pt) http://fei.edu.br/~psergio/CG_arquivos/Marching%20Cubes.pdf

Thursday, August 22, 2019

Audio Feature Extraction



https://github.com/tuwien-musicir/rp_extract
https://github.com/tyiannak/pyAudioAnalysis

Saturday, August 17, 2019

Fluid Simulation:Compile Position Based Dynamics


PositionBasedDynamics is a library for the physically-based simulation of rigid bodies, deformable solids and fluids.

mkdir build
cd build
cmake ..

vi ../Demos/CMakeLists.txt

find_package(OpenMP)
if (OPENMP_FOUND)
     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif(OPENMP_FOUND)

New Challenges:
Cuda version https://github.com/eric1221bday/PBF_15418

https://github.com/ebirenbaum/ParticleSolver
https://github.com/StoneBird/CIS565-FinalProject
https://github.com/chiwsy/Position_Based_Fluids

Resources:
[1] PBD https://github.com/InteractiveComputerGraphics/PositionBasedDynamics/




OpenCL version
[1] https://github.com/bwiberg/position-based-fluids

$git clone https://github.com/bwiberg/position-based-fluids.git
$cd position-based-fluids
$git submodule update --init --recursive #call dependences
$cmake -DCMAKE_BUILD_TYPE=Debug ..







Gaussian blur/filter


Resources:
OpenCL:

$clinfo

 [1] 2D Gauss+SIPL https://www.eriksmistad.no/gaussian-blur-using-opencl-and-the-built-in-images-textures/


[2] Gaussian blur  https://github.com/mnmnc/gaussian_blur_opencl
$locate CL/cl.h
$sudo apt install ocl-icd-opencl-dev
$g++ main.cpp lodepng.cpp -lOpenCL -std=c++11 -o gb -I /usr/include





Cuda:
[1] Compile by Cuda 8 https://github.com/yanji84/cuda-blur
$nvcc -c -arch=sm_20 blur.cu -I /usr/local/cuda-8.0/samples/common/inc/
$g++ main.cpp reference_cal.cpp util.cpp -I /usr/local/cuda-8.0/samples/common/inc/ `pkg-config --cflags --libs opencv` -lcuda  -I /usr/local/cuda-8.0/targets/x86_64-linux/include/ blur.o  -std=c++11 -L /usr/local/cuda-8.0/targets/x86_64-linux/lib/ -lcudart


[2] Gaussian kd-tree https://melhorum.blogspot.com/search?q=Gaussian

Cuda Makefile:
all: program

program: cudacode.o
    g++ -o program -L/usr/local/cuda/lib64 -lcuda -lcudart main.cpp  cudacode.o 

cudacode.o:
    nvcc -c -arch=sm_20 cudacode.cu 

clean: rm -rf *o program
 
Cuda Tutorials:
[1] Hello https://cuda-tutorial.readthedocs.io/en/latest/tutorials/tutorial01/
[2] Summary http://www.icl.utk.edu/~mgates3/docs/cuda.html
[1] locate convolutionSeparable #example from cuda
[2] Samples https://docs.nvidia.com/cuda/cuda-samples/index.html#cuda-separable-convolution
[3] Compiling https://devblogs.nvidia.com/easy-introduction-cuda-c-and-c/
[4] Find Cuda https://github.com/dusty-nv/jetson-utils/tree/master/cuda
[5] Image to GL https://github.com/zchee/cuda-sample/tree/master/3_Imaging/simpleCUDA2GL
[6] Image processing http://developer.download.nvidia.com/compute/DevZone/C/html/Image_Processing.html

References:


Monday, August 12, 2019

Fluid Simulation Lectures and Code

MPM From FLIP From PIC

Lectures:

[1] https://en.wikipedia.org/wiki/Material_point_method
[2] SPH Simulation lecture http://web.cse.ohio-state.edu/~wang.3602/courses/cse788-2011-fall/results/Yi_Liu/SPH%20Water%20Simulation.htm

 Video Lectures
[1] Introduction to SPH https://www.youtube.com/watch?v=tAXHCAEgSuE #Spectral processing
[1] SPH Theory https://www.youtube.com/watch?v=3BGKn8PyIHo

Codes:
[1] http://rlguy.com/gridfluidsim/
[2] http://kbladin.se/dmt_projects/fluid_simulation.php

Saturday, August 10, 2019

Política Peruana - Historia


[1] Haya de la torre y el Apra

https://materialesfopep.files.wordpress.com/2010/04/enriquez-luis-eduardo-la-estafa.pdf

Arequipa 1800

Mapas

[1]
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3zUBhdrW4ma8ghFCeuCXX8PYb8TicCJo7ls7unWUGPmf7h0RxnUjoDJxcEQKdQPHtqe1Y2yHUoMsTVtKW1UNWv8GD2lfUMqJPRbH9tWaX3AWz81ymnvhq4wWVfxv0wzm6TcqMeg/s1600/Arequipa+-+Detalle.jpg


[2] https://www.davidrumsey.com/luna/servlet/view/all/where/Arequipa%2B%2528Peru%2529/

[3]Virreinado del Rio de la plata
[4] Virreinato de americ 17xx


Términos
[1] lloclla
s. f. Perú METEOROLOGÍA Avenida anegada de agua a causa de las lluvias torrenciales.

Friday, August 09, 2019

Computer Animation


Resources:
[1] Animación y Simulación Avanzada http://www.mastergraficos.com/asignatura/animacion-simulacion-avanzada/



DualSPHysics Compile



Resources:
[1] code https://github.com/DualSPHysics/DualSPHysics
[2] scripts to execute models https://github.com/fincahuanaco/DualSPHysicsScripts


[3] https://dual.sphysics.org/index.php/downloads/
[4] https://dual.sphysics.org/files/3313/8753/4540/DualSPHysics_v3.0_GUIDE.pdf
[5] https://github.com/DualSPHysics/DualSPHysics/wiki/12.-Testcases#obc7

Update 2021

compile GPU version (CMakeLists.txt will find cuda, display ${CUDA_VERSION} to verify if is getting the right version).

See https://melhorum.blogspot.com/2021/03/cuda-8-on-linux18.html to install CUDA and requeriments.

on DualSPHysics/src/source


mkdir build

cd build

export CC=/usr/bin/gcc-5;CXX=/usr/bin/g++-5 #for cuda 8


export CC=/usr/bin/gcc-6;CXX=/usr/bin/g++-6 #for cuda 9

cmake ..

make In some cases you need to reduce cuda version to execute simulation. in case of GeForce GTX 460(with Driver Version: 390.59). I was forced to change from cuda9(supported) to cuda8(supported too) to execute simulations with around 360k particles.


Make Model

[1] https://www.freecadweb.org/




SPH Solvers and related


Resources:
[1] Code Catalog https://spheric-sph.org/sph-projects-and-codes
[2] GPUSPH https://www.gpusph.org/downloads/
Not compile by g++>4.9 (require Cuda)

$git clone https://github.com/gpusph/gpusph.git
$CC=/usr/bin/gcc-4.9 CXX=/usr/bin/g++-4.9 make
$make
 
[3] Crixus(Boundary definition) https://github.com/Azrael3000/Crixus

[4] C++ library that enables computations over a set of particles or points in N-dimensional space (cell list, kd-tree or hyper oct-tree) https://github.com/aboria/Aboria
[5] Previous to Aboria https://github.com/martinjrobins/SPH-DEM



Thursday, August 08, 2019

Ocean References - Sources


https://www.fxguide.com/fxfeatured/siggraph-day-1-and-digipro/
ocean android https://arm-software.github.io/opengl-es-sdk-for-android/ocean_f_f_t.html
blender flip https://blendermarket.com/posts/flip-fluids-10-tips-to-improve-your-blender-workflow
standfor physic animation http://physbam.stanford.edu/

fast gpu fluid gvdb http://www.cs.utah.edu/~kwu/gvdb_sim.html

cuda openpbd http://joelgross.me/projects/pbf.html

others
[1] https://www.cs.cmu.edu/~kmcrane/Projects/GPUFluid/
[2] https://www.yiningkarlli.com/projects/arielflip.html
[3] https://developer.nvidia.com/nvidia-flow
[4] https://github.com/rlguy/Blender-FLIP-Fluids
[5] http://www.smart-coding.net/tag/irregular-sea-wave/
[6] http://revers.keep.pl/
[7] https://developer.nvidia.com/content/fluid-simulation-alice-madness-returns
[8] http://peterkutz.com/sph/

Ocean video references


[1] Ocen waves california  https://www.youtube.com/watch?v=zmPzbZVUp3g
[2] https://www.youtube.com/watch?v=WHPEKLQID4U
[3] https://www.youtube.com/watch?v=E7qRkUYu580
[4] https://www.youtube.com/watch?v=AbkWDDmV7-M
https://www.youtube.com/watch?v=5PyLgaqvYhA
https://www.youtube.com/watch?v=WxfmULzzKoU
https://www.youtube.com/watch?v=WxfmULzzKoU


Saturday, August 03, 2019

Latex tools


Resources:
[1] Mathpix https://snapcraft.io/mathpix-snipping-tool
                    https://snapcraft.io/install/mathpix-snipping-tool/ubuntu
[2]

Friday, August 02, 2019

E Learning Resources


Free
[1] Stepic + code revisor (multilanguage) https://stepik.org/

https://github.com/AndrewLrrr/stepik-python-basics-and-application-course
https://github.com/luxnlex/stepic-python

Thursday, August 01, 2019

To read

https://www.maxwell.vrac.puc-rio.br/colecao.php?strSecao=resultado&nrSeq=12140@1
https://www.maxwell.vrac.puc-rio.br/colecao.php?strSecao=resultado&nrSeq=11074@2

Code:

 [3] https://github.com/NCCA/NGL
 https://www.sidefx.com/download/houdini-for-linux/
 [4] SPH/Muller https://github.com/bigthetaio/mueller-sph
       Tutorial https://bigtheta.io/2017/07/08/implementing-sph-in-2d.html
       Dependences: 
       sudo apt install freeglut3-dev
       sudo apt install libeigen3-dev
Surface Reconstruction :
[1] Detail Preserved Surface Reconstruction from
Point Cloud
{2}Deep Level Sets: Implicit Surface Representations for 3D Shape Inference
https://math.berkeley.edu/~sethian/2006/Papers/sethian.annualreview.2003.pdf
https://ascelibrary.org/doi/10.1061/%28ASCE%29SU.1943-5428.0000159
 [3] surface reconstruction from volume fraction https://arxiv.org/pdf/1801.05382.pdf
[4] Level Set methods for fluid interfaces https://www.ljll.math.upmc.fr/~frey/ftp/NM491/11.Sethian%20J.A.,%20Smereka%20P.,%20Level%20set%20methods%20for%20fluid%20interfaces.pdf

Write Scheme
[1] Fluid Simulation on AR https://cgl.ethz.ch/Downloads/Publications/Papers/2019/Tia19a/Tia19a.pdf


Model 3D:
Scene to 3D pose model
https://www.profillic.com/paper/arxiv:1907.11346


Thesis:
 [0]  https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/
 [1] Position Based Fluid https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/MSc16/09/mpthesis.pdf
 [2] https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/MSc18/07/M_Volpicelli_i7630684_MScMajorProject_Report.pdf
 [3] https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/MSc16/15/thesis.pdf
 [4] Museth http://www.museth.org/Ken/Publications_files/meis2013_abstract_museth.pdf


Relate Concepts:

https://en.wikipedia.org/wiki/Volume_rendering
https://link.springer.com/chapter/10.1007/978-3-642-76286-4_5#citeas
https://arxiv.org/pdf/1812.04233.pdf
http://pages.mtu.edu/~chaoliw/research/vg05-pmvrt.pdf
http://idav.ucdavis.edu/~okreylos/ResDev/VolVis/index.html
http://faculty.cs.tamu.edu/schaefer/research/wavelet_rasterization.pdf
https://en.wikipedia.org/wiki/Rasterisation
https://en.wikipedia.org/wiki/Voxel
https://en.wikipedia.org/wiki/3D_rendering
https://en.wikipedia.org/wiki/3D_computer_graphics
https://en.wikipedia.org/wiki/Computer_animation

Others

 [2] mapreduce on Python http://hplgit.github.io/map-reduce4sci/doc/pub/MapReduce.html

Points processing and Modeling


Surface Points

Resources:
[1] HPR Python https://github.com/williamsea/Hidden_Points_Removal_HPR

References:
[1] http://www.weizmann.ac.il/math/ronen/sites/math.ronen/files/uploads/katz_tal_basri_-_direct_visibility_of_point_sets.pdf
[2] https://www.cv-foundation.org/openaccess/content_iccv_2015/papers/Katz_On_the_Visibility_ICCV_2015_paper.pdf
[3] 2010 binary orientation tree http://graphics.im.ntu.edu.tw/docs/pg10.pdf
[4] 2014 Image Space Rendering of Point Clouds Using the HPR Operator
[5] https://www.lcg.ufrj.br/thesis/renan-machado-silva-MSc.pdf

3D Modeling
[1] Benchmark http://caor-mines-paristech.fr/en/research/point-cloud-and-3d-modeling-pc3dm/
[2] CFD on 3D Point Set Surfaces http://caor-mines-paristech.fr/en/research/point-cloud-and-3d-modeling-pc3dm/
[3] 

Economia Perú


Grupo Romero
[1] 2010 https://perspectivainternational.wordpress.com/2010/03/06/perugrandes-negocios-del-oligarca-dionisio-romero/



Friday, July 26, 2019

Interactive Maps and D3 and others


References:
[1] Image to map by Deep Learning https://ai.facebook.com/blog/mapping-roads-through-deep-learning-and-weakly-supervised-training/

Resources

[1] Just a map https://codepen.io/manishgolcha/post/world-map-using-d3-js
[2] Datamaps http://datamaps.github.io/
     Tutorial https://github.com/markmarkoh/datamaps/blob/master/README.md#getting-started

[3] Worldmap by cuntry tooltip http://bl.ocks.org/micahstubbs/8e15870eb432a21f0bc4d3d527b2d14f
[4] d3-zoom https://github.com/d3/d3-zoom


Free geocode
[1] Works using open street map https://opencagedata.com/api
      https://api.opencagedata.com/geocode/v1/json?q=São Paulo&key=8c0e3ccc191e41f38dd211fe50fb9eab

[2] Limited https://developer.here.com/documentation/maps/dev_guide/topics/quick-start.html

[3] Google not recommended https://developers.google.com/maps/documentation/geocoding/intro


Testing
https://blockbuilder.org/Ayumix01/984d70d411ea1d29f48b3963881a5618
 https://medium.com/@ttemplier/map-visualization-of-open-data-with-d3-part3-db98e8b346b3
http://datawanderings.com/2018/10/28/making-a-map-in-d3-js-v-5/
https://github.com/ivan-ha/d3-hk-map



Avatar Lectures

Resources:

[1] Avatar SDK https://avatarsdk.com/
     https://webdemo.avatarsdk.com/
[2] https://neurohive.io/en/state-of-the-art/realistic-3d-avatars-from-a-single-image/
[3] https://neurohive.io/en/computer-vision/head-reconstruction-from-internet-photos/
[4] https://neurohive.io/en/state-of-the-art/learning-3d-face-morphable-model-out-of-2d-images/
[5] https://neurohive.io/en/state-of-the-art/method-for-automatic-forensic-facial-reconstruction/
[6] https://sketchfab.com/
[7] https://www.loomai.com/

Wednesday, July 24, 2019

Fluid Simulation:Compile SPlisHSPlasH



Source code
https://github.com/InteractiveComputerGraphics/SPlisHSPlasH




sudo apt-get install freeglut3
sudo apt-get install git
sudo apt-get install libeigen3-dev
sudo apt-get install libglew-dev
sudo apt-get install libxmu-dev libxi-dev #GLUT_Xmu_LIBRARY (ADVANCED)

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-6 g++-6

sudo ln -s /usr/bin/gcc-6 /usr/bin/cc
sudo ln -s /usr/bin/g++-6 /usr/bin/c++

sudo apt install libomp-dev



#Add into two file lines for call openmp
Demos/DynamicBoundaryDemo/CMakeLists.txt
Demos/StaticBoundaryDemo/CMakeLists.txt

find_package(OpenMP)
if (OPENMP_FOUND)
  set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif(OPENMP_FOUND)


Demos changed by Simulators (2019), after find_package(OpenGL REQUIRED)


 vi ../Simulators/DynamicBoundaryDemo/CMakeLists.txt
 vi ../Simulators/StaticBoundarySimulator/CMakeLists.txt


Sunday, July 21, 2019

Fluid Simulation Lectures

Software:
[1] https://google.github.io/liquidfun/
[2] http://www.palabos.org/software/download
[3] Games https://github.com/gameprogcpp/code

References:
[1] NVidia FLIP
http://www.cemyuksel.com/research/papers/fast_fluid_simulations_with_sparse_volumes_on_the_gpu.pdf
https://link.springer.com/article/10.1007/s40722-016-0062-6
https://ascelibrary.org/doi/abs/10.1061/%28ASCE%29HY.1943-7900.0001132?src=recsys
http://www.danenglesson.com/images/portfolio/FLIP/rapport.pdf
http://www.cs.jhu.edu/~misha/MyPapers/ToG13.pdf

Resources:
[1] https://blog.yiningkarlli.com/2014/02/flip-meshing-pipeline.html
[2] https://www.yiningkarlli.com/projects/arielflip.html
https://www.lancemore.jp/ls-dyna/index_en.html
https://www.lancemore.jp/ls-dyna/example_471.html
https://cfd.direct/openfoam/user-guide/v6-dambreak/
https://books.google.com.br/books?id=G-d1DwAAQBAJ&pg=PA779&lpg=PA779&dq=dam+break+simulation+code
 https://www.youtube.com/watch?v=GQvOlkQqRk0
 https://dual.sphysics.org/2ndusersworkshop/2016/Dominguez_Fourtakas_PPT_2ndUsersWorshop_161205_GF.pdf

Friday, July 19, 2019

OpenFoam



https://unicfd.ru/en/training-tracks/learning-how-to-use-free-surface-flows-in-openfoam-4-1/
https://www.scribd.com/document/44776293/OpenFoam-Examples

Monday, July 01, 2019

Video file to gif animation

ffmpeg can create gif from mp4/mpeg file, but create low quality, for resolve this we need to create a palette for increase quality.

Create palette colors
$ffmpeg -i file.mpeg -vf fps=15,scale=-1:-1:flags=lanczos,palettegen  palette.png

Use palette for create gif from complete mp4 file
$ffmpeg -i file.mp4 -i palette.png -filter_complex "fps=15,scale=-1:-1:flags=lanczos[x];[x][1:v]paletteuse" out_full.gif

Use palette for create gif from mp4 file (from 0:55 and 9seconds)
$ffmpeg -ss 0:55 -t 9 -i file.mp4 -i palette.png -filter_complex "fps=15,scale=-1:-1:flags=lanczos[x];[x][1:v]paletteuse" out_fraction.gif

Without palette
$ffmpeg -i imagebind.mp4  -r 10 -f image2pipe -vcodec ppm - | convert -delay 5 -loop 0 - imagebind.gif


Convert png files list to mp4 (two ways)

$avconv -r 20 -i buffer/plot%d.png -b:v 4000k animation_h1.mp4

$ffmpeg -i buffer/plot%d.png -r 20 -b 4M animation_h2.mp4

Convert jpg files into mp4
$ffmpeg -framerate 1 -i frames/f%d.jpg -r 2 -pix_fmt yuv420p video.mp4
$ffmpeg -framerate 10 -i Dragon.%04d.png -r 2 -pix_fmt yuv420p video.mp4



Cut/Extract video fraction same quality no filter/codec
$ffmpeg -ss 3:19 -t 4 -i Moana_WaterFX.mp4 -vcodec copy -acodec copy Moana_f3.mp4

Convert mp4 to gif using palette and resizing
$ffmpeg -i psplat2_4k.mp4 -i palette_psplat2_4k.png -filter_complex "fps=15,scale=-1:-1:flags=lanczos[x];[x][1:v]paletteuse" -s 346x264 psplat2_4k.gif

$ffmpeg -i fluidhoudini.mp4 -i palette.png -filter_complex "fps=15,scale=-1:-1:flags=lanczos[x];[x][1:v]paletteuse" -s 640x480 fluidhoudini_palette_640.gif



Crop image video
To crop a 528×336 section, starting from position (264, 30):

ffmpeg -i first_256.mp4 -filter:v "crop=528:336:264:30" -c:a copy first_256_crop.mp4 
#ffmpeg -i in.mp4 -filter:v "crop=out_w:out_h:x:y" out.mp4
 

Error on Image Magick (convert) 

convert-im6.q16: cache resources exhausted

open file /etc/ImageMagick-6/policy.xml and change

<policy domain="resource" name="disk" value="1GiB"/>

To

<policy domain="resource" name="disk" value="8GB"/>
 
Or
 
<!-- disable ghostscript format types -->
<policy domain="coder" rights="none" pattern="PS" />
<policy domain="coder" rights="none" pattern="EPS" />
<policy domain="coder" rights="none" pattern="PDF" /> <------- Here!!
<policy domain="coder" rights="none" pattern="XPS" />

To

<policy domain="coder" rights="read | write" pattern="PDF" /> 

#Change by code

sed -i -E 's/name="memory" value=".+"/name="memory" value="1GiB"/g' /etc/ImageMagick-6/policy.xml
sed -i -E 's/name="map" value=".+"/name="map" value="1GiB"/g' /etc/ImageMagick-6/policy.xml
sed -i -E 's/name="area" value=".+"/name="area" value="1GiB"/g' /etc/ImageMagick-6/policy.xml
sed -i -E 's/name="disk" value=".+"/name="disk" value="4GiB"/g' /etc/ImageMagick-6/policy.xml

Recommended resolution & aspect ratios

For the default 16:9 aspect ratio, encode at these resolutions:

  • 2160p: 3840x2160
  • 1440p: 2560x1440
  • 1080p: 1920x1080
  • 720p: 1280x720
  • 480p: 854x480
  • 360p: 640x360
  • 240p: 426x240
 
Online tools
[1] Crop gifs https://ezgif.com
 
 
 
 
 

OpenVDB Installation

OpenVDB Codes
[0] OpenVDB Code Examples https://www.openvdb.org/documentation/doxygen/codeExamples.html

[1] pyopenvdb volume codes https://www.openvdb.org/documentation/doxygen/python.html

[3] https://python.hotexamples.com/examples/pyopenvdb/-/createLinearTransform/python-createlineartransform-function-examples.html

More:
[1] Light, Sound modeling http://gamma.web.unc.edu/software/
[2] OpenVDB Slices to VDB https://github.com/tody411/OpenVDB-Samples
 

Resources:

[0] OpenVDB https://github.com/AcademySoftwareFoundation/openvdb

For Enable pyOpenVDB (main CMakeLists.txt)

option(OPENVDB_BUILD_PYTHON_MODULE "Build the pyopenvdb Python module" ON)
 

For Enable Viewer

cmd/CMakeLists.txt
option(OPENVDB_BUILD_VDB_VIEW "Build vdb_view" ON)
#Others
option(OPENVDB_BUILD_VDB_PRINT "Build vdb_print" ON)
option(OPENVDB_BUILD_VDB_LOD "Build vdb_lod" ON)
option(OPENVDB_BUILD_VDB_RENDER "Build vdb_render" ON)
 
OpenVDBGLFW3Setup.cmake:130

set(_GLFW3_ROOT_SEARCH_DIR "") 
set(_GLFW3_ROOT_SEARCH_DIR "/usr/lib/x86_64-linux-gnu") 

For Enable Polygonization(grid.convertToPolygons) in python module, change  openvdb/openvdb/python/CMakeLists.txt

option(USE_NUMPY "Build the python library with numpy support." ON)

or you will get next error

NotImplementedError: this module was built without NumPy support




Dependences: 

[1] OpenExr https://github.com/AcademySoftwareFoundation/openexr

[2] Intel(R) Threading Building Blocks https://github.com/wjakob/tbb

Minimum required is "2017.0" for both above.
 

[3] Boost https://sourceforge.net/projects/boost/files/boost/

$./bootstrap.sh --prefix=/usr/

$./b2

$sudo ./b2 install

#Preference to Boost 1.7 with python3 support, it enable cmds tools

https://melhorum.blogspot.com/2020/10/boost-17-on-ubuntu16.html

Or Compile Viewer Manually on openvdb/openvdb/openvdb/cmd


Ubuntu16

$g++-6 openvdb_view.cc ../viewer/Camera.cc ../viewer/ClipBox.cc ../viewer/Font.cc ../viewer/RenderMo
dules.cc ../viewer/Viewer.cc -lopenvdb -ltbb -lglfw -lGL -lGLU -lHalf -lpthread -DGL_GLEXT_PROTOTYPES

Ubuntu18

g++ openvdb_view.cc ../viewer/Camera.cc ../viewer/ClipBox.cc ../viewer/Font.cc ../viewer/RenderModules.cc ../viewer/Viewer.cc -lopenvdb -ltbb -lglfw -DGL_GLEXT_PROTOTYPES -DOPENVDB_USE_GLFW_3 -I ../viewer/ -lHalf -lpthread -o openvdb_view -lboost_thread -lboost_system -lGL -lGLU 



Firefox open multiple private window

    /opt/firefox/firefox-bin --profile $(mktemp -d) --private-window www.google.com www.bing.com