Advertisement Jump to content


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


3d animation set woes.

This topic is 6867 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
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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!