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

GeomSubset created on "View selected" #3384

Closed
JakobJK opened this issue Oct 13, 2023 · 12 comments
Closed

GeomSubset created on "View selected" #3384

JakobJK opened this issue Oct 13, 2023 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@JakobJK
Copy link

JakobJK commented Oct 13, 2023

Describe the bug
Using "Isolate Select" → "View Selected" on selected polygons of a mesh will create a GeomSubset on the mesh when exporting to usd.

Steps to reproduce
Steps to reproduce the behavior:

  1. Create any polygon mesh.
  2. Select a few polygons components of the mesh.
  3. In any viewpanel go to the Panel Menu "Show" → "Isolate Select" → "Show Selected"
  4. Export your geometry as USD. You should now see an additional GeomSubset in the usd file named after your camera you were using to isolate the selected components.

Expected behavior
I didn't expect any GeomSubsets to be created by Maya display behavior.

Attachments
Example USD output - Gist

Specs (if applicable):

  • Rocky Linux, Maya 2024.1
@JakobJK JakobJK added the bug Something isn't working label Oct 13, 2023
@wallworm
Copy link
Collaborator

Thanks for reporting. I'm bringing it up with the team.

@santosd
Copy link
Collaborator

santosd commented Oct 17, 2023

@wallworm would you like me to log this one internally?

@wallworm
Copy link
Collaborator

@santosd Yes.

@santosg87
Copy link
Collaborator

@JakobJK would you be able to provide us a little more information on what you would expect the export to look like - and also, if possible a bit more info on how you are exporting - are you exporting the full geometry? just the selected faces? are you using export Selection, or export all? we are trying to narrow down the behavior to better understand what is the culprit.

@JakobJK
Copy link
Author

JakobJK commented Oct 18, 2023

Hey @santosg87, absolutely!

I created a new USD here (Just so I could confirm exactly how I export). I exported it using "export selection" and I selected the "group1" node, which has the pCube1 as a child. I don't attempt to export selected faces, or even individual pieces of geometry. I only pick the root node of the model.

My export USD export settings are the default. (I only changed to ascii in this case of course). I could technically "fix" this by turning off component tagging during export, but there will be situations I can imagine where we'd want components tag, but not these particular GeomSubsets.

Let me know if I can provide with anything that could be helpful.

@BigRoy
Copy link
Contributor

BigRoy commented Oct 20, 2023

@JakobJK it's a bit unclear from your last message whether you wanted your "Isolate View" to actually influence the export or not?

I'd assume that you consider the Isolate View in the viewport to be for viewport only and not have any influence whatsoever on the export - and that's why you did not expect the GeomSubset to be exported?

This is somewhat confirmed by your original post of this issue.

Expected behavior
I didn't expect any GeomSubsets to be created by Maya display behavior.

And I agree - I wouldn't expect that to get exported along at all.


In this export that you linked I don't see any GeomSubset related to an isolate view. Is that correct? I only see a cube's default Component Tags.

@JakobJK
Copy link
Author

JakobJK commented Oct 20, 2023

Whoops! I totally skipped that question. Sorry.

Ideally, I don't want "isolate view" to influence the export at all. I, and a few modelers I've talked to, have found it surprising that it does have an affect. We didn't expect any GeomSubsets to be created. So exactly the same file, but without any GeomSubsets present would be ideal, when using the "isolate select" feature.

The GeomSubsets that are created from "view selected" are the GeomSubsets are the ones named bottom, top, right, left, etc.

@BigRoy
Copy link
Contributor

BigRoy commented Oct 20, 2023

Could you share an example usd file that has the isolate view geomsubset?

I don't see it in the example you provided:

Attachments
Example USD output - Gist

And I can't seem to reproduce it in Maya 2024.1 + MayaUSD 0.25.0.

Here's my test file:
example_isolate_view_test.zip

@JakobJK
Copy link
Author

JakobJK commented Oct 20, 2023

It's in the gist. As I mentioned they are the GeomSubsets named bottom, top, etc:
I have USD version 0.23.1, so it might have been fixed in 0.25.0?

      def GeomSubset "bottom"
      {
          uniform token elementType = "face"
          uniform token familyName = "componentTag"
          int[] indices = [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
      }

      def GeomSubset "sides"
      {
          uniform token elementType = "face"
          uniform token familyName = "componentTag"
          int[] indices = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
      }

      def GeomSubset "top"
      {
          uniform token elementType = "face"
          uniform token familyName = "componentTag"
          int[] indices = [40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59]
      }

@BigRoy
Copy link
Contributor

BigRoy commented Oct 20, 2023

Those are not related to isolate view, but are the mesh's component tags. You should be seeing these exported even without isolate view. Can you confirm?

@JakobJK
Copy link
Author

JakobJK commented Oct 20, 2023

Oooh, my bad. I feel like I owe everyone a beer now. You're right. Sorry about this. I think I jumped to the conclusion a little tunnel visioned. Thanks for clearing that up for me!

@neilh-adsk neilh-adsk moved this to Needs triage in maya-usd Nov 6, 2023
@Autodesk Autodesk deleted a comment from maya-usd-git-sync bot Nov 16, 2023
@santosd
Copy link
Collaborator

santosd commented Nov 30, 2023

Thanks for the response on this one @BigRoy. I will go ahead and close this one out @JakobJK. However, let me know if you still have concerns around this ticket and we can reopen.

@santosd santosd closed this as completed Nov 30, 2023
@github-project-automation github-project-automation bot moved this from Needs triage to Done in maya-usd Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Status: Done
Development

No branches or pull requests

5 participants