-
Notifications
You must be signed in to change notification settings - Fork 213
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
Error on play: "Object reference not set to an instance of an object" #2
Comments
I have the same issue. The content of my transforms.json is formatted very differently from your camera.json. Is there a practical way to match the content? |
@matthewrbrennan my guess is that there was some other error before that, that causes the later nullref exception. Anything else in the previous console error messages? @carlosnavarro-cn I only made it support |
@aras-p So there was! It jumped so quickly to "999+ errors" I didn't think to scroll all the way to the first one, which was this: Exception: InputVertex size mismatch, we expect 248 file has 27 Again, I'm using a .ply output from NerfStudio (it's about ~180 megabytes) - I don't recall exactly what settings I had at export, but there was nothing that jumped out at me as potentially gamechanging. Do the images (jpegs) need to be in the folder as well? Thanks Aras! |
@matthewrbrennan "Exception: InputVertex size mismatch, we expect 248 file has 27" would mean the file is not a PLY file containing Gaussian Splats, but rather a file containing something else (perhaps just a sparse point cloud?) |
@aras-p OK - so that means simply exporting a PLY pointcloud from Nerfstudio won't work (duh) - guess I've got to do some more reading up. Thanks! edit: For anyone in the future: @carlosnavarro-cn came to the same conclusion below - follow the steps outlined in the paper to get an appropriate pointcloud! |
Thank you, @aras-p ! I realized I couldn't just use a NeRF transforms.json, but needed to train a Gaussian Splatting scene to get the proper camera.json. I got it working now! |
Getting this error in Unity 2022.3.9:
NullReferenceException: Object reference not set to an instance of an object
GaussianSplatRenderer.OnPreCullCamera (UnityEngine.Camera cam) (at Assets/GaussianSplatting/Scripts/GaussianSplatRenderer.cs:345)
UnityEngine.Camera.FireOnPreCull (UnityEngine.Camera cam) (at <10871f9e312b442cb78b9b97db88fdcb>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
I'm using a pointcloud.ply from NerfStudio with the transforms.json renamed to the expected "cameras.json"
Not sure where I went wrong, but any guidance would be much appreciated!
The text was updated successfully, but these errors were encountered: