Sign in to follow this  
LotusExigeS1

SlimDX - Mesh.Simplify and Progressive Meshes

Recommended Posts

LotusExigeS1    134
Can someone confirm if either simplify or progressive meshes work in SlimDX. I know they probably do but the calls take very few parameters but they fail everytime (no matter what I pass). Is there something I need to know/change about the 'source' mesh before calling either ? Thanks for any help.

Share this post


Link to post
Share on other sites
LotusExigeS1    134
You are right, when I say 'fail' I mean crash my app. I dont know how to get any more info out of directx. If you tell me I will do it. The only error reported is 'invalid call' everytime -

SlimDX.Direct3D9.Direct3D9Exception: D3DERR_INVALIDCALL: Invalid call (-2005530516)

at SlimDX.Result.Throw[T](Object dataKey, Object dataValue)

at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue)

at SlimDX.Direct3D9.ProgressiveMesh..ctor(Mesh mesh, Int32 minimumValue, MeshSimplification options)

at WindowsApplication1.clsGame3.LoadContent(Boolean pDeviceReset) in C:\Source\SlimDX\Simple\Simple\Game 3\clsGame3Main.vb:line 762

Share this post


Link to post
Share on other sites
LotusExigeS1    134
And this is the call I make -

Dim pm As New ProgressiveMesh(cGeometry, 1, MeshSimplification.Vertex)

cGeometry has position, normal, texture coord, tangent and birnormal for its vertex declaration.

Does this help ?

Share this post


Link to post
Share on other sites
LotusExigeS1    134
i am running the debug version and have installed the debugview. I am getting a load of warnings/output for other stuff (not related), but my simplify and progressive mesh calls dont produce any output. Just the invalid call errors.

Any ideas ?

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