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

Sync visibility state of objects? #165

Open
bitinn opened this issue Feb 25, 2022 · 12 comments
Open

Sync visibility state of objects? #165

bitinn opened this issue Feb 25, 2022 · 12 comments
Labels
enhancement New feature or request

Comments

@bitinn
Copy link

bitinn commented Feb 25, 2022

Hi,

I am wondering if there is any plan to add support for visibility (enable/disable) state of objects. It seems like good feature to have given the lack of support for grouping or selected object sync?

(I used Blender plugin only, not sure about other DCC)

Thx in advanced.

@bitinn
Copy link
Author

bitinn commented Feb 25, 2022

Alternatively, if we can use "Exclude from View Layer" in Blender as an indicator to not sync a mesh, that would be great too.

@sindharta
Copy link
Collaborator

Thank you for the feedback.
We don't have any plan to address this in the following 1 or 2 months, but we'll consider it after.

@sindharta sindharta added the enhancement New feature or request label Feb 25, 2022
@sindharta
Copy link
Collaborator

Related PR: #183

@bitinn
Copy link
Author

bitinn commented Apr 19, 2022

@sindharta may I ask if the merged PR is all it needs to support visibility sync between blender and unity? if so, would there be a new DCC plugin release in near future?

@sindharta
Copy link
Collaborator

may I ask if the merged PR is all it needs to support visibility sync between blender and unity?

I think so.
We are preparing a release at the moment. Hopefully, we'll be able to release it in late April.

@sindharta
Copy link
Collaborator

Can you please try meshsync@0.13.0-preview, and reinstall the Blender plugin that is compatible with it ?

@bitinn
Copy link
Author

bitinn commented Apr 27, 2022

@sindharta I just tried it with Blender 3.1.2 and visibility sync doesn't appear to work.

Objects are synced but their states are all enabled. I am not sure what else I need to do to make this work, as visibility toggle is checked on my mesh sync server object.

I tried removing the plugin and reinstall, the result is the same.

Screen Shot 2022-04-27 at 16 45 51

Screen Shot 2022-04-27 at 16 46 17

Screen Shot 2022-04-27 at 16 46 43

Screen Shot 2022-04-27 at 16 47 02

@bitinn
Copy link
Author

bitinn commented Apr 27, 2022

I also tried "disable render" toggle (the second camera icon) in Blender, same result

@bitinn
Copy link
Author

bitinn commented Apr 27, 2022

meshsync-test.blend.zip

sharing my blend file here in case @seandillon92 needs to take a look at them :)

@seandillon92
Copy link
Contributor

Hey @bitinn , I downloaded your file and I am able to control the visibility with "Exclude from View Layer" but not with the "Hide in Viewport" or "Disable in Renders" as you mentioned. We will look into it, thank you for reporting this!

@seandillon92
Copy link
Contributor

I also tried "disable render" toggle (the second camera icon) in Blender, same result

This is working for me, only for objects and only when using manual sync. It disables the mesh renderer in Unity. Hope it helps until we solve the issue properly.

@bitinn
Copy link
Author

bitinn commented Apr 28, 2022

I also tried "disable render" toggle (the second camera icon) in Blender, same result

This is working for me, only for objects and only when using manual sync. It disables the mesh renderer in Unity. Hope it helps until we solve the issue properly.

Hi, so I just tested, and can confirm the behavior is:

  • "Exclude from View Layers" => Gameobject is disabled
  • "Hide in Viewport" => ignored
  • "Disable in Viewports" => ignored
  • "Disable in Renders" => MeshRenderer is disabled

My only gripe with this: there isn't a way to map "disable in blender viewport" to "disable in unity scene view", because "Exclude from View Layers" is collection only AFAIK.

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

No branches or pull requests

3 participants