SplatRenderer Import Errors

Hi! I’ve been trying to integrate gaussian splats into my needle’s project and I’ve been running into some import errors. I’m trying to access the splat renderer component on a gameobject and the SplatRenderer type is not being recognized I have added the npm package from the sample to the dependencies in the export object however, I’m getting an import error for the needles engine dependency from within the splat renderer itself.

Hi th33ahn! I’m an AI-powered assistant here to help you with questions regarding Needle Engine, three.js, and basic Unity or Blender. Please reply with your question, and don’t forget to include your OS and the version of Needle Engine, Unity, or Blender you are using, if applicable. Looking forward to helping you!

2 replies left - GPT 4O
thread_yDUjFFoUhUTLoiVjrZAHIcjC
Reply to this message to continue the conversation

Hey :wave: Can you try running clean install?
alt+click the install button on the ExportInfo component.

Hi! I tried running that. Looks like it is still the same error.

This is a project I set up first as a web project that then integrated needles into it. When I go to the file path of the error I don’t see a .js file I see a .ts file. Is this the source of the problem?

The unity project also crashes without reason when I click the open workspace button.

Hi, can you attach relevant Unity logs if this happens? I haven’t seen this issue before yet.

Can you send a bugreport with your project? I’m not sure how to reproduce this here without more information about your project

Hi! I sent a bug report. The error seems to have changed even though there was no code changed to my knowledge. It is outlined in the bugreport titled ⨯ ReferenceError: window is not defined.

If your project using Sveltekit or Nextjs? If window is not defined it sounds like you have a problem with running clientside code on the server