Showing posts with label Computer Graphics. Show all posts
Showing posts with label Computer Graphics. Show all posts

Friday, February 05, 2021

Houdini 18: Fundamentals

 

PDG & examples (~2020)

[1] https://www.sidefx.com/learn/pipeline-pdg/


Materials

[1] https://www.youtube.com/watch?v=TzDAxvPFh1E


Hair Shading

[1] https://www.youtube.com/watch?v=aO1r5yv3QT8

Objects

[1] Rock https://www.youtube.com/watch?v=gINvU11LHB0


Flip

[0] Tips to improve https://blendermarket.com/posts/flip-fluids-10-tips-to-improve-your-blender-workflow

[1] https://vimeo.com/182074285

[2] https://vimeo.com/189254805

[3] Splash https://vimeo.com/209763376

[4] Collider https://vimeo.com/252645795

 

Sources

[1] pool https://www.sidefx.com/forum/topic/27689/?page=1#post-130379


Friday, December 18, 2020

Houdini 18 : Parse .bgeo files

 

$hython /opt/hfs18.0.460/houdini/public/hgeo/hgeo.py file.bgeo

       7199 Points
       7199 Vertices
          1 Primitives
----- Attributes -----
Point Attributes
   numeric P[3]
   numeric v[3]
Primitive Attributes
   string name[1]
Global Attributes
   numeric rest_ratio[1]
   numeric rest2_ratio[1]
   numeric timescale[1]
1 Primitives
         1 PolySoup
Primitive 0 is a PolySoup and has 0 vertices.

 

$ hython /opt/hfs18.0.460/houdini/public/binary_json/json_binary_verify.py /opt
/hfs18.0.460/houdini/geo/defgeo.bgeo  
JSON Valid: /opt/hfs18.0.460/houdini/geo/defgeo.bgeo (0.002985 s)

 

Monday, November 02, 2020

Compile g3dviewer in Ubuntu16

 

Source:

[1] http://automagically.de/g3dviewer/


Settings:

$cd src

$grep DATA_DIR *
$locate g3dviewer.glade #to define DATA_DIR

#To find right libraries

$pkg-config --libs gtk+-2.0     
$pkg-config --libs gtkglext-x11-1.0

 

Compile Code:

$gcc -o app main.c model.c screenshot.c texture.c trackball.c glarea.c gl.c gu
i_callbacks.c gui_glade.c gui_infowin.c gui_log.c -I /usr/include/gtk-2.0 -I /u
sr/include/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -I /usr/inclu
de/cairo -I /usr/include/pango-1.0 -I /usr/lib/x86_64-linux-gnu/gtk-2.0/include
-I /usr/include/gdk-pixbuf-2.0 -I /usr/include/atk-1.0 -I /usr/include/gtkglex
t-1.0 -I /usr/lib/gtkglext-1.0/include -I /usr/include/libglade-2.0 -lgtk-x11-2
.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0
-lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lm
-lGL -lglut -lGLU -lglade-2.0 -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL
-lXmu -lXt -lSM -lICE -lgdk-x11-2.0 -lpangox-1.0 -lX11 -Wl,--export-dynamic -l
gmodule-2.0 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lc
airo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib
-2.0 -lfontconfig -lfreetype -lg3d


 


Friday, October 30, 2020

Compile k3d in Ubuntu 16

 

Logo

Source http://www.k-3d.org/

Main errors:

INCLUDE(K3DFindFreetype2) # freetype6-dev

INCLUDE(K3DFindGtkmm) #DEBUG 

https://gtkmm.org/en/download.html #works with version 2.x

INCLUDE(K3DFindFTGL) #DEBUG

#To DEBUG Variables

message(STATUS "DEBUG: K3D_FREETYPE2_FOUND: ${K3D_FREETYPE2_FOUND}")
message(STATUS "DEBUG: Aqsis_FOUND: ${Aqsis_FOUND}")

#Support CUDA need to enable in CMakeLists.txt (main)

Day 2:

K3DFindBoost.cmake (update paths)

SET(K3D_BOOST_INCLUDE_DIR "/usr/local/include" CACHE PATH "Override the default location for Boost header files.")
SET(K3D_BOOST_LIBRARY_DIR "/usr/local/lib" CACHE PATH "Override the default location for Boost libraries.")


renderframe/CMakeLists.txt

LINK_DIRECTORIES() #add boost path

TARGET_LINK_LIBRARIES()  #add boost_regex boost_program_options boost_system boost_python27 boost_thread boost_date_time

 #disable CGAL

#K3D_CHECK(K3D_BUILD_CGAL_MODULE REQUIRES K3D_CGAL_FOUND RESOURCE "CGAL") #DEBUG


 

Thursday, October 29, 2020

Thursday, October 01, 2020

3D Deep Learning

 

https://github.com/mit-han-lab/pvcnn

https://paperswithcode.com/paper/octnet-learning-deep-3d-representations-at


Sunday, May 31, 2020

Rendering


[1] Physically Based Rendering https://pbrt.org/index.html
[2] Scenes https://pbrt.org/scenes-v3.html
[3] Guide https://pbrt.org/users-guide.html

Smoke Simulation Code

Compile from Windows to Linux

C++17 implementation of "Local Bases for Model-reduced Smoke Simulations" in 2D with dynamic obstacles. See www.olivier-mercier.com/res/publications/basisFluid/ for more details.

[1] Source Visual Studio https://github.com/omercier01/basisfluid
[2] One file libraries (images, noise, fonts,etc ) https://github.com/nothings/stb
[3] GLM Library https://glm.g-truc.net/0.9.2/api/index.html
[4] Localtime https://en.cppreference.com/w/c/chrono/localtime


Saturday, April 04, 2020

Houdini Render command line



[0] https://www.sidefx.com/docs/houdini/render/batch.html
[1] structure https://www.sidefx.com/forum/topic/52170/?page=1#post-234716

[1] https://www.sidefx.com/forum/topic/31659/?page=1#post-148027
[2] https://github.com/kiryha/Houdini/wiki/python-snippets
[3] https://houdinitricks.tumblr.com/
[4] ?? https://github.com/symek/hafarm




others
[1] https://github.com/Kitware/vtk-js



Running apps

Runtastic (I uninstalled because force to update your device - Internet connection problems) Runkeeper  (Currently testing) Strava   (Curre...