Wednesday, November 18, 2015

파이썬 빌드(컴파일)

https://docs.python.org/2/extending/building.html

A distutils package contains a driver script, setup.py. This is a plain Python file, which, in the most simple case, could look like this:
from distutils.core import setup, Extension

module1 = Extension('demo',
                    sources = ['demo.c'])

setup (name = 'PackageName',
       version = '1.0',
       description = 'This is a demo package',
       ext_modules = [module1])

With this setup.py, and a file demo.c, running
python setup.py build

will compile demo.c, and produce an extension module named demo in the build directory. Depending on the system, the module file will end up in a subdirectory build/lib.system, and may have a name like demo.so ordemo.pyd.

Tuesday, November 10, 2015

ray tracing survey

ray tracing vs casting :
http://permadi.com/1996/05/ray-casting-tutorial-table-of-contents/

ray tracing :
https://www.cs.unc.edu/~rademach/xroads-RT/RTarticle.html

c++ example :
http://www.cosinekitty.com/raytrace/chapter05_cpp_code.html

ray tacing, ray packet, SAH(Surface Area Heuristic) :
http://www.cs.cmu.edu/afs/cs/academic/class/15869-f11/www/lectures/14_raytracing.pdf

아직 조사중.