changeset 1316:53f6855985f6 draft

collada file reader minor changes.
author Taiki TAIRA <e095767@ie.u-ryukyu.ac.jp>
date Fri, 16 Dec 2011 16:11:35 +0900
parents c0a5a9abff9c
children afe66d75f48a
files Renderer/Engine/SceneGraphRoot.cc
diffstat 1 files changed, 20 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraphRoot.cc	Fri Dec 16 15:39:42 2011 +0900
+++ b/Renderer/Engine/SceneGraphRoot.cc	Fri Dec 16 16:11:35 2011 +0900
@@ -411,18 +411,33 @@
                 pcont = pickup_float(pcont, pcount+i);
             }
         }
+        
 
         get_point(pid, , cur);
 
+        int vertexp[]; 
+        int normalp[];
+
+        float *vertex_table; 
+        float *normal_table;
+
         for (int i = 0; i<polylist_count; i++) {
-            vertex[i] = pcount[i];
-            normal[i] = pcount[i+1];
+            vertexp[i] = pcount[2*i];
+            normalp[i] = pcount[2*i+1];
         }
-        
-        if (vcount == 4) {
+
+        for (int i=0; ;i++) {
+            for (int j=0 ; j > vcont[i] ;j++) {
+                if (vcount[i] == 4) {
+
+
 
-        } else if (vcount == 3) {
+                } else if (vcount[i] == 3) {
+                    vertex_table[i] = vertex;
 
+
+                }
+            }
         }