[x3d-public] ArchPrototype.x3d [was: including ProtoInterface keys in the JSON encoding ]
John Carlson
yottzumm at gmail.com
Sat Dec 12 17:13:09 PST 2015
Holger, thank you for pointing out that I cannot include X3D scene elements inside the X3D element. I have a full example now. It looks like there are significant differences between InstantPlayer and Cobweb. Perhaps that’s why the file was chosen. The HTML looks like this:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/create3000/cobweb/master/stable/1/1.19/cobweb.css"/>
<script type="text/javascript" src="https://cdn.rawgit.com/create3000/cobweb/master/stable/1/1.19/cobweb.min.js"></script>
<style>
X3D {
width: 768px;
height: 432px;
}
</style>
</head>
<body>
<X3D url='"examples/X3dForAdvancedModeling/Buildings/ArchPrototype.x3d"'
<p>Your browser may not support all features required by Cobweb!</p>
</X3D>
</body>
</html>
this file is placed here:
file:///Users/johncarlson/Downloads/www.web3d.org/x3d/content/cobweb.html
after unzipping http://x3dgraphics.com/X3dExamplesX3dForAdvancedModeling.zip
in /Users/johncarlson/Downloads/
Then bring up the URL of the HTML file in Firefox. Profile issue? How to fix?
Instant Player looks like this:
Cobweb looks like this:
Firefox console looks like:
Welcome to Cobweb X3D Browser 1.19:
Current Graphics Renderer
Name: Mozilla WebGL 1.0
Shading language: WebGL GLSL ES 1.0
Rendering Properties
Texture units: 16 / 16
Max texture size: 4096 × 4096 pixel
Max lights: 0
Max vertex uniform vectors: 1024
Max fragment uniform vectors: 1024
Max vertex attribs: 16
Antialiased: true
Color depth: 32 bits
cobweb.min.js:35:26627
Use of getPreventDefault() is deprecated. Use defaultPrevented instead. cobweb.min.js:3:0
Done loading scene examples/X3dForAdvancedModeling/Buildings/ArchPrototype.x3d cobweb.min.js:22:20522
Done loading scene examples/X3dForWebAuthors/Chapter03-Grouping/CoordinateAxes.x3d cobweb.min.js:22:20522
> On Dec 12, 2015, at 1:34 PM, Holger Seelig <holger.seelig at yahoo.de> wrote:
>
> Cobweb does not support HTML DOM content as HTML DOM is not case sensitive and this can lead to ambiguities. Please use the following syntax:
>
> <X3D url='"path/to/your/X3D/world.x3d"'>
> </X3D>
>
> Holger
>
>
>
> Am 11.12.2015 um 04:29 schrieb John Carlson:
>> The attached files show two x3d files which at least partially load with errors into InstantPlayer but do not load into Cobweb. I need a little help diagnosing the problem. I have also attached an HTML file that I am using to load files into web page. I’ve tried Cobweb 1.19 url= and latest. There may be some other way to load it (pointers appreciated). I do not see any issues with Schematron, except for perhaps profile of subscenegraphs.
>>
>>
>>
>>
>>
>> Don, this is follow up on the ArchPrototype.json blank screen issue.
>>
>> Thanks,
>>
>> John
>>
>
>
> --
> Holger Seelig
> Mediengestalter Digital – Digital Media Designer
>
> Scheffelstraße 31a
> 04277 Leipzig
> Germany
>
> Cellular: +49 1577 147 26 11
> E-Mail: holger.seelig at yahoo.de
> Web: http://titania.create3000.de
>
> Future to the fantasy ★ ★
>
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20151212/073a0083/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.tiff
Type: image/tiff
Size: 20594 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20151212/073a0083/attachment-0002.tiff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-2.tiff
Type: image/tiff
Size: 29254 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20151212/073a0083/attachment-0003.tiff>
More information about the x3d-public
mailing list