PDA

View Full Version : blocks float above ground?


Hilt
06-07-2004, 05:18 PM
Is there anyway to get collision detection in dynamics more precise?

I think that's my main problem as objects are above ground, not on it.

a little example: click me, 800kb .mov (http://www.kolumbus.fi/miika.tukki/freepicserve/dynamics_blocks.mov)


Setting collision eps down/up didnt do any noticeable good. If it doesnt boost rendertime too long, I was thinking to add displacement map on the floor material to get it higher. Appears somewhat working in stills.

.hilt

Jonj1611
06-08-2004, 07:40 AM
Hi, If changing the eps does not work you could try either a different integration method, or you could use a proxy object. Basically take your cube and copy it, scale down the original cube so it is smaller than the new cube. Make the smaller cube a child of the larger cube(I think, it's one way or another) and apply the rigid dynamics to the smaller cube, this way you will see the large cube, but it is the smaller cube that is creating the dynamics, ie you should be able to see the large cube touch the floor but the original smaller cube is still hovering above it. I really hope that made some sort of sense but if you have any problems come back to me or there is a short bit about it in the dynamics manual.

Monty
06-08-2004, 08:20 AM
Click on the solver object, under details tab -> Collision eps -> set this to 1 or smaller, depending on the scale of your objects.

Hilt
06-08-2004, 08:31 AM
I've set collision eps down to 0.01, but having it low causes other probs. Changing integration method didnt do that much (it's in Adaptive with 8 samples). I think it's because they're just cubes so even Midpoint probably could calculate the collisions.

Thanks for the trick-extraordinaire, Jonj1611, that sounds just what it takes to make it work.

.hilt

Jonj1611
06-08-2004, 02:28 PM
NP, it worked for me when I wanted a ball running down some rails. The ball was hovering above the track so I used a proxy object and it worked fine!

Monty
06-09-2004, 01:01 AM
Check the scale of your objects. They might be scaled too small. In this case, you could probably just enlarge the whole scene and minimize the floating effect. Lowering the eps also causes object corners to intersect noticeably.

BTW, if your going after realism, the proxy technique as outlined by Jonj1611 can ease the dynamics simulation as well, as you can simulate using a simple cube and hide it, then parent to this a high res cube (with edges and corners beveled) and use that for the final render.

CGTalk Moderation
01-18-2006, 09:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.