Skip to content

xinyut/lightbender

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightbender

This program generates a light-bending metal structure in OBJ format.

The light-bending metal structure is simply a N by M grid of panels, where N and M are used defined paramters. Each panel is a rotated rectangle whose oritentation is determined by the target image, the light sources and the camera location.

The input parameters of the lightbender program include

  1. an image
  2. a .r file that specifies the light(s), the camera, the resolution of the structure
  3. the filename of the output OBJ file

Compile lightbender on OSX

You will need to install glm, glew, glfw3

brew install glm glew glfw3

Then use cmake and make

mkdir build; cd build; cmake ..; make

After the compilation is done, you should see a compile binary called "lightbender" in the build folder

Run lightbender

There is an example in "examples" folder. Try

cd examples; ../build/lightbender turing.r turing.obj

Additional Info

https://paper.dropbox.com/doc/Light-Bender-HD-ColorfulMulti-view-Laser-Engraving-image--BI2el6CiyYvBc2SwETPTyxEQAQ-BPJxEO3WvDkP52kkImGNu

About

a light-bending metal structure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 55.2%
  • C++ 36.3%
  • GLSL 5.2%
  • CMake 3.2%
  • Shell 0.1%