Difference between revisions of "CDN Progressive Format"

From Sirikata Wiki
Jump to navigation Jump to search
(Created page with "== 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:...")
 
Line 9: Line 9:
 
  v3x v3y v3z n3x n3y n3z s3 t3
 
  v3x v3y v3z n3x n3y n3z s3 t3
 
===u===
 
===u===
Description: Update a vertex in an existing triangle.
+
Description: Update a set of triangle vertices to a new value.
 
Format:
 
Format:
  u tri_index vert_index
+
  u tri_index1 vert_index1[, tri_index2, vert_index2, ...]
 
  vx vy vz nx ny nz s t
 
  vx vy vz nx ny nz s t
  
 
===Example===
 
===Example===
  u 1019 1
+
  u 2113 2 2114 1 2099 1
  340.026 673.774 273.745 -0.129702 0.942153 0.309072 0.47658809643 0.622889051512
+
  858.833 331.724 586.183 0.985137 -0.024169 -0.170059 0.622006839489 0.34562723709
u 1018 2
 
340.026 673.774 273.745 -0.129702 0.942153 0.309072 0.47658809643 0.622889051512
 
u 1017 1
 
340.026 673.774 273.745 -0.129702 0.942153 0.309072 0.47658809643 0.622889051512
 
u 1016 2
 
340.026 673.774 273.745 -0.129702 0.942153 0.309072 0.47658809643 0.622889051512
 
 
  t
 
  t
  297.959 661.148 284.938 -0.202967 0.908945 0.364176 0.746665141185 0.54192551248
+
  856.92 338.534 593.997 0.998153 -0.023506 0.056019 0.718622982327 0.647501941654
  340.026 673.774 273.745 -0.129702 0.942153 0.309072 0.47658809643 0.622889051512
+
858.833 331.724 586.183 0.985137 -0.024169 -0.170059 0.622006839489 0.34562723709
  332.844 676.673 253.65 -0.161151 0.972223 0.169743 0.71931608616 0.527522427365
+
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 ==
 
== Binary ==
 
To come
 
To come

Revision as of 21:21, 23 August 2011

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