Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Creates an "Upright" leg style for creatures whose legs should
reach out to their fully extended length.
- Loading branch information
Christopher Lane Hinson
committed
Mar 9, 2011
1 parent
7254257
commit 96a19fa
Showing
5 changed files
with
73 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
module Models.Hellion | ||
(hellion, | ||
hellion_appendage, | ||
hellion_eye) | ||
where | ||
|
||
import RSAGL.Math | ||
import RSAGL.Modeling | ||
import Quality | ||
import Models.Materials | ||
import RSAGL.Math.CurveExtras | ||
import RSAGL.Color.RSAGLColors | ||
|
||
hellion :: Quality -> Modeling () | ||
hellion _ = model $ | ||
do sphere (Point3D 0 0.6 0) 0.1 | ||
hellion_skin | ||
|
||
hellion_appendage :: Quality -> Modeling () | ||
hellion_appendage _ = model $ rotate (Vector3D 1 0 0) (fromDegrees 90) $ | ||
do sor $ linearInterpolation $ | ||
points2d [(0 ,0), | ||
(0.02,0.25), | ||
(0.03,0.5), | ||
(0.02,0.75), | ||
(0.0,1.0)] | ||
hellion_skin | ||
|
||
hellion_eye :: Quality -> Modeling () | ||
hellion_eye _ = model $ | ||
do model $ | ||
do openCone (Point3D 0 0 (-0.1),0) (Point3D 0 0 0.1, 0.1) | ||
hellion_skin | ||
model $ | ||
do hemisphere (Point3D 0 0 0.1) (Vector3D 0 0 1.0) 0.1 | ||
material $ pigment $ pure white | ||
model $ | ||
do perspectiveSphere (Point3D 0 0 0.1) 0.103 (Point3D 0 0 0.25) | ||
material $ pigment $ pure blue -- TODO: vary the eye color! Beware the rare red-eyed hellion! | ||
twoSided True | ||
model $ | ||
do perspectiveSphere(Point3D 0 0 0.1) 0.106 (Point3D 0 0 0.22) | ||
material $ pigment $ pure black | ||
twoSided True | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters