[x3d-public] C SAI

GPU Group gpugroup at gmail.com
Sat Jan 14 12:36:48 PST 2023


http://www.web3d.org/specifications/ISO-IEC19777/ISO-IEC19777-3v3.3-DIS/Part03/functions.html#Matrix3

didn't compile for me > evidence that it was never tested by compiling.
Recommend compile checks on language translations.
-Doug Sanden
...
https://drive.google.com/file/d/1-35F-a5YTxhEUjAvRpiaccTkcYlaXQM5/view?usp=sharing

- a little C program I did to test Matrix3 and Matrix4, showing how I
modified structs 2 different ways, with commented lines scraped from above
spec not compiling.


console output
Hello web3d C-SAI world
mat3 initialized elements 1 to 9
1.000000 2.000000 3.000000
4.000000 5.000000 6.000000
7.000000 8.000000 9.000000
mat3 transposed
1.000000 4.000000 7.000000
2.000000 5.000000 8.000000
3.000000 6.000000 9.000000
mat3 set to identity
1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000


matr initialized elements 1 to 16
1.000000 2.000000 3.000000 4.000000
5.000000 6.000000 7.000000 8.000000
9.000000 10.000000 11.000000 12.000000
13.000000 14.000000 15.000000 16.000000
mat4 transposed
1.000000 5.000000 9.000000 13.000000
2.000000 6.000000 10.000000 14.000000
3.000000 7.000000 11.000000 15.000000
4.000000 8.000000 12.000000 16.000000
mat4 set to identity
1.000000 0.000000 0.000000 0.000000
0.000000 1.000000 0.000000 0.000000
0.000000 0.000000 1.000000 0.000000
0.000000 0.000000 0.000000 1.000000
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230114/82e620bc/attachment.html>


More information about the x3d-public mailing list