Needle Engine & React blending

I have a Needle Engine project for web AR for mobile devices and am trying to blend it with a react app so that I can develop out the rest of the application and other features that need to be included in the app. I have built it out somewhat, however, I have come to a roadblock in the server configurations of the needle engine server and how javascript files are run. If you have any ideas as to what I should try or any insight at all please let me know.

Original Post on Discord

by user 580207235171614720

Hey, did you take a look at our react sample?

Can you go into more detail what you mean by roadblock?

Are you using any other framework/service like nextjs too?

Not using anything else besides react and needle. I’ll check out your react sample and then checkback to see if I could figure it out.

by user 580207235171614720

I’ve been looking through the samples and am wondering which one is made with react?

by user 580207235171614720

Sorry for the confusion - when you create a new project from ExportInfo you can choose react as template. There’s no separate sample right now, but I’ll take a note to add one for consistency

So what you are saying is to install the needle project into an already made react application?

by user 580207235171614720

Nvrm I found what you were saying

by user 580207235171614720

Okay so I made my project with react instead of vite and am wondering how I can test how the development of web AR, when I run the site through my phone I don’t see the option to open an AR experience? I included the USDZ exporter in my exporter aswell.

by user 580207235171614720

I’m figuring this out slowly :TrippyBlob:

by user 580207235171614720

Add the WebXR component in your scene, has AR and VR enabled by default

No problem - we’re here to help and it’s also super helpful for us that you’re telling us what you’re struggling with, so we can improve docs and the flow

I’ve added this component and retried to do it a few times. Should I add it to my sceneroot or as a child of my scene root?

by user 580207235171614720

Both cases should work

Hi @Ju1ien1100 did you figure it out? :slightly_smiling_face: