A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Henry00 » Tue Aug 23, 2011 8:36 am
Hi everyone it's me again from 00Laboratories, I was wondering about something..
Currently once someone makes a model, for example a wheel or a barrel, I would use a primitive shape NewtonCreateCylinder.
But since the representation of the cylinder ( newtonCollisionForEachPolygonDo ) is just a triangle based cylinder, would it be efficient to use a treecollision, or does Newton have problems when I build a cylinder myself at simulating the physics?
This decreases alot of work when making the physical world, and allows advanced "decoration" to have presize physics as well instead of a cylinder.
Thanks! ( and @ JoeJ, we are getting closer with lighting
http://henry00.ftpaccess.cc/henry00/projects/Wind16_light2.png )
-
Henry00
-
- Posts: 37
- Joined: Mon Aug 01, 2011 7:29 pm
- Location: Germany
-
by Julio Jerez » Tue Aug 23, 2011 8:41 am
there is a limitation with teh collison system and that si that each collison shape must be convex, therefore you cna no make a cylinder usign collision tree since the algorithm will not have a way of knowing what is outside and inside the shapen.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Henry00 » Tue Aug 23, 2011 9:12 am
Yeah I can apply that rule thanks for the post, but somehow treecollision aint falling, and the primitives are..
That is if I understand convex correct, no inside holes? just plain outside right
yeah now I get it, you mean literally triangles in the world, and not a solid shape to check with that has an inside!
Would there be a different way to achieve this or should I just give up on the idea of making things more perfect..
-
Henry00
-
- Posts: 37
- Joined: Mon Aug 01, 2011 7:29 pm
- Location: Germany
-
by Julio Jerez » Tue Aug 23, 2011 12:39 pm
Tree collision are by definitions static objects.
The engine conve tree collision to and array of flar conve polygon.
a Flat conve polygon is a special case of a conve solid with zere volume.
The engine uses that condition to determine if a solid volume shape with volume collide with a shape plane.
The functions of a solid-shape-flatPolygon collsion test are special, and the know the the first faces has a volume.
you can use a compound collision,
there is an add on to the engine that can decomposes a solid into an agregate fo convex solid, but the integration is still incompleted.
the first time I tryed I found some Bugs, they were fixed but I have not re integrated the latest version.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Henry00 » Tue Aug 23, 2011 2:40 pm
Thanks Julio, even though it's strange that your english doesn't match your programming skills, I guess I have to wait until newton increases in functionality!
Good luck, I will be waiting!

-
Henry00
-
- Posts: 37
- Joined: Mon Aug 01, 2011 7:29 pm
- Location: Germany
-
by jiandingzhe » Wed Aug 24, 2011 4:14 am
Julio Jerez wrote:Tree collision are by definitions static objects.
The engine conve tree collision to and array of flar conve polygon.
a Flat conve polygon is a special case of a conve solid with zere volume.
The engine uses that condition to determine if a solid volume shape with volume collide with a shape plane.
The functions of a solid-shape-flatPolygon collsion test are special, and the know the the first faces has a volume.
you can use a compound collision,
there is an add on to the engine that can decomposes a solid into an agregate fo convex solid, but the integration is still incompleted.
the first time I tryed I found some Bugs, they were fixed but I have not re integrated the latest version.
I guess some modelling software might have the function of separating arbitrary shapes into convex shapes. It's just a guess...
-

jiandingzhe
-
- Posts: 48
- Joined: Fri Jul 08, 2011 11:21 am
- Location: Beijing
by JernejL » Wed Aug 24, 2011 4:28 am
Ofcourse, but you are still dealing with 1-dimensional flat polygon shapes, and they are very complex to handle efficiently in real-time, you can separate your meshes into compound shapes made of convex hulls as a offline model preparation step, that works very well in newton.
-

JernejL
-
- Posts: 1587
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 2 guests