Page 1 of 1

Reading vertex elements/row maxscript

Posted: Fri Feb 13, 2015 4:00 am
by dainazinas
Hi guys, I`m currently rebuilding my Battlefield 3 mesh script. I`m hitting a wall when I come to reading elements from vertex row

So say I have vertex stride of 48 bytes, I have element positions ie

Code: Select all

(0,6,12,16,20,26,32,40)
, and usage map

Code: Select all

(pos,bisign,normal,tangent,texcoord0,texcoord1,boneindex, boneweights)
. Only "pos" is static and the rest of elements change positions from model to model. What would be a common approach to reading and storing the data?


Thanks guys