Skip to main content

Demand ModelClip of example.

3 replies [Last post]
huanghongbo
Offline
Joined: 2006-02-17
Points: 0

Who have "ModelClip addScope or setScope of example"?
Thanks!

**************************
My English is poor.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
huanghongbo
Offline
Joined: 2006-02-17
Points: 0

ModelClip have bug !!!

herkules
Offline
Joined: 2003-06-12
Points: 0

So, if you can, provide a sample and file an issue.

huanghongbo
Offline
Joined: 2006-02-17
Points: 0

ModelClip mc1 = new ModelClip();
boolean enables[] = {false, false, false, false, false, false};
mc1.setEnables(enables);
mc1.setPlane(0, new Vector4d(0.0, 0.0, 1.0, -0.01));
mc1.setPlane(1, new Vector4d(0.0, 0.0, -1.0, -0.01));
mc1.setCapability(ModelClip.ALLOW_ENABLE_WRITE);
mc1.setEnable(0, false);
mc1.setEnable(1, false);
mc1.setInfluencingBounds(bounds);

ModelClip mc2 = new ModelClip();
boolean enables2[] = {false, false, false, false, false, false};
mc2.setEnables(enables2);
mc2.setPlane(0, new Vector4d(1.0, 0.0, 0.0, -0.27));
mc2.setPlane(1, new Vector4d( -1.0, 0.0, 0.0, -0.27));
mc2.setCapability(ModelClip.ALLOW_ENABLE_WRITE);
mc2.setEnable(0, false);
mc2.setEnable(1, false);
mc2.setInfluencingBounds(bounds);

bug 1: mc1 and mc2 switch ,

mc1.setEnable(0, false);
mc1.setEnable(1, false);
mc2.setEnable(0, true);
mc2.setEnable(1, true);

bug 2: mc1 and mc2 blend ,

mc1.setEnable(0, true);
mc1.setEnable(1, true);
mc2.setEnable(0, true);
mc2.setEnable(1, true);