Giter Site home page Giter Site logo

Comments (11)

Ayfel avatar Ayfel commented on July 19, 2024

Are you in URP?

from prefablightmapping.

mcread29 avatar mcread29 commented on July 19, 2024

I'm using the HDRP

from prefablightmapping.

Ayfel avatar Ayfel commented on July 19, 2024

I see, there are some issues with URP and it seems now with HDRP, I need to investigate these but since these pipelines are not completely stable I am not sure what to expect. So does this happen when you instantiate by hand by drag and dropping the asset in the scene as well? how about if you instantiate in the scene where you initially baked them?

from prefablightmapping.

Ayfel avatar Ayfel commented on July 19, 2024

Another thing that you can try is to comment out the section in the code where shaders are reassigned

// You have to release shaders. Material[] mat = info.renderer.sharedMaterials; for (int j = 0; j < mat.Length; j++) { if (mat[j] != null && Shader.Find(mat[j].shader.name) != null) mat[j].shader = Shader.Find(mat[j].shader.name); }

This section might be conflicting with new shaders in these pipelines

from prefablightmapping.

mcread29 avatar mcread29 commented on July 19, 2024

It doesn't matter how or where I instantiate them, they'll appear that way until I move then and then use ctrl+z to undo the move.

I tried commenting out that section and it didn't seem to fix the issue.

from prefablightmapping.

Ayfel avatar Ayfel commented on July 19, 2024

I will try an HDRP project when I get a minute. Does this happen at runtime as well or only in the Editor?

from prefablightmapping.

mcread29 avatar mcread29 commented on July 19, 2024

Runtime as well. I tried it with my level generating at runtime as well as having the prefabs instantiated in their broken state.

from prefablightmapping.

mcread29 avatar mcread29 commented on July 19, 2024

@Ayfel I figured out what the issue was. I had previously had auto generate on the scene's lighting, so there were baked lightmaps for geometry that didn't exist, and clearing the baked data fixed the issue.

from prefablightmapping.

mcread29 avatar mcread29 commented on July 19, 2024

I was mistaken, the issue persists even after clearing the existing baked data in the scene.

from prefablightmapping.

Ayfel avatar Ayfel commented on July 19, 2024

I just did a sample project with HDRP and everything worked fine. So I am afraid its probably something in the setup of your project most likely
image

This is in 2020.3.5f1 and HDRP

from prefablightmapping.

mcread29 avatar mcread29 commented on July 19, 2024

Figured out the issue. My artist had said they removed all probuilder meshes, but the ones that were causing issue WERE probuilder objects. After exporting the meshes and replacing them, works perfectly! Sorry to take up your time

from prefablightmapping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.