Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  color from viscosity causes fatal error
#1
Hey small bug report:


if ColorFromViscosity is added to an emitter and ViscositySurfTensionToUserData is not present there are some strange explosions of value, the scripts seem to rely on one another the way they are written right now

A simple fix might be to RequireComponent in the color script , or at least throw a warning/error in the editor log explaining to new users that if you add the color script, you probably also want the script that populates those values
Reply
#2
(21-01-2021, 05:26 AM)sterlingcrispin Wrote: Hey small bug report:


if ColorFromViscosity is added to an emitter and ViscositySurfTensionToUserData is not present there are some strange explosions of value, the scripts seem to rely on one another the way they are written right now

A simple fix might be to RequireComponent in the color script , or at least throw a warning/error in the editor log explaining to new users that if you add the color script, you probably also want the script that populates those values

Hi there,

Thanks for the report! both these scripts are just samples (not core components), meant to only be used together in the Raclette sample scene. They were never written with robustness/reusability/modularity in mind, just as a basic example of how to work with userData and diffusion.

Nevertheless I will revisit them and at the very least throw an error message if they're used independently of each other.

cheers!
Reply