Tuesday, September 10, 2013

Previewing litophane using Blender

Previewing litophane using Blender

Tools:

  1. Blender 2.68
  2. Stl generated from litophane processing script


  1. Previously, we have generated the litophane stl file e.g. shown below
  2. Launch blender and delete the default cube.                                                                                       
  3. File -> Import -> Stl(.stl) -> Import Stl. You will get something as shown below:              
  4. left click anywhere below the object and click on space. Add "add lamp" in the search. Select sun
  5. Click Rendered.                                                
  6. Enjoy your rendered litophane! ;)
     



Creating litophane with 3d printers


Creating litophane with 3d printers

Tools:
  1. Processing
  2. 3d printer
  3. Processing script http://adf.ly/VTuNW modified from Amanda's Lithophane

  1. Convert your photo to grayscale
  2. Open the script in Processing
  3. Insert your filename in "filename.jpg".String name = "your_file_name_here";//name of file
  4. Run
  5. The stl file will be generated. Open it using stl viewer softwares such as netfab, google sketchup or blender.

Compiling Spinscan in Windows

Compiling Spinscan in Windows

Tools:

  1. Processing 1.5.1
  2. Additional Processing Libraries
  • OpenCV 1.0
  • controlP5
  • unlekkerLib
  • SuperPoint

  1. Download processing 1.5.1 from : http://adf.ly/VTr5V
  2. Download all other libraries: 
  3. http://adf.ly/VTr7r
  4. http://adf.ly/VTrA1
  5. http://adf.ly/VTrCW
  6. http://adf.ly/VTrEd
  7. Extract all the libraries and put them in Processing -> Libraries.
  8. Open spinscan.pde with Processing
  9. Run
Compiling Spinscan

Compiling Fabscan for Windows

Fabscan for Win

Tools needed:

  • Visual Studio 2010 32bit
  •  Qt5 Win32 with opengl for MSVC2010
  • 32-bit versions of PCL
  • Opencv
  1. Download the code from: http://adf.ly/VTr0f
  2. weibao_3d -> weibao_3d -> weibai_3d.vcxproj ( edit this with text editor). Point it to your installed Qt location: For example: <QTDIR>C:\Qt\Qt5.1.1\5.1.1\msvc2010_opengl</QTDIR> for both debug and release.
  3. Go back to weibao_3d folder. Run weibao_3d with VS2010.
  4. Project -> Properties -> Configuration Properties. Platform toolset should be set to V100.
  5. In VC++ Directories, Include Directories->edit. "include" entries for OpenCV\include; PCL\include; PCL\3rdParty\Boost\include, \Eigen\include and \FLANN\include; and Qt5 \include\QtMultiMedia and \MultiMediaWidgets.                                                                                                                                                                                                                                                                                                                          
  6. In Library Directories ensure "lib" entries for OpenCV; PCL; PCL\3rdParty\Boost, \Eigen, \FLANN and \VTK; and Qt5.
  7. In Linker->Input->Additional Dependencies: qtmain.lib Qt5Core.lib Qt5Gui.lib Qt5OpenGL.lib Qt5Multimedia.lib Qt5MultimediaWidgets.lib Qt5Network.lib Qt5Widgets.lib opengl32.lib glu32.lib opencv_core246.lib opencv_highgui246.lib opencv_imgproc246.lib pcl_common_release.lib pcl_features_release.lib pcl_io_ply_release.lib pcl_kdtree_release.lib pcl_octree_release.lib pcl_search_release.lib pcl_surface_release.lib pcl_io_release.lib
  8. Copy all the dependency files from /bin from the lib folders to weibao_3d -> Win32 -> Release. 
  9. Click on weibao_3d.exe ;)