Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinned CatmullRom curve not rendering correctly in usdview #2445

Closed
SonnyCampbellUnity opened this issue May 23, 2023 · 3 comments
Closed

Pinned CatmullRom curve not rendering correctly in usdview #2445

SonnyCampbellUnity opened this issue May 23, 2023 · 3 comments

Comments

@SonnyCampbellUnity
Copy link

Description of Issue

I am working on the USD exporter for Blender, and am investigating an issue when exporting a catmull-rom curve. In Blender the first and last points of a catmullRom curve are treated as endpoints, so I believe I need to set the pinned attribute on the usd export to ensure that the "phantom" points are created in the client.

This is the file that gets exported from Blender (I added the .txt extension because github complained about the .usda extension):
usd_catmull_test.usda.txt

When I open that file in usdview I see the three curves hovering above the cube:
image

However the curves should be attached to the cube (screenshot from Blender):
image

Version

I am using version 23.05, and built everything from source with the standard build steps outlined in the readme.

OS

I'm on Windows 10 Enterprise edition.

Other

A (possibily unrelated) issue is when I set the complexity to anything higher than Low, I get weird visual behaviour of the curves:
Complexity = Medium
image

Complexity = Very High
image

I'm not sure if that is signifying that I have done something wrong in the curve export code, or if there's something that I need to set on the curves in the usd file, or if it's a visual issue with usdview, but I thought I would ask here.

@sunyab
Copy link
Contributor

sunyab commented May 23, 2023

Filed as internal issue #USD-8359

@rajabala
Copy link
Contributor

Thanks for filing! Storm renders curves as thin line segments when using a complexity of Low. The behavior you see stems from the first and last segments of catRom curves being skipped and doesn't seem desirable. We're looking into it and should address it soon.
As for the widths, we default to 1.0 (world space unit) when unauthored, which is why you see the large half tubes.

@spiffmon
Copy link
Member

Also note that, per this thread we'll be trimming the fallback width from 1.0 to 0.1 in future, so the tessellated tubes will be more "curve like" with respect to the cube. Which of course doesn't obviate the desire for Blender export to explicitly set curve width when it has an idea of what it should be!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants