Editor streaming

Hey specklers,

Am currently playing with Speckle and Unity - loving your work so far - but was just wondering if editor streaming was any closer to being a thing? I’m wanting to put together a Quest2 & Hololens2 example to inspire our MSc BIM visualisation module this summer and being able to build out the app(s) with the geometry ‘inside’ would be awesome. :grinning:

2 Likes

Hey Nige,

Thanks for checking it out! :slight_smile: @haitheredavid was working exactly on that in his fork, not sure where it stands atm.

David, what do you think? Maybe we could merge it in a separate branch for early testers? :slight_smile:

2 Likes

Thanks for the prompt response @teocomi - it’s not a total deal breaker as pulling in the latest and greatest data from a stream is probably OK as long as I test it first – it’s the graphical limitations of the Hololens 2 really that I am slightly worried about.

On a slightly different thread - I was looking at the Revit / Rhino / Unity tutorial this morning and noticed that the start commit / end commit links don’t seem to be linked to anything yet, is there a repo for this tutorial that I can look at?

Ouch, good find :slight_smile:
I’ve just updated the links and pointed them to start and finish. Please let me know if you find any other inconsistencies hehe!

1 Like

Top man, thanks.

Will do. Hopefully I can provide some useful input / feedback as I dig into Speckle further :smiley:

that could definitely work! :slight_smile: Would love to get my first commit into the speckle-verse :comet:

There are some lingering comments and thoughts that should be addressed before doing a pr to a test branch. The main issues that I’d like to address is how the Dispatcher could work within the editor. The logic that helps with thread protection held in a coroutine and that seems to be the culprit for blocking the editor from achieving dopeness.

1 Like

Not sure what graphic components you’re exactly worried about, but if it’s anything around model / mesh rendering you could instance a prefab of any loaded mesh into your editor during runtime and throw that into a test .apk. :test_tube: I did this when poking at the Quest2 performance :dark_sunglasses: :bar_chart:

1 Like

Hi @haitheredavid
Interesting - I have tried this by dragging the loaded mesh into a folder in assets but the prefab was missing all of the mesh objects - ie empty mesh filters? Am I missing something super obvious?

@NigeDemo Huh well it work with the speckle 1 in unity! Sorry for the mistaken info, I just tested it with speckle 2 and I was wrong with saying that process would work. :thinking: Not sure what would cause the change in that since both connectors are in version 2020.

I’ll make some time to dig into this and follow up with any info

1 Like

@haitheredavid - no problem. I was wondering if it might be a Unity issue but it looks like its probably not. Thanks for getting back to me

2 Likes

(lil mental note!) Just took a quick peek into this and it seems like the way meshes are assigned to the filter is causing the meshes from being saved. Seems to be a straightforward change! I’ll test it in my branch and if it works push it along in my next commit.

3 Likes

Good convo here :slight_smile:
David, keen to chat re dispatcher if that’s a blocker for you to merge stuff!

1 Like

Gotta get those discourse flare ya know! :dark_sunglasses: I’ve set aside some time today to work through the dispatcher, we could touch base on it tomorrow at the standup? It seems like unity has a somewhat stable package for editor coroutines that we can rely on for this fix.

1 Like

Sounds great! Yes, let’s chat right after standup :slight_smile:

@teocomi Was able to get some good juju going tonight with using the Editor Coroutine Package with the Dispatcher! I thought it was freezing and crashing but few seconds later some nice lil’ meshes appeared in the scene. I’ll have to play around with this a bit more to get the editor from locking up. I also noticed a few errors getting thrown for the mesh creation, something to do with mesh leaking… not sure what that is but I’ve got my fingers crossed that it will be something related to the instancing of loaded meshes conversation above

3 Likes

This is most awesome work @haitheredavid

1 Like