Sign in to follow this  

Mesh.Clone directx

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

This topic is 3872 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this