[x3d-public] C/C++/C# SAI

John Carlson yottzumm at gmail.com
Wed Jan 25 13:02:22 PST 2023


I've gotten VS Code somewhat working.   So far, C# looks okay.

C++ has some issues related to Java heritage, see
ArrayIndexOutOfBoundsException

I don't know if that's been mentioned yet.

[image: image.png]

On Wed, Jan 25, 2023 at 2:39 PM John Carlson <yottzumm at gmail.com> wrote:

> I concur with Doug on not being able to compile C++ SAI, see .h files (you
> can actually compile .h files, or use allclasses.cpp).
>
> x3d / Code / [r34727] /www.web3d.org/x3d/stylesheets/cpp (sourceforge.net)
> <https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/cpp/>
>
> I don't think anyone has addressed C# yet?  I will try launching Visual
> Studio.
>
> John
>
> On Sat, Jan 14, 2023 at 2:37 PM GPU Group <gpugroup at gmail.com> wrote:
>
>>
>> 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
>> _______________________________________________
>> 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/20230125/d27eeeda/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 391802 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230125/d27eeeda/attachment-0001.png>


More information about the x3d-public mailing list