Bristle brush issues when imported using Unity Toolkit/SDK

Using this brush in a project in unity causes the brush strokes to disappear the further away you get and you have to be very close to the piece for it to look as it should. Using icing or hull behind it helps but it is still not a proper representation of the artwork using that brush.
116 Replies
andybak
andybak2y ago
It's worth having a support post on this so I can track all the info in one place. @cattasraafe Can you remind me what you said about it being OK if the sketch was exported in older versions of Open Brush?
Cattasraafe
Cattasraafe2y ago
I had been asking if a version difference might have an effect. Say if a project started in tiltbrush and was finished in openbrush. Would that project have any issues with current versions of unity or openbrush.
andybak
andybak2y ago
No idea at the moment.
andybak
andybak2y ago
Here's my result from an old sketch:
andybak
andybak2y ago
Changing alpha cutoff to zero does this:
andybak
andybak2y ago
(which is exactly what I would have expected it to do)
Zandy
ZandyOP2y ago
andy set mine to .08 and its seems to be a sweet spot
andybak
andybak2y ago
Is that different to the behaviour you're seeing? Is this the correct brush type? (Coarse Bristles) I'm going to need more info. A quick test on a simple scene with 1 bristles stroke in it doesn't seem to have any problems but I might be doing something different to you @cattasraafe @zandyxr
Zandy
ZandyOP2y ago
Multiple brush strokes are the issue. Can send a screenshot before/after
andybak
andybak2y ago
A simple example scene would be best if you can
Zandy
ZandyOP2y ago
I cant right now Im super behind but this is .23
Zandy
ZandyOP2y ago
different distances same model
Zandy
ZandyOP2y ago
same shots at .08 (pretty much same distance)
Zandy
ZandyOP2y ago
if you bring it to zero it goes blocky can help more tomorrow if needed....
Cattasraafe
Cattasraafe2y ago
I will double check mine again asap. I just did some hard drive swapping and reinstalled the OS so I'm still getting software out back on.
andybak
andybak2y ago
No idea what I'm looking at there. The panda? The bamboo? It all looks pretty much the same. It's like playing "Where's Wally"! You know exactly what's wrong because you painted it but I just see cute pandas 😉
Zandy
ZandyOP2y ago
the panda disappears
andybak
andybak2y ago
Doh! I sucked at Where's Wally too.
Zandy
ZandyOP2y ago
lol and you can see the bristle brush on the panda? 😉 😂
andybak
andybak2y ago
not really but i never use that brush so i don't know what to look for Send me the glb or tilt when you have a chance
Cattasraafe
Cattasraafe2y ago
Can confirm setting to Zero looks like trash up close.
Cattasraafe
Cattasraafe2y ago
Second image is 0.05
andybak
andybak2y ago
It was quite a hunt but I think I've found the issue. There's a slight difference in the image import settings between Open Brush and the SDK/Toolkit.
andybak
andybak2y ago
OB:
andybak
andybak2y ago
SDK:
andybak
andybak2y ago
andybak
andybak2y ago
Ticking that checkbox and clicking "Apply" seems to fix it for this brush. @cattasraafe @zandyxr can you try that and report back?
Zandy
ZandyOP2y ago
So it’s just mipmaps
andybak
andybak2y ago
yeah. which explains the distance thing
Cattasraafe
Cattasraafe2y ago
This is an import settings for everything or just leaves? Also I have no idea where the import settings are 🙂
andybak
andybak2y ago
Just find the leaves.png file in the Coarse Bristles folder (use the project window search) and highlight it. Settings appear in the inspector on the right. Change it, hit apply, done.
Cattasraafe
Cattasraafe2y ago
I think mine didn't do anything since I changed the Alpha cutoff in the course bristle properties already
Cattasraafe
Cattasraafe2y ago
Cattasraafe
Cattasraafe2y ago
Cattasraafe
Cattasraafe2y ago
But I did just use that same setting in the maintexture.png on the dots brush and they look amazing now!!
andybak
andybak2y ago
Trying to figure out an easy way to find all the significant differences between OB materials and those in the SDK. This definitely accounts for some of them.
Zandy
ZandyOP2y ago
Sorry for the delay. Swamped yesterday. Can check today if you still need me to test as well. Wonder if it should be checked on for all if Cattasraffe found it to be good with other brushes. @cattasraafe are you using glb as well or fbx? @andybak I know it was mentioned in another support thread but GLBs are still not perfect. Had brush strokes missing in another one yesterday when importing to the gallery.
Cattasraafe
Cattasraafe2y ago
just using glb atm. I'm still new to all of this. I've been looking at the other brushes and not all of them have the alpha cutoff under that mipmaps option. I've not seen the fbx file. What's the difference?
andybak
andybak2y ago
Wonder if it should be checked on for all if Cattasraffe found it to be good with other brushes.
It should be checked on for all brushes that have it checked on in Open Brush - the aim is to match Open Brush as closely as possible. I'll get around to making a list.
Had brush strokes missing in another one yesterday when importing to the gallery.
The only issue like this I'm aware of was related to the "large mesh" feature which we rolled back. If that's not the issue then please make a new forum post about it.
Cattasraafe
Cattasraafe2y ago
@andybak could you post a snip of the Openbrush Smoke maintexture.png properties?
andybak
andybak2y ago
Cattasraafe
Cattasraafe2y ago
and thats OB not SDK? I found some smoke settings I want to test.. would it be confusing if I post some images here when I do?
Cattasraafe
Cattasraafe2y ago
Cattasraafe
Cattasraafe2y ago
Unity before smoke settings change
Cattasraafe
Cattasraafe2y ago
After settings change
Cattasraafe
Cattasraafe2y ago
Looks a little better as far as thickness goes.. but its got a weird blockness to it that moves when you are looking around in play mode(VR mode) whatever its called when you hit the play button and look around.
andybak
andybak2y ago
Yep
Cattasraafe
Cattasraafe2y ago
Course bristle brush and dots are looking better. Working on smoke next.
andybak
andybak2y ago
Does Smoke differ to how it looks inside Open Brush? If so - the main thing would be to figure out exactly why and solve that.
Cattasraafe
Cattasraafe2y ago
of the first two images the first one is open brush and the second is glb in unity
andybak
andybak2y ago
but the png settings are the same - so it must be something else
Cattasraafe
Cattasraafe2y ago
The 3rd is unity after I change some settings in the maintexture.png Yeah was weird they they were the same and looked different. Not sure what source should be looked at.
andybak
andybak2y ago
It's probably not something you could do on your own Of course - it depends what you want to achieve. If you don't mind having your own custom tweaked version of Toolkit then you can do anything you want. However it will make life complicated for you in future when we update the official Toolkit My goals are more specific - "find differences between OB and Toolkit, figure out the cause and fix them if possible"
Cattasraafe
Cattasraafe2y ago
Oh yeah I won't be tweaking the tool kit. I'd like to help find the differences as well. Finding the differences would be more useful to everyone.
andybak
andybak2y ago
Not sure what source should be looked at.
My strategy was to change anything that might be related and if it worked, compare the settings with those inside OB
Zandy
ZandyOP2y ago
Wow big difference there!
Cattasraafe
Cattasraafe2y ago
It's a big difference, but it's not useful since it seems like OB and SDK settings for smoke are the same. Plus the settings I found that make the smoke thicker also kinda make it look bad.
Zandy
ZandyOP2y ago
@andybak Ignore the glb issue. Just deleted it. It was due to Mylar acting like icing again as soon as I used your material fix it was all good
andybak
andybak2y ago
Finally got around to writing a script to find all textures that need this setting on. 34 of them:
Bubbles/maintexture.png
CelVinyl/main.png
CoarseBristles/leaves.png
DanceFloor/maintexture.png
DotMarker/maintexture.png
Dots/maintexture.png
DuctTape/main.png
Embers/maintexture.png
Felt/main.png
Fire/fire.png
Fire/fire_export.png
Highlighter/maintexture.png
Hypercolor/main.png
HyperGrid/maintexture.png
Ink/maintexture.png
Leaves/leaves.png
Light/maintexture.png
Marker/maintexture.png
OilPaint/main.png
Paper/main.png
Snow/maintexture.png
SoftHighlighter/maintexture.png
Splatter/main.png
Stars/maintexture.png
Streamers/main.png
Taffy/main.png
TaperedFlat/maintexture.png
TaperedHighlighter/maintexture.png
TaperedMarker/maintexture.png
ThickPaint/streakystroke.png
VelvetInk/maintexture.png
WaveformParticles/maintexture.png
WetPaint/main.png
WigglyGraphite/main.png
Bubbles/maintexture.png
CelVinyl/main.png
CoarseBristles/leaves.png
DanceFloor/maintexture.png
DotMarker/maintexture.png
Dots/maintexture.png
DuctTape/main.png
Embers/maintexture.png
Felt/main.png
Fire/fire.png
Fire/fire_export.png
Highlighter/maintexture.png
Hypercolor/main.png
HyperGrid/maintexture.png
Ink/maintexture.png
Leaves/leaves.png
Light/maintexture.png
Marker/maintexture.png
OilPaint/main.png
Paper/main.png
Snow/maintexture.png
SoftHighlighter/maintexture.png
Splatter/main.png
Stars/maintexture.png
Streamers/main.png
Taffy/main.png
TaperedFlat/maintexture.png
TaperedHighlighter/maintexture.png
TaperedMarker/maintexture.png
ThickPaint/streakystroke.png
VelvetInk/maintexture.png
WaveformParticles/maintexture.png
WetPaint/main.png
WigglyGraphite/main.png
I'll get this updated this week.
Zandy
ZandyOP2y ago
Thanks so much Andy!!!
andybak
andybak2y ago
Just pushed a new release that hopefully fixes this: https://github.com/icosa-gallery/open-brush-toolkit/releases/tag/v24.0.0
GitHub
Release Unity SDK: v24.0.0 · icosa-gallery/open-brush-toolkit
Important Download and install open-brush-toolkit-UnitySDK-v24.0.0.unitypackage from the link below. If you get the errors "The type or namespace name 'Newtonsoft' could not be found&q...
Cattasraafe
Cattasraafe2y ago
I'm trying this out now on a fresh project and a GLB exported from the Beta branch of Openbrush The course bristle's are no longer fading away.
Zandy
ZandyOP2y ago
Awesome thanks so much andy!! omg mylar andy! The effect is gone in this one 😢 Gotta fix mylar! 😱 🙏
andybak
andybak2y ago
Mylar is experimental. We never had support for mylar in the official SDK/Toolkit I'll have to update my fork of the toolkit that has experimental brush support
Zandy
ZandyOP2y ago
THanks so much! use that brush a lot. the shaders dont work at all now though either. they are like icing plain and blahhhhh
andybak
andybak2y ago
sorry. i don't understand.
Zandy
ZandyOP2y ago
The Mylar is showing as just plain white like icing. No sheen
andybak
andybak2y ago
but you're using the version of SDK/Toolkit that doesn't support experimental brushes, aren't you?
Zandy
ZandyOP2y ago
The one you just gave me does All of the experimentals are there
andybak
andybak2y ago
This?
Zandy
ZandyOP2y ago
Yes the one today Mylar was on it
andybak
andybak2y ago
Mylar is an experimental brush, right? And that is the official version of SDK/Toolkit - not the unofficial one with support for experimental brushes? or am I getting confused somewhere!
Zandy
ZandyOP2y ago
Yes it’s experimental but the OBTK that you just posted has experimentals on it but the mylar shader is no longer correct Too many versions lol
Cattasraafe
Cattasraafe2y ago
Should I make a separate post for the smoke, since the bristle brush is working now?
andybak
andybak2y ago
Yes it’s experimental but the OBTK that you just posted has experimentals on it but the mylar shader is no longer correct
The OBTK I posted is definitely not experimental. At least it shouldn't be. What makes you think it is? Yes please
Zandy
ZandyOP2y ago
Because experimental brushes are included? Lol. I saw them. Can test in an hr or so…. Blowing off steam in COD
andybak
andybak2y ago
You'd have to explain what you mean by "included" let me know what you find when you've got time to look
Zandy
ZandyOP2y ago
The brushes are showing up in the OBTK you just posted. I can select the brush types and Mylar etc are included however the shaders are wrong for Mylar. Didn’t try the others
Zandy
ZandyOP2y ago
GitHub
Release Unity SDK: v24.0.0 · icosa-gallery/open-brush-toolkit
Important Download and install open-brush-toolkit-UnitySDK-v24.0.0.unitypackage from the link below. If you get the errors "The type or namespace name 'Newtonsoft' could not be found&q...
Zandy
ZandyOP2y ago
This one
andybak
andybak2y ago
"I can select the brush types" - screenshot? not sure where you're selecting or what you're selecting I can think of about 5 things that could mean! Always best to say "I clicked on x" where x is the actual name of the button or menu item or whatever.
andybak
andybak2y ago
I've got the project open here and there's no files at all called "Mylar":
andybak
andybak2y ago
Did you start a new project? Maybe the Mylar files are there from earlier?
Zandy
ZandyOP2y ago
Give me 20 min It wasnt a new project. I removed the old TBT and installed the one you have there Which of course....corrupted on me. My own fault. Just reinstalling a backup
andybak
andybak2y ago
I removed the old TBT a
Yeah - it would depend how exactly you removed it. It's not necessarily obvious. There's three directories to delete if you want to be sure
Zandy
ZandyOP2y ago
ok so that is probably what happened. I just removed it from the Project folders then installed your new one So when I selected material I could see mylar still there but it looked like icing Im sorry for any confusion In the future where would I delete the directories as well?
andybak
andybak2y ago
You're probably always better off starting a new project if you're switching Toolkit/SDK versions. It's probably not going to happen that often.
Zandy
ZandyOP2y ago
ok good to know
andybak
andybak2y ago
Anyway good news - I've added an "official" version that supports experimental brushes: https://github.com/icosa-gallery/open-brush-toolkit/releases
GitHub
Releases · icosa-gallery/open-brush-toolkit
Scripts and assets that help you use Open/Tilt Brush data in your creative projects. - icosa-gallery/open-brush-toolkit
Zandy
ZandyOP2y ago
Thank you so much andy. Truly appreciate you.
AncientWorlds
AncientWorlds2y ago
So the process to install that if there's already a toolkit present? Or is that entirely in unity?
andybak
andybak2y ago
If you wanna play it safe, close Unity, delete all toolkit files then open unity and reimport the toolkit I think all toolkit files are just the three folders: Editor, ThirdParty and TiltBrush The only complication is if you've added your own stuff to any of those - or if you're using another add-in that does. We should really move all our stuff into a single root folder so it's easier to remove.
AncientWorlds
AncientWorlds2y ago
So just delete those three folders entirely, then reimport the new toolkit?
andybak
andybak2y ago
Yeah. Although starting a new project is still the cleanest way
AncientWorlds
AncientWorlds2y ago
So new project, import tilt brush, then import the toolkit.
So, the toolkit is separate and just stayed with the other versions as I moved the files?
andybak
andybak2y ago
Not sure what you mean by "import tilt brush". My suggestion was: 1. New project 2. Import toolkit/SDK 3. Import your own files. (Gltfs, 3rd party plugins etc)
AncientWorlds
AncientWorlds2y ago
By new project, you mean new project in unity correct? I was asking: at what point do I import, say the latest code version (and does that have the toolkit in it)? Think I'll just jump into it can't break too much :: I didn't break anything but definitely didn't do it right.
1. Created new project 2. Imported tilt brush package 3. Unclear how to proceed. Dragged the files in 1.0.217 into unity assets folder, which obviously was incorrect
andybak
andybak2y ago
You never import toolkit into code version of open brush
AncientWorlds
AncientWorlds2y ago
I'm totally confused.
andybak
andybak2y ago
Me too. What are you trying to do? Why do you want to use toolkit at all?
AncientWorlds
AncientWorlds2y ago
Objective: Get the version with the current 3d recording fix, and add the latest version of toolkit to it Because of the tools in it, and presumably something about a fix for exports was my impression
andybak
andybak2y ago
This is a fix for toolkit. Do you even use toolkit?
AncientWorlds
AncientWorlds2y ago
Doesnt' that contain most of the files in the open brush pulldown?
andybak
andybak2y ago
Toolkit had a bug. Not Open Brush
AncientWorlds
AncientWorlds2y ago
Ok, so that is completely external. Not relevant if I'm trying to add my custom brushes to make them exportable with gltf?
andybak
andybak2y ago
Correct
AncientWorlds
AncientWorlds2y ago
Yet it's part of the code version, what does it do? I was under the apparently mistaken impression that I could enumerate my brushes and they would export to gltf, think I had partial success with it at one point. Apparently, I'm misrembering what I did
andybak
andybak2y ago
Unless you're using toolkit then this bug won't affect you. Simple as that.
AncientWorlds
AncientWorlds2y ago
what does Toolkit>Export brushes to toolkit actually do?
andybak
andybak2y ago
It's meant to help in updating the code in the toolkit to match OB but I'm not sure it's correct any more.
AncientWorlds
AncientWorlds2y ago
Unfortunate. i thought it would add additional brushes found inside the assets folder to the gltf manifest. For some reason I thought I'd been able to do that successfully in a set where I had full materials set up. So I was hopeful the new fix for exporting glbs would actually work for that purpose Any idea where I'd start with that process? Also the new version has this fix: "Workaround for error importing some glbs produced by Open Brush (Error message was "bin length%4")" Is that also resolved?
andybak
andybak2y ago
Is that also resolved?
Yes. That specific error when using the toolkit/sdk is fixed. "Toolkit>Export brushes to toolkit" might well work for you. I'm just not confident enough to use it for the official SDK/Toolkit release.
AncientWorlds
AncientWorlds2y ago
Ok, so sounds like I might want this? I'm mostly trying to figure out what I need to download and what I need to change.
Not sure if there's any builds with this integrated yet?
andybak
andybak2y ago
With what integrated?
AncientWorlds
AncientWorlds2y ago
The toolkit version with the glb fix + version that has 3d recording fixed
Want results from more Discord servers?
Add your server