Web3D X3D: TextureTransform rotations in wrong direction #101959

Open
opened 2022-10-21 02:44:32 +02:00 by Seth Gold · 2 comments

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.59

Blender Version
Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: blender/blender@b292cfe5a9

Addon Information
Name: Web3D X3D/VRML2 format (2, 3, 0)
Author: Campbell Barton, Bart, Bastien Montagne, Seva Alekseyev

Short description of error
Rotations of TextureTransform appear to be in the wrong direction, based on testing in other viewers.

Exact steps for others to reproduce the error
Import the attached VRML (which was copied and modified from http://deslab.mit.edu/DesignLab/courses/13.016/visualization/second/imagetextureref.html), with forward=-Z (which should probably be the default for the importer)
Observe the image appears to be rotated clockwise.
The spec at https://www.web3d.org/documents/specifications/19775-1/V3.3/index.html reads:
"A positive rotation value makes the texture coordinates rotate counterclockwise about the centre, thereby rotating the appearance of the texture itself clockwise. The translation field specifies a translation of the texture coordinates."
The negative rotation in the attached file should make the texture appear to be rotated counterclockwise.
Also attached is a screenshot of view3dscene, where the image appears to be rotated counterclockwise

imagetexture.wrl

bricks.jpg

view3dscene.png

**System Information** Operating system: Windows-10-10.0.19043-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.59 **Blender Version** Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: `blender/blender@b292cfe5a9` **Addon Information** Name: Web3D X3D/VRML2 format (2, 3, 0) Author: Campbell Barton, Bart, Bastien Montagne, Seva Alekseyev **Short description of error** Rotations of TextureTransform appear to be in the wrong direction, based on testing in other viewers. **Exact steps for others to reproduce the error** Import the attached VRML (which was copied and modified from http://deslab.mit.edu/DesignLab/courses/13.016/visualization/second/imagetextureref.html), with forward=-Z (which should probably be the default for the importer) Observe the image appears to be rotated clockwise. The spec at https://www.web3d.org/documents/specifications/19775-1/V3.3/index.html reads: "A positive rotation value makes the texture coordinates rotate counterclockwise about the centre, thereby rotating the appearance of the texture itself clockwise. The translation field specifies a translation of the texture coordinates." The negative rotation in the attached file should make the texture appear to be rotated counterclockwise. Also attached is a screenshot of view3dscene, where the image appears to be rotated counterclockwise [imagetexture.wrl](https://archive.blender.org/developer/F13732140/imagetexture.wrl) ![bricks.jpg](https://archive.blender.org/developer/F13732141/bricks.jpg) ![view3dscene.png](https://archive.blender.org/developer/F13732142/view3dscene.png)
Author

Added subscriber: @Seth-Gold

Added subscriber: @Seth-Gold
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Omar Emara changed title from TextureTransform rotations in wrong direction? to Web3D X3D: TextureTransform rotations in wrong direction 2022-10-24 17:11:11 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#101959
No description provided.