/tessDX

tessellation playground for the tessellation DX11 spec

Primary LanguageC++

tessDX

tessellation playground for the DX11 tessellation spec

Blog post on Tessellation

example usage

git clone https://github.com/YiweiMao/tessDX
cd tessDX/
make
from pytess import *
%matplotlib inline
# if not using jupyter notebook, add this at the end of the script: plt.show()

# for one instance of tessellation
Tessellator(partition=PART_INT,outputPrim=OUTPUT_TRIANGLE_CW,tfs=[1,2,3,4]).doTess()

# for interactivity
interact(showTess,partition=(0,3,1),outputPrim=(0,3,1),outTF0=(1,64,0.1),outTF1=(-1,64,0.1),
                 outTF2=(-1,64,0.01),outTF3=(-1,64,0.1),inTF0=(1,64,0.1),inTF1=(-1,64,0.1))