Sign in to follow this  
spiffycrony

Mesh.Clone directx

Recommended Posts

spiffycrony    122
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
Billr17    437
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
spiffycrony    122
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

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