Error: Failed to create d3dx mesh: D3DERR_INVALIDCALL

Error: Failed to create d3dx mesh: D3DERR_INVALIDCALL

Postby dbuchhofer » 21 Dec 2009 21:40

I'm getting this currently when trying to apply unwrap modifiers.. while debugging it, i noticed that each object picked individually worked fine, but when i window selected it failed.

turns out there was a 0face object in the window selection.

may want to add a check/warning for empty objects.

Thanks.
dbuchhofer
 
Posts: 13
Joined: 21 Dec 2009 21:35

Re: Error: Failed to create d3dx mesh: D3DERR_INVALIDCALL

Postby Igor Posavec » 22 Dec 2009 13:59

hello dbuchhofer

thank you for the report. Working with 0face objects, double-face polygons, obscure 4vertex triangles or degenerated meshes causes inevitably a crash during the production - the question is only where. Since FlatIron was originally made for game engines, it has the preemptive buffer to react very sensible of all errors done by 3d modler or by some strange import/export geometries from other applications. Best known are CAD tools for architects, working in world-scale 0.01cm and then importing this into Max Inch and then rescaling it. Almost in all cases the degenerated geometries will cause:
- crash in FlatIron
- Rendering Errors in Vray/Mray with GI or any other fine rendering calculation (reflections, refractions etc)
- problems by exporting it to other applications
- wrong UVs
- etc.

We will definitely cover some of degenerated issues in the next release, to ignore such behavior, yet it can have an strong impact on the quality of UV Unwrap - 0face face still has a dimensions in a world space and can cause strange artifacts in the map).

Best way, of course, is to work tidy and to avoid creating bad meshes. There is whole science in the last years made of proper modeling techniques and mesh-design, there are numerous tools and scripts on the market doing "Mesh-Clean" - i myself use them on regular basis (we get many models from apprentice workers or outsourcing studios where it is clear by observing the model that the artist didn't learn well his job - Mesh-Cleaners are life-saver :)

thanks
best regards
--
igor posavec
CEO, 3d-io games & video production GmbH
igor@3d-io.com
Igor Posavec
3d-io staff member
 
Posts: 679
Joined: 02 Oct 2008 14:25

Re: Error: Failed to create d3dx mesh: D3DERR_INVALIDCALL

Postby dbuchhofer » 22 Dec 2009 14:38

Interesting, could you point me towards some of these cleaners? i'm slowly building my own maxscript tools for mesh cleanup, but if there was something purchasable that would probably be cheaper!

I'm adapting a lot of (really bad) high poly work to real-time engines and finding theres quite a few pitfalls with bringing so called "modern" models, back into line.

PS: Nice plugin, I'm finally getting a chance to play with the demo some, and it looks like it will be a big time saver.
dbuchhofer
 
Posts: 13
Joined: 21 Dec 2009 21:35


Return to Flatiron

Who is online

Users browsing this forum: No registered users and 1 guest

cron