Chris Pollett >
Students > [Bio] [Del1] [Del2] [Del3] |
CS298 Proposal3D to SVG TranslatorPaungkaew Sangtrakulcharoen (paungkaew@hotmail.com) Advisor: Dr. Chris Pollett Committee Members:. Dr. Cay Horstmann (cay@horstmann.com) Dr. Ho Kuen Ng (Ng@mathcs.sjsu.edu) Abstract: Today 3D objects cannot be viewed on common web browsers (Netscape and Internet Explorer) without plugins. We want to develop a transformation so that users can view 3D graphics on common browsers without plugins as easy as plugins have been used. X3D (Extensible 3D) [W3DC01] is a W3C open standard for 3D on the web and SVG (Scalable Vector Graphics) [W3C01] is an XML based mark-up language for describing 2D line-art graphics. SVG is currently supported by a plugin available from Adobe and natively by the Mozilla SVG browser. It is likely that SVG will be supported natively in future versions of both Netscape and Internet Explorer. The goal of this project is to develop a transformation from X3D to SVG that would allow web sites to exploit 3D objects without having to worry about whether the client is patient enough and competent enough to download and install a plugin. Typically, 3D objects are modelled as a mesh of 2D polygons. To present 3D objects as smooth surfaces and render the polygons effeciently involve in several non-trivial graphic algorithms. A part of the implementation is to take X3D files and produce a mesh of 2D polygons corresponding to the X3D objects. The 2D polygons will be written in SVG format. In many situations, the client wants to view 3D objects in different perspectives, so we must be able to recalculate and to display the object correctly in the desired perspectives on the client side. Hence, another challenge of this project is that we have to optimize the size and speed of the translation process to be fast and small enough as to be downloadable. This is needed so that the client will not become bored while manipulating the 3D objects. In CS297, we proposed to use a CSS2 [W3C98] stylesheet for producing the translator of this project. In order to successfully perform the transformation task, we need to be able to use a scripting langauage on this stylesheet. However, after researching and experimenting with several CSS2 test cases, we found that a version of CSS2 supporting behaviors is not likely to be supported by any current browsers. The @script tag, which allows one to have JavaScript code inside CSS2, as proposed on Behavioral Extensions to CSS [AGW97] is not currently supported by any browsers. So, it is not feasible to generate a translation of X3D to SVG by using a CSS2 stylesheet. The translation of this project will be written by using SVG DOM ,which is compatible with the Document Object Model (DOM) specifation level 2 [DOM2], as a means to access X3D source documents and transfom X3D into SVG documents. CS297 Results
Proposed Schedule
Key Deliverables:
Innovations and Challenges
References:[AGW97] Behavioral Extensions to CSS. http://www.w3.org/TR/becss. W3C [BH97] Donald Hearn, M. Pauline Baker. Computer Graphics C version 2nd ed. Prentice Hall. 1997. [ECMA99] Standard ECMA-262 ECMAScript Language Specification 3rd ed. http://www.ecma.ch/ecma1/stand/ecma-262.htm. ECMA. 1999. [DOM2] Document Object Model (DOM) Level 2 Specification. http://www.w3.org/TR/1999/CR-DOM-Level-2-19991210. W3C [GH97] P. S. Heckbert and M. Garland, "Survey of polygonal surface simplification algorithms," SIGGRAPH 97, Course Notes 25, 1997. [HM91] Heckbert, Paul S. and Henry Moreton. "Interpolation for Polygon Texture Mapping and Shading." State of Art in Computer Graphics: Visualization and Modeling, Springer-Verlag, New York, 1991, pp. 101-111. [KTS01] Ioannis Kompatsiaris, Dimitrios Tzovaras, and Michael G. Strintzis. "Hierarchical representation and coding of surfaces using 3-D polygon meshes" IEEE Transactions on Image Processing v 10 no8 Aug 2001 p. 1133-51. [W3C98] Cascading Style Sheets, level 2 CSS2 Specification. http://www.w3.org/TR/REC-CSS2. W3C. [W3C01] Scalable Vector Graphics (SVG) Specification 1.0. http://www.w3.org/TR/SVG/. W3C. [W3DC01] Extensible 3D (X3D) Graphics Working Group. http://www.web3d.org/x3d.html. Web 3D Consortium. 2001. |