Jump to content
  • Advertisement
Sign in to follow this  
spiffycrony

Mesh.Clone directx

This topic is 4092 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 am getting an exception in the following line Dim Mesh2 As Mesh = mesh_.Clone(MeshFlags.Managed, VertexFormats.PositionNormal Or VertexFormats.Diffuse, direct3DDevice) This happens when i convert a huge binary stl file into directx x file and then load the mesh_ with the x file data. However it works fine with small binary stl file. Is there any limitation on the no of facets which can be loaded into a directx mesh object. Any idea of why the exception occurs?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by spiffycrony
The exception is ApplicationException. The error message is "Error in Application".


Are you using VB .NET and Managed DirectX? If so, what are the inner exception details? The inner exceptions may contain a bit more useful information if you trace through them. ApplicationException is fairly generic and could apply to alot of things.

Share this post


Link to post
Share on other sites
The innerexception is nothing. The exception details are as follows


ErrorString "D3DERR_INVALIDCALL" String
InnerException Nothing System.Exception
Message "Error in the application." String
Source "Microsoft.DirectX.Direct3DX" String



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!