代写 html shell graph security 01/04/2019 Web3D Assignment 1

01/04/2019 Web3D Assignment 1
Web3D Assignment 1
Due Date: end week 5 9pm Friday April 5th 2019 Tom the Turtle!
Assessment: 30%
Side view Top view
Textured shell Animated Turtle
Clarifications and Changes
None so far
Overview
Front view
In this assignment, you will write an X3D scene embedded in an html file using the X3Dom library to draw a hierarchical model of a turtle model made up of simple polygon mesh shapes: octahedrons (polyhedron with 8 faces, also known simply as diamonds) for legs and head, a dodecahedron (polyhedron with 12 faces) for the body, a simple triangle for the tail and spheres for the eyes. The model will need to perform a swimming animation.
The assigment may be done as individuals, or in pairs.
The tutorials will teach the fundamentals required in construction of the assignment and it is recommended that you follow the tutorial exercises. This assignment counts for 33% of your final grade for this course.
Later assignments in this course build on the ideas in this assignment. Performing well in this assignment will make future assignments easier to understand and complete.
Dodecahedron and Octahedron Shapes
The suggested dimensions for the dodecahedron and octahedron shapes are shown in the diagrams
http://titan.csit.rmit.edu.au/~e20068/teaching/w3d/ass1/index.html 1/3

01/04/2019 Web3D Assignment 1
y
(0, 0.5, 0) ¦Èxx
(1, 0, 0)
(cos¦È,sin¦È)
z
Dodecahedron Top View
(0, 0.3, 0)
y
(0, 0.3, 0)
(0, -0.5, 0) Dodecahedron Side View
(1, 0, 0)
Octahedron Top View
(0, -0.3, 0) Octahedron Side View
x
(-0.5, 0, 0)
(0.5, 0, 0)
(0, -0.3, 0)
z
The dodecahedron is more specifically a hexagonal bipyramid and the octahedron a square bipyramid (or just a “diamond”). Hierarchy
Use the following hierarchy in your model, although you may add further joints and segments (shapes) if you wish.
x
(-0.5, 0, 0)
(0.5, 0, 0)
Root
Body
FRHip
FRKnee
FRAnkle
FLHip
FLKnee
FLAnkle
RRHip
RRKnee
RRAnkle
RLHip Tail Neck
RLKnee
RLAnkle
FRUpLeg
FLUpLeg
RRUpLeg
RLUpLeg
Tail
Head
LEye
REye
FRLowLeg
FLLowLeg
RRLowLeg
RLLowLeg
FRFoot
FLFoot
RRFoot
RLFoot
http://titan.csit.rmit.edu.au/~e20068/teaching/w3d/ass1/index.html
2/3

01/04/2019 Web3D Assignment 1
Details
The figure should consist of a shell, a head with eyes, four legs made of three segments. The shell is a dodecahedron, the legs and head are made from octahedrons and the tail from a triangle.
You will create polygon mesh shapes for the body segments using the IndexedFaceSet X3D node. To show the joints, sometimes also called pivot points, transform nodes should include a set of axes as one of their children. An optional extra is to provide the ability to enable/disable rendering them using e.g. a touch sensor node.
You will create a semi-transparent plane of water on which the turtle floats. Optionally you will create a glass aquarium (fish tank) for the turtle and water using either planes or an indexed face set.
The X3D ‘USE’ and ‘DEF’ elements should be applied to minimise duplicate markup/code in the file.
Proper transforms including scale/rotation/translation should be applied to minimise the number of IndexedFaceSets that are defined.
The figure should be properly constructed according to a hierarchy/scene graph with the torso attached to the turtle root, head, legs and tail attached to the torso by neck, hip and tail joints, lower legs attached to upper legs by knee joints and feet attached to lower legs and arms by ankles. Each joint will require a transform node, and should have a set of axes. Proper colouring should be applied using the Appearance and Material X3D elements.
A texture should be applied to the shell. The texture is linked here. Note: if using the chrome/chromium browser extra command line arguments are needed: –allow-file-access-from-files –disable-web-security –user-data-dir (and see the extra information in the texturing tutorial).
A simple swimming animation will have the legs moving, and the head and tail bobbing. Whereas a better, more complex animation will include the knee and ankle joints also rotating.
Optionally use a touch sensor on the turtle body/shell to start the animation. These requirements hold for all assignments:
The markup/code must be valid X3D (errors/warnings will result in less marks).
Your assignment is assessed using recent versions of chrome or firefox and X3DOM, make sure your assignment runs correctly on them.
Due Date and Late Submissions
The assignment deadline is as above. Late submissions receive a 10% per day penalty (calculated hourly on a pro rata basis, starting 9:00am next working day, i.e. Mon). Any assignment not submitted by 9:00pm the next Friday will receive 0 marks.
Submission
Submission is via canvas.
Rubric/Marking guide
How well features are implemented will determine whether an assignment is in the upper or lower range of its mark.
PA: Static turtle model with torso and limbs displayed as described using indexed face sets for shapes. Water.
CR: Use of colour. Reduced code duplication via proper use of ‘USE’ and ‘DEF’ tags.
DI: Basic animation. Touch sensor to control animation.
HD: A correctly constructed hierarchy/scene graph. Complex animation including joint rotations. A glass aquarium. Texture mapping.
http://titan.csit.rmit.edu.au/~e20068/teaching/w3d/ass1/index.html
3/3