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

LWRP: ComputeBuffer doesn't render in camera #34

Open
gameanimation3d opened this issue Oct 10, 2019 · 6 comments
Open

LWRP: ComputeBuffer doesn't render in camera #34

gameanimation3d opened this issue Oct 10, 2019 · 6 comments
Assignees
Labels

Comments

@gameanimation3d
Copy link

gameanimation3d commented Oct 10, 2019

With the New LWRP.
The Pointcloud in ComputeBuffer Mode doesn't render in the Camera. Only in Editor the Pointcloud gets correctly drawn.
If i switch back to builtin Renderpipeline everything works fine.

Mesh Rendering in LWRP works. But doesn't apply an Point Size.

Unity Version: 2019.2.8f1
Pcx Version: Release Version v1.2

additionally i get the following warning

GarbageCollector disposing of ComputeBuffer allocated in M:\Repo\GitRepos\SFMVisualizer_dev\SFMVisualizer_Unity\Assets\Pcx\Runtime\PointCloudData.cs at line 27. Please use ComputeBuffer.Release() or .Dispose() to manually release the buffer.
UnityEngine.ComputeBuffer:Finalize() (at C:/buildslave/unity/build/Runtime/Export/Shaders/ComputeShader.bindings.cs:28)

@keijiro keijiro self-assigned this Oct 10, 2019
@keijiro
Copy link
Owner

keijiro commented Oct 10, 2019

Only in Editor the Pointcloud gets correctly drawn.

So, you meant that this issue only reproduces on a built app?

Which platform are you using? Windows, macOS or mobile platform?

@gameanimation3d
Copy link
Author

So, you meant that this issue only reproduces on a built app?

No. The pointcloud gets only drawn in the Editor View. In the Game View in Editor it doesn't show up.
I didn't tested it it an Build app

Which platform are you using? Windows, macOS or mobile platform?

As OS Windows 10 64bit - Build Settings are for Windows

@bjornsyse
Copy link

Have the same issue. Even get a nullReferenceExection on play. Something with the camera?

NullReferenceException: Object reference not set to an instance of an object
Pcx.PointCloudRenderer.OnRenderObject () (at Assets/Pcx/Runtime/PointCloudRenderer.cs:88)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

@ahwemorela
Copy link

Did you manage to solve the problem?

@StrikeAgainst
Copy link

StrikeAgainst commented Jul 26, 2023

Struggling with the same issue in HDRP. Is there no solution yet?

@StrikeAgainst
Copy link

StrikeAgainst commented Jul 31, 2023

Update as per this thread I opened on the Unity forums: OnRenderObject does not seem to get triggered with HDRP (possibly LWRP and any other scriptable pipeline as well), thus you have to attach the rendering process to the manager yourself. Worked fine for me after doing so.

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

No branches or pull requests

5 participants