USD Export - New Curves/Hair Support #102376

Closed
opened 2022-11-09 11:18:56 +01:00 by Sonny Campbell · 12 comments
Member

Currently the USD exporter only supports the Curve type, which is part of the legacy OB_CURVES_LEGACY curves system.

The new Curves type, which is the basis of the new hair system, is currently not supported by the USD exporter.

In Blender:
image.png

After USD export:
image.png

Currently the USD exporter only supports the `Curve` type, which is part of the legacy `OB_CURVES_LEGACY` curves system. The new `Curves` type, which is the basis of the new hair system, is currently not supported by the USD exporter. In Blender: ![image.png](https://archive.blender.org/developer/F13874683/image.png) After USD export: ![image.png](https://archive.blender.org/developer/F13874658/image.png)
Sonny Campbell self-assigned this 2022-11-09 11:18:56 +01:00
Author
Member

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

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

Added subscriber: @SonnyCampbell_Unity

Added subscriber: @SonnyCampbell_Unity
Sonny Campbell changed title from USD - New Curves/Hair Support to USD Export - New Curves/Hair Support 2022-11-09 12:33:53 +01:00
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk

Added subscriber: @codeloadgame

Added subscriber: @codeloadgame
Bastien Montagne added this to the Pipeline, Assets & IO project 2023-02-09 15:39:30 +01:00
Philipp Oeser removed the
Interest
Pipeline, Assets & IO
label 2023-02-10 08:54:00 +01:00

How far is this from being merged? @SonnyCampbell_Unity
We are very interested in exporting Curves objects in usd.

How far is this from being merged? @SonnyCampbell_Unity We are very interested in exporting Curves objects in usd.
Author
Member

@Lucas-Morante This change should be included in the next release at latest, and I have resolved the outstanding review feedback, so hopefully it should be merged relatively soon. If you have specific use cases for it I would love to get some feedback when it's available.

I have been testing with the head model above, as well as some more simple test cases, but I have been limited to best-guessing how it will be used. There could very well be cases with production quality assets that I have missed, so if you come across any issues that would be really useful feedback.

image

@Lucas-Morante This change should be included in the next release at latest, and I have resolved the outstanding review feedback, so hopefully it should be merged relatively soon. If you have specific use cases for it I would love to get some feedback when it's available. I have been testing with the head model above, as well as some more simple test cases, but I have been limited to best-guessing how it will be used. There could very well be cases with production quality assets that I have missed, so if you come across any issues that would be really useful feedback. ![image](/attachments/ce9e59ac-5ab1-44f7-84af-f70a5406b41c)
286 KiB

Hi, @SonnyCampbell_Unity I had some time to test it. I found a couple of things that didn't work for me. But its looking nice 👏

  1. I'm missing st/uv on the curves. Ideally, we would have the same uvs in the curves and in the scalp geometry (geo from where the hair grows). I don't see any uvs stored in the curves - I have the uv maps option enabled on export.

  2. the shape of the curves at the root/tip its not the same as in blender.
    changing the basis:catmullRom to basis:bspline works for me but idk if there is something else going on.

python_Pp5r3ItFJm
python_HWcxUrsblF

Hi, @SonnyCampbell_Unity I had some time to test it. I found a couple of things that didn't work for me. But its looking nice 👏 1. I'm missing st/uv on the curves. Ideally, we would have the same uvs in the curves and in the scalp geometry (geo from where the hair grows). I don't see any uvs stored in the curves - I have the uv maps option enabled on export. 2. the shape of the curves at the root/tip its not the same as in blender. changing the `basis:catmullRom` to `basis:bspline` works for me but idk if there is something else going on. ![python_Pp5r3ItFJm](/attachments/0b12bac2-c3b5-49c3-95dc-42966302a18b) ![python_HWcxUrsblF](/attachments/dada81e0-4d12-4e9d-8d88-45a5907d4e4a)
Author
Member

@Lucas-Morante thanks so much, this is really helpful for me to follow up on. Are you able to share the blend file you are using at all? That way I can replicate exactly what you are seeing and do some investigation on it?

@Lucas-Morante thanks so much, this is really helpful for me to follow up on. Are you able to share the blend file you are using at all? That way I can replicate exactly what you are seeing and do some investigation on it?
@SonnyCampbell_Unity i was testing in this scene https://www.blender.org/download/demo/geometry-nodes/hair_nodes-female_hair_styles.blend
Author
Member

Hey @Lucas-Morante I've created a PR for issue number 2 you mentioned above: #108183

This will set the correct attribute on the curve so that the curve should display correctly in usdview, and I've validated with a colleague that the output usd is correct. However I believe there is a bug in the display of usdview that doesn't correctly render the curve endpoints in this specifc case so I'm going to raise a bug on the USD github to find out if it's an issue in usdview or if there is something else that I've missed in the export. Issue here: https://github.com/PixarAnimationStudios/USD/issues/2445

I'll start looking at the UV export this week :)

Hey @Lucas-Morante I've created a PR for issue number 2 you mentioned above: https://projects.blender.org/blender/blender/pulls/108183 This will set the correct attribute on the curve so that the curve _should_ display correctly in usdview, and I've validated with a colleague that the output usd is correct. However I believe there is a bug in the display of usdview that doesn't correctly render the curve endpoints in this specifc case so I'm going to raise a bug on the USD github to find out if it's an issue in usdview or if there is something else that I've missed in the export. Issue here: https://github.com/PixarAnimationStudios/USD/issues/2445 I'll start looking at the UV export this week :)
Sonny Campbell modified the project from Pipeline, Assets & IO to USD 2023-05-23 13:53:55 +02:00
Howard Trickey referenced this issue from a commit 2023-05-29 02:51:39 +02:00
Member

I'll go ahead and close this, since I think the implementation is finished.

I'll go ahead and close this, since I think the implementation is finished.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-06-29 19:35:12 +02:00
Bastien Montagne removed this from the USD project 2023-08-25 23:55:30 +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
5 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#102376
No description provided.