Million assertions triggered in dgAABBPolygonSoup.cpp

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: Million assertions triggered in dgAABBPolygonSoup.cpp

Postby Julio Jerez » Tue Jan 07, 2014 1:43 pm

Ok after I fix a bug in the matrix decomposition code, it was no dealing with negative scale.
I was able to load the mesh in the model editor, however I notice that there are lot of degenerated faces, and that all the assert.
I need to fin out why is that.

out of curiosity I tried to loa dteh mesh in Max, and max also complain that there are illegal transformation matrices in the model, but mat does manage to load the mode.
what too you use dto make that collate file, I believe that tool is no correct, is making bad matrices.

anyway tonight I see why I am getting so many degenerate faces. if Max load the model the Tool should also load it.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Million assertions triggered in dgAABBPolygonSoup.cpp

Postby Julio Jerez » Tue Jan 07, 2014 1:57 pm

actually if I skip all the asserts, it does manage the editor does manage to load the mesh,
badMesh.png
badMesh.png (67.07 KiB) Viewed 3000 times

basically the mesh has lot of degenerated faces, there are Tool in NewtonMesh that can fix that, I will tell you how to fix it.
but first let me see if I find out what else could be wrong.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Million assertions triggered in dgAABBPolygonSoup.cpp

Postby Forthehorde » Tue Jan 07, 2014 2:04 pm

I made an instance of a cube (hold shift and drag cube and select instance)
I think the degereated faces may be because I used max extended primitves to make the stairs, they are like auto make stairs objects.
User avatar
Forthehorde
 
Posts: 26
Joined: Sun Dec 29, 2013 6:17 am

Re: Million assertions triggered in dgAABBPolygonSoup.cpp

Postby Julio Jerez » Wed Jan 08, 2014 10:39 am

Ok, Here is what is going on. your mesh some how has negative scale, plus is also has lot of degenerated faces.

The newton collision tree does noes not care about that scale, but does no support the degenerated faces.

for that there is the Newton Tools dScene.
dScene is a file system that can precondition meshes. for example is can fix all those errors

you can use the dScene directly, but you do no have too. you can just fix you collada mesh in the Newton Mesh Editor.

-just launch program nme.exe

-in the file menu fine the import submenu and import your mesh.
the editor automatically remove all degenerated faces form imported meshed.

-then in the tool menu, select: Freeze Scene Scale

this will remove all the scaling form the scene nodes and put it into the Mesh Pivot matrix.
there matrix can still have negative scale,

-then in the tool menu select: Freeze Geometry Scale

this will apply all the pivot scale to the mesh geometry.
if there are instances it will make a copy so that each mesh has it own scale.

-optionally, in the scene explores, expand the geometry cache node, and select all the meshes. (the mesh will display in yellow wireframe)
-in the tool menu select convert to polygon

this will convert the mesh to convert faces with are much better for collision, faster and smaller mesh


if you do not want to use the editor, you can link the dScene to you project, and apply the command yourself, I suggest using the editor
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Million assertions triggered in dgAABBPolygonSoup.cpp

Postby Forthehorde » Wed Jan 08, 2014 11:12 am

Can you please give example of doing it with dScene?
I have a offline asset conditioning pipeline it will be better to automaticly do it that every time open editor.
User avatar
Forthehorde
 
Posts: 26
Joined: Sun Dec 29, 2013 6:17 am

Re: Million assertions triggered in dgAABBPolygonSoup.cpp

Postby Forthehorde » Sat Jan 11, 2014 6:11 pm

You will fix character controller this weekend? would be very nice of you.
User avatar
Forthehorde
 
Posts: 26
Joined: Sun Dec 29, 2013 6:17 am

Re: Million assertions triggered in dgAABBPolygonSoup.cpp

Postby Forthehorde » Tue Mar 04, 2014 5:32 pm

Yo julio, whats the status with the character controller? I been away for a while, is it fixed yet?
User avatar
Forthehorde
 
Posts: 26
Joined: Sun Dec 29, 2013 6:17 am

Re: Million assertions triggered in dgAABBPolygonSoup.cpp

Postby Julio Jerez » Wed Mar 05, 2014 10:03 am

I fixed the collision scale I assume it should be working, did you try later SVN?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron