willlogs / unity-optimized-grass

Optimized 3D grass for unity that works on Mobile. OpenGL 3.5+
100 stars 16 forks source link

Grass not Showing in Unity #1

Closed jamil2001 closed 2 years ago

jamil2001 commented 2 years ago

Well sorry, but I dont know why I cant see any grass on play.

willlogs commented 2 years ago

I hear you! Try to switch from vulkan to opengl (there's a box in unity project settings you can change the priority of different frameworks used)

if that doesn't work, just inform me right here so we can fix it

jamil2001 commented 2 years ago

Screenshot (120) I came here, but cant find the OpenGL or Vulkan swa Screenshot (121) Should Render texture, last render texture and grass texture stay empty?

willlogs commented 2 years ago

Should Render texture, last render texture and grass texture stay empty? Yes those textures are assigned on the fly by the code.

image for android and: image if your platform is PC/MAC, just uncheck the "auto graphics api" and set it to openGL.

If the grass is not showing without the mesh being painted pink it only goes back to one thing: You are using Vulkan. Don't use vulkan. Vulkan sucks :D

Please inform me if it works. Best of luck

jamil2001 commented 2 years ago

Sorry again, but I am getting this warning 1) GarbageCollector disposing of ComputeBuffer allocated in F:\unity project\Phantom\Assets\unity-optimized-grass-main\Assets_\Garden\Scripts\GrassPatchActivator.cs at line 60. Please use ComputeBuffer.Release() or .Dispose() to manually release the buffer. UnityEngine.ComputeBuffer:Finalize () and also 2) InkCanvas has been destroyed. UnityEngine.Debug:Log (object) Es.InkPainter.InkCanvas:OnDestroy () (at Assets/unity-optimized-grass-main/Assets/Packages/InkPainter/Script/Core/InkCanvas.cs:288)

willlogs commented 2 years ago

Sorry to answer a bit late. Could you please open up a new issue for this one since it's different from the initial issue. And if you figured it out please inform me.

I'll have to check the project for this bug you are experiencing and I'll get back to you in a week. It probably needs a .Dispose() at the end of the update function. But I'll have to double check which takes some time.