Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Java 3D / May 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
pyper33594@yahoo.com - 11 May 2006 18:10 GMT
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>
<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>
Cédric Olmanst - 11 May 2006 19:25 GMT
pyper33594@yahoo.com 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);
Cédric Olmanst - 11 May 2006 19:27 GMT
pyper33594@yahoo.com 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);
Oliver Wong - 11 May 2006 21:38 GMT
>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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.