Advertisement
Guest User

Tao3D example with cached

a guest
Nov 3rd, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import Slides
  2.  
  3. GRID -> 50
  4. SZ -> 40
  5. picture_slide "Page 1",
  6. spheroid sqrt(mouse_x^2+mouse_y^2) / GRID
  7.  
  8. spheroid R2:real ->
  9. rotate_x 20 * time
  10. rotate_y 31 * time
  11. cached R2,
  12. for X in -10..10 loop
  13. for Y in -10..10 loop
  14. for Z in -10..10 loop
  15. if abs(X^2+Y^2+Z^2-R2^2) < 4 then
  16. color abs X/10, abs Y/10, abs Z/10, 50%
  17. cube X*GRID, Y*GRID, Z*GRID, SZ, SZ, SZ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement