Bug: USD exporter doesn't include hair/curve UVs #120042

Open
opened 2024-03-29 01:07:33 +01:00 by Brian Hanke · 8 comments

System Information

Operating system: Windows 10
Graphics card: RTX 2060

Blender Version

Broken: 4.1.0

Short description of error

Hello, I've been exploring Blender's new hair workflow and there's a lot to like. I want to be able to export grooms to Alembic or USD, but it seems the USD exporter currently doesn't include UVs.

Exact steps for others to reproduce the error

  1. Download the Animal fur examples file here: https://www.blender.org/download/demo-files/#hair
  2. Select the Fur - Highland Cattle layer and export to USD.
  3. The resulting USD file does not include a uv/st/UVMap attribute.
**System Information** Operating system: Windows 10 Graphics card: RTX 2060 **Blender Version** Broken: 4.1.0 **Short description of error** Hello, I've been exploring Blender's new hair workflow and there's a lot to like. I want to be able to export grooms to Alembic or USD, but it seems the USD exporter currently doesn't include UVs. **Exact steps for others to reproduce the error** 1. Download the Animal fur examples file here: https://www.blender.org/download/demo-files/#hair 2. Select the Fur - Highland Cattle layer and export to USD. 3. The resulting USD file does not include a uv/st/UVMap attribute.
Brian Hanke added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2024-03-29 01:07:33 +01:00
Member

Hi, thanks for the report. Importing hair curves back to blender imports them in old curve type. I'm not sure if this is expected but attributes are not visible with them. So I checked USDCurvesWriter::do_write, the legacy/old curve type is converted to Curves
cc @deadpin

Did you notice this in usd viewer or after importing in other software?

Hi, thanks for the report. Importing hair curves back to blender imports them in old curve type. I'm not sure if this is expected but attributes are not visible with them. So I checked `USDCurvesWriter::do_write`, the legacy/old curve type is converted to `Curves` cc @deadpin Did you notice this in usd viewer or after importing in other software?
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2024-03-29 06:03:54 +01:00
Member

Even the reader is using all CurvesGeometry functions. Am I doing something wrong 🤔

Even the reader is using all CurvesGeometry functions. Am I doing something wrong 🤔
Author

@PratikPB2123 Thanks for the reply! I checked the USD export in Houdini Solaris. widths is being exported correctly by Blender, but the UVs are not. They should show up in Houdini as primvars:st. The same issue arises when viewing the exported groom in any other app, including Gaffer or usdview.

(Edited to remove Houdini screenshots.)

@PratikPB2123 Thanks for the reply! I checked the USD export in Houdini Solaris. `widths` is being exported correctly by Blender, but the UVs are not. They should show up in Houdini as `primvars:st`. The same issue arises when viewing the exported groom in any other app, including Gaffer or usdview. (Edited to remove Houdini screenshots.)

@BHGC Hi, posting other software are likely against copyright guideline of blender.
See: https://devtalk.blender.org/t/copyright-guidelines-for-devtalk/17331

Do not:
Include screenshots in posts from commercial / non-open products.
Copy texts, diagrams or other content from websites without their permission.
Indicate in any way that we should copy external ideas or methods without permission.

So I think you have to remove these images before moderators kick in.
On the other hand, you may still speak in common sense about what you observed from other software, etc.

@BHGC Hi, posting other software are likely against copyright guideline of blender. See: https://devtalk.blender.org/t/copyright-guidelines-for-devtalk/17331 >Do not: Include screenshots in posts from commercial / non-open products. Copy texts, diagrams or other content from websites without their permission. Indicate in any way that we should copy external ideas or methods without permission. So I think you have to remove these images before moderators kick in. On the other hand, you may still speak in common sense about what you observed from other software, etc.

This is simply unimplemented currently here for USD and for Alembic (alembic will soon get the ability to export out the new Hair curves but UVs will be missing from the initial implementation as well).

I'll go ahead and confirm so we can track this but, for the future, we generally only track things here that are actual bugs in the implementation. For example, if the UVs were written out but ended up being incorrect in some way etc. There's a lot of things "missing" from various things but we won't typically track them as Issues here.

This is simply unimplemented currently here for USD and for Alembic (alembic will soon get the ability to export out the new Hair curves but UVs will be missing from the initial implementation as well). I'll go ahead and confirm so we can track this but, for the future, we generally only track things here that are actual bugs in the implementation. For example, if the UVs were written out but ended up being incorrect in some way etc. There's a lot of things "missing" from various things but we won't typically track them as Issues here.
Author

Great, glad to hear it's on the radar. Keep up the great work!

Great, glad to hear it's on the radar. Keep up the great work!
Author

I ended up messing around a bit and was able to upgrade the USD exporter to support curve UVs!

This is my first time working with the Blender source and I'm very impressed with how easy it is to work with. Extremely well-designed.

I ended up messing around a bit and was able to upgrade the USD exporter to support curve UVs! This is my first time working with the Blender source and I'm very impressed with how easy it is to work with. Extremely well-designed.
596 KiB
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-04-14 20:50:09 +02:00
Member

@BHGC hi, glad you managed to workaround the support of "curve uvs". Actual support has not been merged in main branch yet, reopening the task. Feel free to submit the PR of your work: https://wiki.blender.org/wiki/Tools/Pull_Requests

@BHGC hi, glad you managed to workaround the support of "curve uvs". Actual support has not been merged in main branch yet, reopening the task. Feel free to submit the PR of your work: https://wiki.blender.org/wiki/Tools/Pull_Requests
Blender Bot added
Status
Needs Triage
and removed
Status
Archived
labels 2024-04-15 04:24:19 +02:00
Pratik Borhade added
Status
Confirmed
and removed
Status
Needs Triage
labels 2024-04-15 04:24:42 +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
4 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#120042
No description provided.