View
214
Download
0
Tags:
Embed Size (px)
Citation preview
Lahti International Week 2006
Introduction to X3D
Lesson 1: Creating your models
Introduction to X3D
Presented by:
Peter Wilson,School of Computing & I.T.Wolverhampton University
England
Resources at:
http://www.scit.wlv.ac.uk/~cm1949/Lahti/Index.html
Images on the Internet
Brief History of X3D
Internet: Prototype Web browser – 1990
Text only
Pictures soon added – static, then animated
Virtual Reality Modelling Language (VRML) 3D models over the web – from 1994
HTML
“HTML was designed to display data and to focus on how data looks.” *
example:
* http://www.w3schools.com/xml/xml_whatis.asp
<body bgcolor="yellow"> <h2> Lahti International Week 2006</h2> <p> Welcome to this course on <b>X3D</b></p> <p> We hope that you enjoy it </p> </body>
eXtensible Mark-up Language
“XML was designed to describe data and to focus on what data is.” * You define your own “tags” You need some other software to use the data.
XML example: * <note>
<to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>
* http://www.w3schools.com/xml/xml_whatis.asp
History of X3D
Virtual Reality Mark-up Language (VRML) Started in 1994 3D modelling system running over the Internet New version, to fit in with XML, is X3D. Uses a pre-defined set of tags Interpreted by Internet browser into a 3D model
Creating and Viewing X3D files
To view X3D files:A browser plug-in such as “Flux”
(you will have used other plug-ins to view Flash files, etc)
To create X3D files: A simple text editor e.g. Microsoft Notepad A specialist X3D editor e.g. X3D-Edit Exported from a 3D modelling package
X3D tags:
Creating a box.
<Shape>
<Box size="2 1 1"/>
<Appearance>
<Material diffuseColor="0 0 1"/>
</Appearance>
</Shape>
Basic structure of any model
<Transform ……..>
<Shape>
<Box ……>
<Appearance ….>
<Material ….>
Exercise 1: Your first X3D model
Creating a simple box.
Exercise 2
Some simple shapes
Exercise 3: Street lamp
This street lamp is made from standard shapes.
Can you build it?
Exercise 4: Anglepoise lamp
Your turn!
Produce your own object:
E.g.
Summary
That completes the lesson on building models in X3D. We have looked, briefly, at just a small number of the nodes available.
Please email your best model to: