NewtonTreeCollisionEndBuild optimization crash

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

NewtonTreeCollisionEndBuild optimization crash

Postby JernejL » Mon May 13, 2019 5:36 pm

NewtonTreeCollisionEndBuild will crash with following data when optimization is used.

https://paste.ubuntu.com/p/pjBw5KCpcz/

Vertex is specified with index and xyz coords

Faces have face index and start + stop vertex.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1451
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: NewtonTreeCollisionEndBuild optimization crash

Postby Julio Jerez » Tue May 14, 2019 9:01 am

I pasted on demo ../applications\demosSandbox\sdkDemos\demos\UsingNewtonMeshTool.cpp
the function name is DebugJernejLMesh

I do not see a crash in windows, but is almost as if the optimization is not doing anything.

I see a regular grid flat mesh with some holds on it, but is look as is missing some triangle on the perimeter. is that right.

anyway is not crashing in windows, by since I can not have a Linux system, maybe you can try build the SDK on your Linux system and see if is works.

you need to use the debug menu to see if they is not visual representation.
to see the optimized you can edit line 329: NewtonTreeCollisionEndBuild(collision, 0);

the code is set up to display the wire frame mesh.

I found a bad bug with collsion and picking.
not sure why by the contact are in the wrong place when I try to pick the box, that seem really wrong. I had not seem it before but has nothing to do with your mesh, I will check that out.
unless the mesh is corrupting some memory.

but see if you get it to run.
Julio Jerez
Moderator
Moderator
 
Posts: 10984
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NewtonTreeCollisionEndBuild optimization crash

Postby Julio Jerez » Tue May 14, 2019 8:32 pm

well I am really glad you reported this bug because I am using for improving the contact filter for mesh.

in doing that I see what is wrong wit the mesh, It is an alternate triangle soup with every center triangle is missing.
plus the mesh is upside down.

I am surprise is works at all. the collision is funning because the box collide with a bunch of single triangles that art facing down (that look lei a bug that I have to check)

if you enable show solid collision faces you will see that the entire mesh is facing down.
The box should just path trough by I think is hinting the edges.

edit:
When i invert the winding it works fine.
Julio Jerez
Moderator
Moderator
 
Posts: 10984
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NewtonTreeCollisionEndBuild optimization crash

Postby JernejL » Wed May 15, 2019 2:40 am

Ok, this is strange, there is a crash in my newton build, but this could be because my build is a bit out of date - i must update it.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1451
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: NewtonTreeCollisionEndBuild optimization crash

Postby JernejL » Thu May 16, 2019 3:12 am

Confirming: latest newton build works well and has no crash with this mesh :) case closed.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1451
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 1 guest

cron