Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

88er

question about 3dmaxsdk.

This topic is 5203 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I develop a export plugin use 3dmax5.0 sdk. I use pmesh->tVerts.x pmesh->tVerts[i].y for texturecoordinate u,v. but i find a sample code,it looks like StdUVGen *uv; ... uv->GetUVTransform( uvtrans ); uvtrans_row0 = uvtrans.GetRow(0); uvtrans_row1 = uvtrans.GetRow(1); uvtrans_row3 = uvtrans.GetRow(3); float tu = *ptu * uvtrans_row0.x + *ptv * uvtrans_row1.x + uvtrans_row3.x; float tv = *ptu * uvtrans_row0.y + *ptv * uvtrans_row1.y + uvtrans_row3.y; u = tu; v = 1 - tv; save(u,v); i don''t know why it multiply this transform matrix instead of use pMesh->t[] directly,i hope someone explain for me. tanks a lot.sorry for my bad english.

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!