aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Trying my First 3d Animation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Trying my First 3d Animation" Watch "Trying my First 3d Animation" New topic
Author

Trying my First 3d Animation

Joe Ridener
Ranch Hand

Joined: Jul 16, 2012
Posts: 86
Ok with Rect2D...

If you guys could answer this the way that I am asking.. I would love you...

Arithmetic is needed for this operation, I once had all the geometry formulas for calculating areas of various shapes completely memorized. I top out at advanced algebra at best. This operation is probably best for trig.. Again nothing I have not heard of. Point is not too complicated to go over these things again. I use algebra in my algorithms for timing using double precision variables all the time. This is easy for me.


Trying to draw a rolling cube using that is 3d and rolls on its access as well. I can almost do this as is. I want it to be able to roll away from me on the z axis as well as a linear roll. This means drawing oblong 2DRect's that re-shape themselves with the repaint method. Totally not impossible for me to do. But the arithmetic is complicated as one rect narrows and another expands to give it a solid 3 dimensional looking roll.

I am not wanting to install new framework to simply draw the cube and roll it. Question is best answered by providing a link to explain the arithmetic of the roll. I know how to do the deltas and everything else. Just need to know arithmetic for calculating the area of the rectangle as it is rolling away or towards the screen. Not in a linear fashion but away from or towards the viewer in a 3D fashion.

In your travels have you ever came across a web-site that provides calculations to give coordinates for a rolling cube? My math is good and I use it in my programs for timing and coordination of x and y axis all the time. I understand I am asking a mouthful but do your best if you can.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trying my First 3d Animation