Closed ChristopheF closed 1 year ago
Please try full closing tags: </TextureTransform>
Thanks a lot, this works around my issue! I thought both ways to close a tag were valid XML syntax.
Yes, both are valid xml. But you will need to serve the html as xhtml for a web browser to recognize the content as xml, in the filename and probably also in the mime type. html is not xml and has a different syntax, albeit similar.
Inlines with a .x3d extension are always parsed as xml.
Thank you for that clarification. I was not aware of that difference between html/xhtml. I did not suspect this could an issue because in my sample above I also closed other tags in the same way and they worked fine. This makes perfect sense now.
In my tests the TextureTransform tag is ignored despite the 'fully implemented' status visible here. Below is my sample HTML page where the TextureTransform tag should apply a 90° (pi/2) rotation to the texture but the texture is still applied without any rotation (tested with latest versions of Edge/FireFox/Chrome). When I open the same X3D code in the Octaga player, I do see the texture rotation effect being applied. Is this a bug in X3DOM or am I doing something wrong?