I'm trying to convert over my deathly slow 3d engine over to a more lean and mean model.. one thing I want to impliment is vertex arrays.
Just about got these suckers working right, but then the normals come into play.
Seems I must supply a list of vertex normals over to the array for each vertex of my shape.. but it seems most shape exporters from 3d packages - perfer to use a normal face list to reference the correct normal vertex. (which was fine for my original engine, but I want SPEED !)
Anyway, here's some info from the 3d file:
Can some kind-person please help me to find the relationship between the faces.. and the normal faces - so I can create a full normal list. After 3 days of working on it, I still cant seem to find the pattern.
Just about got these suckers working right, but then the normals come into play.
Seems I must supply a list of vertex normals over to the array for each vertex of my shape.. but it seems most shape exporters from 3d packages - perfer to use a normal face list to reference the correct normal vertex. (which was fine for my original engine, but I want SPEED !)
Anyway, here's some info from the 3d file:
Mesh { 20; 1.41396;1.41905;1.41611;, 1.41396;1.41905;-1.42199;, -1.42414;1.41905;-1.42199;, -1.42414;1.41905;1.41611;, 1.41396;1.41905;-1.42199;, 1.41396;-1.41905;-1.42199;, -1.42414;-1.41905;-1.42199;, -1.42414;1.41905;-1.42199;, 1.41396;-1.41905;-1.42199;, 1.41396;-1.41905;1.41611;, -1.42414;-1.41905;1.41611;, -1.42414;-1.41905;-1.42199;, 1.41396;-1.41905;1.41611;, 1.41396;1.41905;1.41611;, -1.42414;1.41905;1.41611;, -1.42414;-1.41905;1.41611;, 1.41396;1.41905;-1.42199;, 1.41396;1.41905;1.41611;, -1.42414;1.41905;1.41611;, -1.42414;1.41905;-1.42199;; 12; 3;0,1,2;, 3;0,2,3;, 3;4,5,6;, 3;4,6,7;, 3;8,9,10;, 3;8,10,11;, 3;12,13,14;, 3;12,14,15;, 3;12,5,16;, 3;12,16,17;, 3;18,19,6;, 3;18,6,15;; MeshNormals { 6; 0.000000;1.000000;0.000000;, 0.000000;0.000000;-1.000000;, 0.000000;-1.000000;-0.000000;, 0.000000;0.000000;1.000000;, 1.000000;0.000000;0.000000;, -1.000000;0.000000;0.000000;; 12; 3;0,0,0;, 3;0,0,0;, 3;1,1,1;, 3;1,1,1;, 3;2,2,2;, 3;2,2,2;, 3;3,3,3;, 3;3,3,3;, 3;4,4,4;, 3;4,4,4;, 3;5,5,5;, 3;5,5,5;;
Can some kind-person please help me to find the relationship between the faces.. and the normal faces - so I can create a full normal list. After 3 days of working on it, I still cant seem to find the pattern.