PDA

View Full Version : Morph target + array question


chrrox
02-17-2010, 03:02 AM
I have 2 arrays
OriginalVerts and MorphMovement
I am trying to make morph targets from these values I am reading and i think i understand that but
how do i take the values in OriginalVerts and add them to the MorphMovement array so in MorphMovement it contains the updated position.
example
in OriginalVerts I have (1,2,3) for my xyz
in MorphMovement I have (.3,.2,.1)
I want the end result of MorphMovement or a new array if needed to be (1.3,2.2,3.1).
If you need to see the code I am using i can post it
thanks so much in advance :)

chrrox
02-17-2010, 03:41 AM
I managed to figure it out something like
vx = (ReadBEfloat f) + Vert_array1[k].x
vy = (ReadBEfloat f) + Vert_array1[k].y
vz = (ReadBEfloat f) + Vert_array1[k].z

CGTalk Moderation
02-17-2010, 03:41 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.