In this assignment, you will complete 2 designs for 3D objects using the techniques (or combination of) in this topic. The objects created will later be used for 3D printing in the practicals.
I have provided approximate timings for you so that you do NOT spend all your time (doing something you like and neglecting other modules!)
Time | Task |
---|---|
45 min | Go through one or two of the video Tutorials listed below. |
30 min | Design an object using revolution, loft, sculpting |
60 min | Design a knight piece and display it on your webpage |
Here is a quick guide:
Instruction Sheets
Specifications
Reference: Fusion 360 How to embed a viewer of a Fusion 360 design into a website
Example
Reference: Javascript plugin JSC3D
.jsc3d
files and place in a location with your HTML files (e.g. folder jsc3d
)
Load the JavaScript plugin code in the header area
<head>
<script type="text/javascript" src="jsc3d/jsc3d.js"></script>
<script type="text/javascript" src="jsc3d/jsc3d.webgl.js"></script>
<script type="text/javascript" src="jsc3d/jsc3d.touch.js"></script>
</head>
Use the following code to load the STL file and display it:
<canvas id="cv" width=640 height=480>
It seems you are using an outdated browser that does not support canvas :-(
</canvas>
<script type="text/javascript">
var canvas = document.getElementById('cv');
var viewer = new JSC3D.Viewer(canvas);
viewer.setParameter('SceneUrl','knight.stl');
viewer.setParameter('ModelColor','#CAA618');
viewer.setParameter('BackgroundColor1','#E5D7BA');
viewer.setParameter('BackgroundColor2','#383840');
viewer.setParameter('RenderMode','flat');
viewer.setParameter('MipMapping','on');
viewer.setParameter('Definition','high');
viewer.setParameter('Renderer','webgl');
viewer.init();
viewer.update();
</script>
Change this line to point to your .STL file
viewer.setParameter('SceneUrl','knight.stl');
Example: 3D model of a Knight Chess Piece
May 2020