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

WIP: import lights #266

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

joeyskeys
Copy link

Purpose of this PR

Ticket/Jira #:

This's a draft PR that I'm still working on, would like to get some feedback.
This PR adds light import from usd files.
Currently supports point, directional, rect light import.
Spotlight is exported in a special way and could be supported too, working on it now.

Testing

Functional Testing status:

I've tested point & directional light import, lights were imported at the right place, but some attributes are not correctly imported, the usd maya plug didn't write out many attributes.

Performance Testing status:

Light types are different schemas defined in USD.
Currently, I use 4 loops to iterate through each light type in the USD file and import them.
Should make no big impact on the performance.

Overall Product Risks

Complexity:
Low

Halo Effect:
Low

Additional information

Note to reviewers:

I need some suggestions to finish up this PR.

Reminder:

Still a draft PR, please leave message if you have any ideas.

@joeyskeys
Copy link
Author

There's a problem I dunno how to fix now:
The schema attribute "angle" should be written out according to whether the light is a spotlight, but a light sample is a serializable object and I cannot control whether to write out a specific attribute.
Any ideas?

@joeyskeys joeyskeys marked this pull request as ready for review November 12, 2021 07:00
@zh2009053012
Copy link

How to export/import light color?

@joeyskeys
Copy link
Author

How to export/import light color?

Seems I didn't add this property

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

Successfully merging this pull request may close these issues.

2 participants