[x3d-public] rendering issue for expanded prototype results (not related I hope), Cobweb vs X3DOM
John Carlson
yottzumm at gmail.com
Sun Jul 3 14:53:06 PDT 2016
The new downloads allowed me to test examples/Vrml2.0Sourcebook/Chapter31-Prototypes/Figure31.5/WoodAppearanceExternalPrototypes.json in the prototype expander.
This file renders differently in X3DOM versus Cobweb in my X3D XML Loader. Cobweb renders in brown, and X3DOM renders in grey. I do not think it’s prototype
Expander related, but it could be an error in the file or the way the different browsers handle diffuseColor and ImageTexture. It could be an error in my loader as well (empty()).
Worthy of further investigation and running different versions through X3D-Edit.
John
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile="Immersive" version="3.0" ><head><meta name="title" content="Figure31.5WoodAppearanceExternalPrototypes.x3d"></meta>
<meta name="creator" content="Figure 31.5, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland"></meta>
<meta name="translator" content="Don Brutzman"></meta>
<meta name="reference" content="http://www.wiley.com/legacy/compbooks/vrml2sbk/ch31/31fig05.htm"></meta>
<meta name="created" content="28 September 2000"></meta>
<meta name="modified" content="15 January 2011"></meta>
<meta name="description" content="Two wood blocks using appearance-node types from an external appearance library file. Note modification of second prototype using a TextureTransform node parameter."></meta>
<meta name="identifier" content="http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter31-Prototypes/Figure31.5WoodAppearanceExternalPrototypes.x3d"></meta>
<meta name="generator" content="X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"></meta>
<meta name="license" content="../../license.html"></meta>
</head>
<Scene><Transform translation="-2 0 0"><Shape><Box containerField="geometry"></Box>
<Appearance containerField="appearance" DEF="DECLDarkOak_INSTANCE_DarkOakAppearance"><!--textureTransform field IS exposed through the Prototype field interface with same name--><Material containerField="material" diffuseColor="1 0.45 0.23"></Material>
<ImageTexture containerField="texture" DEF="DECLDarkOak_INSTANCE_wood_g_scope1" url=""examples/Vrml2.0Sourcebook/Chapter31-Prototypes/../Chapter17-Textures/wood_g.jpg" "http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter17-Textures/wood_g.jpg""></ImageTexture>
</Appearance>
</Shape>
</Transform>
<Transform translation="2 0 0"><Shape><Box containerField="geometry"></Box>
<Appearance containerField="appearance" DEF="DECLLightOak_INSTANCE1000_LightOakAppearance"><!--textureTransform field IS exposed through the Prototype field interface with same name--><!--Note that each prototype declaration has independent scope, and so DEF/USE is not possible for sharing. DEF remains a good way to identify the image file however.--><TextureTransform containerField="textureTransform" center="0 5" rotation="0.758" scale="2 0.5" translation="0.5 0"></TextureTransform>
<Material containerField="material" diffuseColor="1 0.65 0.53"></Material>
<ImageTexture containerField="texture" DEF="DECLLightOak_INSTANCE1000_wood_g_scope2" url=""examples/Vrml2.0Sourcebook/Chapter31-Prototypes/../Chapter17-Textures/wood_g.jpg" "http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter17-Textures/wood_g.jpg""></ImageTexture>
</Appearance>
</Shape>
</Transform>
</Scene>
</X3D>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160703/fe94150d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5192BB89260247F3A857B2C9CD3585AF.png
Type: image/png
Size: 70751 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160703/fe94150d/attachment-0001.png>
More information about the x3d-public
mailing list