CSC400-3D Animation

From CSclasswiki
Jump to: navigation, search

Special Studies, Spring 2011

JOR Notes 31Jan11

  • Katie: Here is the web page for How To Fold It:
  • Julia: Here the crude linkages Mathematica file. The computations are not correct, but this should be enough to start exploring how to get this into POV-ray: Unit90ChainUncurling.nb You must first evaluate the entire Notebook (command-A, shift-enter) and then look at the bottom of the file for instructions.
  • Katie: Here are some old movies that I would like to put on the website:
  • Katie: Ideally these movies would be packaged and/or converted and displayed with a nice interface. Of course I would write a description for each,perhaps you can explore how to arrange these optimally?
  • You were both right in that YouTube allows many different formats. But the key point I don't understand is what they do with your submission, how they wrap it so that it plays so widely and reliably regardless of what you submit. Here is one link: howto_makevideo

JOR Notes 7Feb11

  • Julia: Half-finished Mma code now replaced with version that can be evaluated.
  • Julia: Here is that POV-ray code: fixedangle_4chain.pov
  • (13Feb11): Apparently the final version of that file is on an old laptop I loaned to someone. Every copy I can find does not produce the image below. But I did at least fix the syntax errors, and it now produces an image that is the precursor of the nice version. Sorry! The file is now replaced. Download again.
  • Katie: When you get a chance, could you please document how to Export[] to POV-ray from Mathematica.

JOR Notes 21Feb11

Julia: I revised the Mathematica code substantially. I think I finally got it working. Here's the link again: Unit90ChainUncurling.nb

8-chain, frame 2.
8-chain, frame 15.
8-chain, frame 16.

Katie: I haven't read this discussion fully, but perhaps it will be a start:

JOR Notes 21Mar11

The following Mathematica code is a variation on BloomingCube.nb, which was the original Latin cross unfolding. This unfolds to the same Z-shape that Katie has been refolding to a parallelogram.

Frame from Cube2ZUnfolding.nb

Special Studies, Fall 2010

Useful Links for Wiki Editing

Notes by Joe

Thursday 16 Sep 10

Here is the Mathematica code I showed you today. Remember: Select-All, then Shift-Return to evaluate. The graphics objects are stored in an array named ganim. Currently set to 20 snapshots. You only need to alter the SetDirectory[] command to store files where you want. And you need to figure out and master the complexities of the Export[] command.

Here is the animation from that file. 20 frames displays too fast!

CubeUnfolding.gif: Animated GIF, 20 frames.

Tuesday 12 Oct 10: Blooming Parallelogram

Another animation. Same instructions as above. The Mathematica file is structured the same.

Here is the animate GIF I made:

CubePara.gif: Animated GIF, 50 frames.

50 frames might be too much for your puposes, in which case simply edit the Mathematica file near the end where you see n = 50 and change that to some smaller number of frames.

Monday 8 Nov 10

I regenerated the ganim data structure in the BloomCubePara.nb file above (and overwrote the file; but same link). I think after you load it, you must %-A (Select All) Shift-Return (Evaluate) to recompute everything. I set n=25 so ganim should contain 25 frames. You can alter that n-value right near the end to get more or fewer frames of animation. I also commented-out the file writing; you'll have to add a custom Export[] command.

Thursday 14 Oct 10

Blender Textbook

Here is the Blender textbook I mentioned:

This book may be too elementary to be of assistance, but it will be useful for me at least!

Mathematica Strings

Mathematica trick learned from R.B. today: a <> b concatenates string a to string b. She used it to create filenames: "SomeStringHere" <> ToString[i] <> ".obj".