Jump to content
  • Advertisement
Sign in to follow this  

MaxScript: Getting the diffuse texture of each face

This topic is 3903 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

-- Faces
if Mesh.NumFaces > 0 then
    for i = 1 to Mesh.numFaces do
	verts  = GetFace       Mesh i
	tvert  = GetTVFace     Mesh i
	normal = GetFaceNormal Mesh i
	append FacesX (verts.x as integer-1) 
	append FacesY (verts.y as integer-1) 
	append FacesZ (verts.z as integer-1) 
	append FacesNX (normal.x as Float)
	append FacesNY (normal.y as Float) 
	append FacesNZ (normal.z as Float)
	append FacesTX (tvert.x as integer-1) 
	append FacesTY (tvert.y as integer-1) 
	append FacesTZ (tvert.z as integer-1)

Thers my code for getting the vertices, texture vertices and normals but now how would i get the diffuse texture name for each face? Thanks

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!