4 Sky Objects Katas
4.1 Sky Objects 1 Kata (difficulty = 2)
Tip: basic-cone also has the keywords: radius-bottom, radius-top, and height.
read
Code a scene with a cone in the sky that has random scale, color, and rotation.
code
#lang 3d-exploration (exploration-scene #:sky-objects (list (basic-cone #:scale (random-scale) #:color (random-color) #:rotation (random-rotation))))
4.2 Sky Objects 2 Kata (difficulty = 2)
read
Code a scene with 2 sky objects: a highly-transparent, random-colored object and a 3D model.
code
#lang 3d-exploration (define (my-sphere) (basic-sphere #:color (random-color) #:opacity 0.2)) (exploration-scene #:sky-objects (list (my-sphere) thoughtstem-logo))
4.3 Sky Objects 3 Kata (difficulty = 1)
Tip: Other 3D models are: alien-plant-1, alien-plant-2, baby-cactus, bunny-rabbit, horse, magic-stone, thoughtstem-logo, and willow-tree.
read
Code a scene with several 3D models in the sky.
code
#lang 3d-exploration (exploration-scene #:sky-objects (list bird astronaut sword))
4.4 Sky Objects 4 Kata (difficulty = 1)
Tip: exploration-scene has the following keywords: speed, fly-mode?, environment, ocean, stars, sky-objects, and ground-objects.
read
Code a scene with a fog-free egyptian environment and stars.
code
#lang 3d-exploration (exploration-scene #:environment (basic-environment #:preset 'egypt #:fog 0) #:stars (basic-stars))
4.5 Sky Objects 5 Kata (difficulty = 1)
read
Code a scene with a fog-free forest environment, stars, and dark horizon and sky colors.
code
#lang 3d-exploration (exploration-scene #:environment (basic-environment #:preset 'forest #:horizon-color 'dark-blue #:sky-color 'black #:fog 0) #:stars (basic-stars))