W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2005

[whatwg] Using X3D in XHTML documents

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 4 Jun 2005 22:54:46 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0506042248390.11163@dhalsim.dreamhost.com>
On Thu, 2 Jun 2005, Matthew Raymond wrote:
>
> I've just stumbled on to the namespace for X3D:
> 
> http://www.web3d.org/specifications/x3d-schema-changelog.txt

Good to know that they are at least planning to go in that direction!


> Given this "new" information, I would like to know of the following is an
> acceptable use of X3D within an XHTML document:
> 
> | <?xml version="1.0" encoding="UTF-8"?>
> | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> | <html xmlns="http://www.w3.org/1999/xhtml"
> | xmlns:x3d="http://www.web3d.org/specifications/x3d-3.0.xsd">
> | <head>
> |   <title>3D Model</title>
> |   <style type="text/css">
> |     x3d:X3D {
> |       width: 100px;
> |       height: 100px;
> |     }
> |   </style>
> | </head>
> | <body>
> |   <h1>A 3D Cylinder Model</h1>
> |   <div>
> |     <x3d:X3D profile="MPEG-4 Interactive">
> |       <x3d:Scene>
> |         <x3d:Shape>
> |           <x3d:Appearance>
> |             <x3d:Material diffuseColor="0.0 0.5 1.0"/>
> |           </x3d:Appearance>
> |           <x3d:Cylinder/>
> |         </x3d:Shape>
> |       </x3d:Scene>
> |     </x3d:X3D>
> |   </div>
> | </body>
> | </html>

I guess so. Some spec somewhere will probably need to state that an <X3D> 
element introduces a rectangular surface and then should describe how to 
determine its 2D intrinsic dimensions and/or intrinsic aspect ratio.

The next step, I guess, is to see if any Web browser vendors want to 
implement X3D! Is the X3D spec stable?

(Note that in the above the selector is wrong and the <div> is probably 
not the right element, but that's another story.)


> If this is acceptable, does this negate the value of a potential "3d" 
> context for <canvas> in XHTML?

No, there are needs for both declarative 3D and for direct-mode 3D.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 4 June 2005 15:54:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:41 UTC