[x3d-public] X3DJSAIL: Image changed or removed in new JSON, not X3D.

John Carlson yottzumm at gmail.com
Sat Jun 3 03:10:33 PDT 2017


grep 255 ../data/PixelTextureComponentExamples.x3d ../data/PixelTextureComponentExamples.new.x3d
../data/PixelTextureComponentExamples.x3d:          <!-- Erroneous value in book: 1 0 0 255, 0 1 0 255, 0 0 1 255, 1 0 0 127, 0 1 0 127, 0 0 1 127 -->
../data/PixelTextureComponentExamples.new.x3d:                    <!-- Erroneous value in book: 1 0 0 255, 0 1 0 255, 0 0 1 255, 1 0 0 127, 0 1 0 127, 0 0 1 127 -->

grep 255 ../data/PixelTextureComponentExamples.json ../data/PixelTextureComponentExamples.new.json
../data/PixelTextureComponentExamples.json:                                "@image":[1,2,1,255,0]
../data/PixelTextureComponentExamples.json:                              "#comment":"Erroneous value in book: 1 0 0 255, 0 1 0 255, 0 0 1 255, 1 0 0 127, 0 1 0 127, 0 0 1 127"
../data/PixelTextureComponentExamples.new.json:                              "#comment":"Erroneous value in book: 1 0 0 255, 0 1 0 255, 0 0 1 255, 1 0 0 127, 0 1 0 127, 0 0 1 127"

grep 255 PixelTextureComponentExamples.java
              .setTexture(new PixelTextureObject().setDEF("OneComponent").setImage(new int[] {1,2,1,255,0})))
              .addComments(new CommentsBlock("Erroneous value in book: 1 0 0 255, 0 1 0 255, 0 0 1 255, 1 0 0 127, 0 1 0 127, 0 0 1 127"))

grep 255 PixelTextureComponentExamples.sail.js
              .setTexture(new PixelTextureObject().setDEF("OneComponent").setImage(Java.to([1,2,1,255,0], Java.type("int[]")))))
              .addComments(new CommentsBlock("Erroneous value in book: 1 0 0 255, 0 1 0 255, 0 0 1 255, 1 0 0 127, 0 1 0 127, 0 0 1 127"))
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170603/f42e7470/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PixelTextureComponentExamples.x3d
Type: application/octet-stream
Size: 4639 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170603/f42e7470/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PixelTextureComponentExamples.json
Type: application/json
Size: 13742 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170603/f42e7470/attachment-0002.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PixelTextureComponentExamples.new.json
Type: application/json
Size: 14642 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170603/f42e7470/attachment-0003.json>


More information about the x3d-public mailing list