Jump to content
  • Advertisement

Archived

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

Smegboy

3d animation set woes.

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

We are programming a program that loads an x file into an animation set. Is there a way to apply a different texture to one of the objects loaded from this x file. We have been able to get another instance of the object but not to change its texture. We tried the following. mainform.DXDraw.D3DRM3.GetNamedObject(PChar(a), tmp); PartFrame:=IDIRECT3DRMFRAME3(tmp); mainform.DXDraw.D3DRM3.CreateFrame(IDIRECT3DRMFRAME3(mainform.DXDraw.Scene),MeshFrame); mainform.DXDraw.D3DRM3.LoadTexture(PChar(ExtractFilePath(Application.ExeName)+tex), image); PartFrame.SetTexture(image); MeshFrame.SetPosition(IDIRECT3DRMFRAME3(mainform.DXDraw.Scene), -10, 0, 0); MeshFrame.AddVisual(PartFrame); N.B. all calls had return value of 0. Any help would be most appreciated. Cheers, Matt. Edited by - Smegboy on 3/30/00 10:28:58 PM

Share this post


Link to post
Share on other sites
Advertisement
I am actually answering my own question here,

the solution was to call setmaterialmode(D3DRMMATERIAL_FROMFRAME)

Thanks me

Share this post


Link to post
Share on other sites

  • 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!