FBX Exporter: Incorrect 'Type' field in material 'Mapping' node #96858
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#96858
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15
Blender Version
Broken: version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash:
blender/blender@c77597cd0e
Short description of error
Export and import a FBX with a simple material with a texture mapping results in incorrect tiling as the Mapping type is set to "Texture" instead of "Point" (the default).
After importing the FBX:
NOTE: Analyzing other softwares, the same result of the texture mapping is verified after importing the file. This indicates that the problem is in the exporter.
NOTE: Switching type to "Texture" and adjusting the values to 0.1,0.1,0.1 is a workaround but should not be required.
If I'm not mistaken this needs to be fixed in
export_fbx_bin.py:fbx_data_texture_file_elements:1432
,elem_props_template_set(tmpl, props, "p_vector_3d", b"Scaling", (((1.0 / s) if s != 0.0 else 1.0) for s in tex.scale))
might need to take the mapping type into account.
For reference, glTF seems to do that in
gltf2_blender_get.py:get_texture_transform_from_mapping_node
and takes TEXTURE, POINT and VECTOR into account for calculating the texture transform.Exact steps for others to reproduce the error
Note that the resulting texture tiling is effectively "inverted"
For reference:
Note that the result is correct
Attached files:
CubeWithTiling.blend
Added subscriber: @herbst
Exporting FBX with Mapping node set to "Point" exports incorrect texture tilingto Importing an exported FBX with 'Vector Mapping' node set to "Point" results in incorrect texture MappingAdded subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Confirmed'
Thanks for the report. I edited the description to be a little clearer.
Thank you. Out of curiosity, why did you remove my remarks about this being an export bug (instead of an import bug)?
The message was a little confusing. I read that it was "verified that the import is correct ... in external softwares", but now looking back I see that I got it wrong. I will edit.
Importing an exported FBX with 'Vector Mapping' node set to "Point" results in incorrect texture Mappingto FBX Exporter: Incorrect 'Type' field in material 'Mapping' node