Sagewire Logo

I am REALLY new to this-need to slow down 3d cube

4 Message(s) by 3 Author(s) originally posted in 3d java


From: pyper33594 Date:   Thursday, May 11, 2006
I've created a 3d cube that spins. My problem is that it spins
extremely fast! Can I add anything or do anything to make this slow
down??? PLease help
THanks<APPLET CODE="image3dcube.class " WIDTH=350 HEIGHT=400>
<PARAM name="speedvalue"="1">
<PARAM name="POVvalue"="2">
<PARAM name="Thetavalue"=".01">
<PARAM name="background" value="FFFFFF">
<PARAM name="shadowcolor" value="FFFFFF">
<PARAM name="textcolor" value="000000">
<PARAM name="spotlight" value="no">
<PARAM name="showlightbutton" value="no">
<PARAM name="sleeptime" value="8">
<PARAM name="target" value="_self">
<PARAM name="anglestep" value="3">
<PARAM name="mouseresponse" value="5">
<PARAM name="zoomspeed" value="1">
<PARAM name="image0" value="image1a.jpg">
<PARAM name="image1" value="image2a.jpg">
<PARAM name="image2" value="image3a.jpg">
<PARAM name="image3" value="image4a.jpg">
<PARAM name="image4" value="image5a.jpg">
<PARAM name="image5" value="image6a.jpg">
<PARAM name="url0" value="http://www.geocities.com/pyper33594/cube">
<PARAM name="url1" value="http://www.geocities.com/pyper33594/cube">
<PARAM name="url2" value="http://www.geocities.com/pyper33594/cube">
<PARAM name="url3" value="http://www.geocities.com/pyper33594/cube">
<PARAM name="url4" value="http://www.geocities.com/pyper33594/cube">
<PARAM name="url5" value="http://www.geocities.com/pyper33594/cube">
</APPLET> <script language="JAVAScript">
</CENTER>
</body>


From: =?ISO-8859-1?Q?C=E9dric_Olmanst?= Date:   Thursday, May 11, 2006
pyper33594@xxxxxxxxxxx a écrit :
I have created a 3d cube that spins. My problem is that it spins
extremely fast! Can I add anything or do anything to make this slow
down??? PLease help



TransformGroup tgSpin = new TransformGroup();
tgSpin.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
Alpha alpha = new Alpha(-1,*4000*); _<=_change_that_value_
RotationInterpolator rotator=new rotationInterpolator(alpha,tgSpin);
BoundingSphere bounds = new BoundingSphere();
rotator.setSchedulingBounds(bounds);
tgSpin.addChild(rotator);


From: =?ISO-8859-1?Q?C=E9dric_Olmanst?= Date:   Thursday, May 11, 2006
pyper33594@xxxxxxxxxxx a écrit :
I have created a 3d cube that spins. My problem is that it spins
extremely fast! Can I add anything or do anything to make this slow
down??? PLease help



TransformGroup tgSpin = new TransformGroup();
tgSpin.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
Alpha alpha = new Alpha(-1,4000); <=_change_that_value_(4000)_
RotationInterpolator rotator=new rotationInterpolator(alpha,tgSpin);
BoundingSphere bounds = new BoundingSphere();
rotator.setSchedulingBounds(bounds);
tgSpin.addChild(rotator);


From: Oliver Wong Date:   Thursday, May 11, 2006
I have created a 3d cube that spins. My problem is that it spins
extremely fast! Can I add anything or do anything to make this slow
down??? PLease help
THanks
<APPLET CODE="image3dcube.class" WIDTH=350 HEIGHT=400>
[snip the rest]



Did you make the above class file?

- Oliver



Next Message: Problem with MainFrame class in JApplet



Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional