USD export: implement MAPPING node (texture scale, translation and rotation) #106684

Closed
opened 2023-04-07 19:20:40 +02:00 by Tim Knip · 3 comments

The MAPPING node doesn't seem to work when exporting to USD(Z).

The MAPPING node doesn't seem to work when exporting to USD(Z).
Member

Sorry this has been lying around for so long.

Can you add steps to reproduce this (a .blend file would also help here)?
Can this be observed just from within blender (roundtrip blender > export USD > import USD)?

Sorry this has been lying around for so long. Can you add steps to reproduce this (a .blend file would also help here)? Can this be observed just from within blender (roundtrip blender > export USD > import USD)?
Philipp Oeser added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-09-20 12:13:55 +02:00
Author

@lichtwerk No problem ;-) Here's a simple blend file to reproduce the issue.

The mapping node is ignored on export. And yes, it can be observed with an export > import roundtrip.

Steps to reproduce:

  • export to usd(z)
  • import the usd(z)

System info:

@lichtwerk No problem ;-) Here's a simple blend file to reproduce the issue. The mapping node is ignored on export. And yes, it can be observed with an export > import roundtrip. Steps to reproduce: - export to usd(z) - import the usd(z) System info: - windows 11 pro - blender 3.6.0 - c7fc78b81ecb
Member

Thx getting back!

So yeah, unfortunately the support for the mapping node is not implemented in the USD Preview Surface material export yet.

Not all nodes are supported; currently only Diffuse, Principle, Image Textures, and UVMap nodes are support.

See https://docs.blender.org/manual/en/4.0/files/import_export/usd.html and c85c52f2ce

I think we would be looking at implementing UsdTransform2d, looks like blenders mapping node does approximately the same.
Atm. all the code does is looking for a UV input upstream of the image texture node, see create_uvmap_shader in create_usd_preview_surface_material, it probably wouldnt be too hard to search for a mapping node as well.

That all being said, this is not considered a bug

Thanks for the report, but the issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors.

For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug 

Afraid we have to close this (unless we want to keep this as a TODO? -- feel free to reopen in such case @dr.sybren)

Thx getting back! So yeah, unfortunately the support for the mapping node is not implemented in the USD Preview Surface material export yet. >Not all nodes are supported; currently only Diffuse, Principle, Image Textures, and UVMap nodes are support. See https://docs.blender.org/manual/en/4.0/files/import_export/usd.html and c85c52f2ce47 I think we would be looking at implementing `UsdTransform2d`, looks like blenders mapping node does approximately the same. Atm. all the code does is looking for a UV input upstream of the image texture node, see `create_uvmap_shader` in `create_usd_preview_surface_material`, it probably wouldnt be too hard to search for a mapping node as well. That all being said, this is not considered a bug ``` Thanks for the report, but the issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors. For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug ``` Afraid we have to close this (unless we want to keep this as a TODO? -- feel free to reopen in such case @dr.sybren)
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-09-21 14:19:03 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
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#106684
No description provided.