keijiro / Pcx

Point cloud importer & renderer for Unity
The Unlicense
1.36k stars 197 forks source link

Unity MacOS error: Drawing with MeshTopology.Points, yet the vertex program 'Hidden/OpaqueSelection' does not have PSIZE output. #71

Closed svjetlonosha141 closed 3 years ago

svjetlonosha141 commented 3 years ago

Hi Keijiro, First of all - HUGE thank you for all the work you've put into this, I really appreciate it.

I am currently working on a VR project using Unity and came across a problem that appears only on MacOS. Apologies if this issue already came up - I went through all of them and couldn't find anyone mentioning this nor providing a solution. Please see the details of the error below. Any help is more than welcome! Cheers

I successfully imported my point cloud on Windows, but this error keeps appearing when trying to do the same in MacOS. Point cloud is successfully imported as mesh but instead of points, i get these rectangles and a very low quality.

"Drawing with MeshTopology.Points, yet the vertex program 'Hidden/OpaqueSelection' does not have PSIZE output."

Screen Shot 2021-07-07 at 12 52 12 pm

System details: macOS: Big Sur GPU: AMD Radeon Pro 5500M Metal Family: Metal GPUFamily macOS 2 Unity: 2020.3.12f1

Screen Shot 2021-07-07 at 12 52 00 pm
keijiro commented 3 years ago

Those warning messages are caused by the Scene View. It doesn't affect the quality of rendering. Please ignore them.

keijiro commented 3 years ago

I'm closing this issue now. Please feel free to reopen it for further problems.

svjetlonosha141 commented 3 years ago

Thanks for a quick reply. Will ignore the warning then. But do you maybe know how I can change this view so I can actually see points instead of these ugly rectangles? i am not able to see much details even when in game view... Sorry if it's a silly question, I'm a beginner...

Thanks.

keijiro commented 3 years ago

Try disabling "Apply Distance". See "Rendering Methods" on README.

svjetlonosha141 commented 3 years ago

Thanks, problem solved, managed to get the points by playing with the mesh renderer and different materials.

sep-sabeti commented 2 years ago

Could you elaborate how you solved it? I am having the same issue !

svjetlonosha141 commented 2 years ago

Hi Sep, Sorry for a super late reply, but I am traveling and hence slack with emails and don't have access to Unity at the moment. From what I can remember, this issue was easily resolved by literally just changing the way Unity renders the point cloud. When you click on the point cloud in the scene (or down in the project files), the inspector should offer you different ways of rendering and "default point" option should be picked Hope that helps, sorry I couldn't provide any screenshots

tokuuuu commented 2 years ago

I can't change "Apply Distance". Property is grayed out.

Unity 2020.3.33

tokuuuu commented 2 years ago

I could indicate ".Ply" data.

Unity 2019.4.39

Thanks.