CDN Progressive Format

From Sirikata Wiki
Revision as of 21:21, 23 August 2011 by Jterrace (talk | contribs) (→‎u)
Jump to navigation Jump to search

ASCII

The ascii format is a series of lines. There are two types of progressive format updates:

t

Description: Add a triangle at the end of the triangle list. Format:

t
v1x v1y v1z n1x n1y n1z s1 t1
v2x v2y v2z n2x n2y n2z s2 t2
v3x v3y v3z n3x n3y n3z s3 t3

u

Description: Update a set of triangle vertices to a new value. Format:

u tri_index1 vert_index1 [, tri_index2, vert_index2, ...]
vx vy vz nx ny nz s t

Example

u 2113 2 2114 1 2099 1
858.833 331.724 586.183 0.985137 -0.024169 -0.170059 0.622006839489 0.34562723709
t
856.92 338.534 593.997 0.998153 -0.023506 0.056019 0.718622982327 0.647501941654
858.833 331.724 586.183 0.985137 -0.024169 -0.170059 0.622006839489 0.34562723709
858.618 369.736 576.828 0.945305 0.008707 -0.32607 0.716357337334 0.626541803089
t
851.767 321.741 574.435 0.893271 -0.118948 -0.433495 0.7370480058 0.632873228772
858.618 369.736 576.828 0.945305 0.008707 -0.32607 0.716357337334 0.626541803089
858.833 331.724 586.183 0.985137 -0.024169 -0.170059 0.622006839489 0.34562723709
u 1655 0 1707 2 1708 1 1717 0 2997 2
781.087 197.747 771.398 0.829927 -0.453996 0.324203 0.62944613018 0.623427561384
t
781.087 197.747 771.398 0.829927 -0.453996 0.324203 0.62944613018 0.623427561384
774.308 200.145 793.304 0.856872 -0.444391 0.261318 0.247125345149 0.00965406959324
757.977 182.093 803.837 0.661695 -0.670821 0.3349 0.237640010081 0.00189882818086

Binary

To come