#Issue while building experience from Unity

1 messages · Page 1 of 1 (latest)

fossil niche
#

Hi all! I'm currently working on a project using the Needle Unity Package. I built a sample for testing earlier this summer and my demo worked fine (built with gzip compression and deployed with "http-server -g"). Lately i updated the Needle Package and updated some content in my demo. Now, when i test the experience from Unity, everything works correctly, but when i build and start the local server i have some graphic issues and the experience crashes. I will share some screenshot of the visual issues and the errors i get in the console (in the attachments you can see the view i get in build and the one i see from unity). The main problem is that when i load a prefab, i get a "Render loop error" and the experience get stuck with half the asset loaded. You can see the error i get in the attachments.

Thanks in advance for the help !
For any images, errors or code snippets needed, ask, and i'll share it the best way i can!

PS: Now i also lost mouse interactions for some reason, if can get an error about that i'm going to share it.

hoary ruin
#

Hi do you get the same error in a local server? Because it's very hard to understand the error if we're dealing with minimized and bundled code

fossil niche
#

Hi! So, if i start the local server from unity, i can't interact with the UI, in the landing page i get the warnings you see in the first attachment.

#

when i load a prefab, the browser lags a bit but the level gets loaded. I get these warning:

#

the only error i get is this:

#

i also noticed that while the UI is not responsive, other clickable element in the demo are

hoary ruin
#

Which version of Needle Engine are you using? If you're using 3.26.0 preview then you want to update to 3.26.1 because this one had a bug where UI interaction wasnt working anymore. It's fixed in 3.26.1

fossil niche
#

Yes, i'm using the preview version. I'm going to update it and check if the interaction problem is solved!

#

btw thanks a lot for the help!

#

Yey interactions are back! Now i can show you the weirdest bug i've dealt with lately... The two screencaps are from the local version and from the "deployed" version (with http-server). In the first, you can see the brick wall and lamps correctly, in the second one, the wall uses an other image present in the project as normal map ( the image itself is not a normal map...) and the lamps on the wall are green ... i think that's an issue with reflections, but im still trying to uderstand this issue

#

in the console i get some warnings and two errors (but the errors are relative to my code so i can easily solve it)

hoary ruin
#

Can you send a bugreport with this scene?

fossil niche
#

here on discord or from the webpage?

#

btw i also get the render loop error caused by this

hoary ruin
#

In Unity using Needle Engine/Report a bug

fossil niche
#

👍

#

ok, the bug report sould have been uploaded (if unity didn't lie)

#

i have the zipped bugreport if needed

fossil niche
#

hi @hoary ruin, is there a way to check progress on the bug report? After the upload made from unity i didn't get any kind of feedback or url to check in the issue was getting checked.

hoary ruin
#

Hi sorry for the lack of feedback - we received it

fossil niche
#

hola! how you doing? was there any update on the graphical issue? i tried to update Needle engine last week but got the same issue

hoary ruin
#

Hi sorry but we havent looked into this yet - I bumped it again and will try to look into it the next few days

fossil niche
#

thank you very much! Do you know if the bug report is tracked on github? So d

#

so that i don't have to ping you directly

hoary ruin
fossil niche
#

ok, i will try it as soon as possible

fossil niche
#

hey! yesterday i tried to upload a lighter bug report but had some connectivity issues

#

i should be able to send you the report today

#

AH! this time, no issue uploading the report

hoary ruin
#

Thank you, we have received it

fossil niche
#

hey! Any update? Is managed to remove all the extra scene from the project, tell me if it's still to much!

hoary ruin
#

Hello @fossil niche not yet - i bumped the issue internally, thanks for your patience and sorry for the delay right now

hoary ruin
#

Hello @fossil niche I just opened the project and it seems to be the same as before? Could you please try to isolate the issue and not send the whole project?

You can either make a new scene or try adding the objects in the scene that you see this issue happening with (if it happens e.g. with the wall and the floor objects try if it also reproduces if you just add those objects to the scene). Please remove custom components as well

I would also recommend to update Needle Engine to >= 3.28 (you're currently on 3.22.2). Thank you

fossil niche
#

ok, ill'try to create a new scene with the object with the issues! I'm sorry, i removed a lot of reference from the main scene and thought it was enough to reduce the content inside the bug report. Tomorrow i'm gonna update needle to 3.28 and upload another issue

fossil niche
#

HI! I managed to upload a bug report with the needle default scene with a couple assets that breaks in my project

#

i saw that the lamps that appear green in my scene, appear normal in the empty scene (blobhyperthink) while the wall remain broken

hoary ruin
#

Hello @fossil niche thanks for the report. I tried your scene just now and both a production build as well as. a local server with compression look as expected (see screenshot)

I didnt try with http-server -g tho - do you have any information about that? You use that to preview the final result in the dist directory? Can you try clicking the Preview Build button in the Unity Build Window for Needle Engine?

fossil niche
#

oh yes i use http-server in order to try a "deployed" version. Later i'm gonna try the preview build!

#

btw yesterday i saw that the issue shows up if i load the asset from a prefab (i have a customised scripts wich switches the environment). I'm currently exploring the Multi Scenes sample in order to update the scene change, maybe that will do

#

(right now i have a set of prefab that are loaded whene the user changes room, i saw that now you can load scene assets instead of switching prefab)

fossil niche
#

hey @hoary ruin it's been a busy week and i'm coming back to this today. This project will run on a hosted server and in order to test a deployed version, i'm using http-server as said in the previous message. Is there another way to validate the build ? If the issue is with http-server, do you have a suggestion on what to try to test the deployed build?

#

i also tried to deploy on glitch and the graphical issues are not present ...

hoary ruin
fossil niche
#

ok, i tried the preview build (with the full project) and the issues show up again, i'm going to find a case in which i can show you the issue without publishing a gigantic bug report

fossil niche
#

hey! i think i finally understand what the problem was

#

when we started the project, there was no scene loading support, so we loaded prefab in a single scene, and it was working fine

#

after a needle update the graphical errors started popping up

#

i saw that in the samples there's the scene loading logic, so i tried it out and the scenes are getting loaded fine, without graphical issues

#

now i just need to integrate the new logic in my project and i should be good to go

hoary ruin
#

Out of curiousity: how did you load the scene in your solution?