Giter Club home page Giter Club logo

Comments (4)

robotTX1 avatar robotTX1 commented on June 12, 2024 1

Hi,

In the mean time, I figured out if I set the gameobject that has the mesh renderer to static then the trees go crazy. I turned off static and it works perfectly. I got the Book of the Dead project from a Github repo.
Thanks for making the shader compatible with URP it is a huge help.

from foliage-wind.

happy-turtle avatar happy-turtle commented on June 12, 2024

Hi, thanks for trying it out. I wouldn't even know where to get the Book of the Dead assets anymore.

This is probably an error caused by different time scales. This is the only thing different between play mode and edit mode. See line 18 and line 39. Only using Time.time might do the trick since it is scaled by timeScale. Unfortunately I do not remember why there is a differentiation between edit mode and play mode. A perfect example for when you should put a comment in your code.

from foliage-wind.

happy-turtle avatar happy-turtle commented on June 12, 2024

Hi,

In the mean time, I figured out if I set the gameobject that has the mesh renderer to static then the trees go crazy. I turned off static and it works perfectly. I got the Book of the Dead project from a Github repo.
Thanks for making the shader compatible with URP it is a huge help.

Ah alright, glad you found a fix. Static batching won't work, because with static batching all static objects share their vertex information. The wind effect is based on individual vertex displacement for every tree though. So it will probably cause problems. If you need any other static flag just disable only static batching for your trees.

Thanks for the tip on how to find the old assets, good point 😄

from foliage-wind.

robotTX1 avatar robotTX1 commented on June 12, 2024

Thanks for your answer and your help!

With your explanation it's clear why it didn't work as expected.
Here is the book of the dead repository in case you need it: https://github.com/Delacrowa/book-of-the-dead-environment-hdrp

from foliage-wind.

Related Issues (1)

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.