1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.30 Bug Reporting thread
    Solutions and more information may already be available.

Disable Particle Light At Night

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by cessni, Mar 24, 2016.

  1. cessni

    cessni
    Expand Collapse

    Joined:
    Jun 16, 2015
    Messages:
    412
    All particles by default are lighted at night, so how to disable this (except sparks obviously)?

    Thanks!
    --- Post updated ---
    No reply?
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    People sleep... :\

    BeamNG.Drive/art/shapes/particles/managedParticleEmitterData.cs
    Datablocks have this line:
    Code:
        useLighting = "0";
    
    0 = Always lit up (Like sparks)
    1 = Uses game lighting (Like smoke for example)

    I don't suggest to edit that, if we work on new particles, things are going to break very easily.
     
  3. cessni

    cessni
    Expand Collapse

    Joined:
    Jun 16, 2015
    Messages:
    412
    Thanks, but wouldn't this disable sparks self-lighting too?

    Nevermind, I think this has to be done for each particle in the file, right?
     
  4. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    Each 'material' has its own useLighting = "0"; line.
     
    • Like Like x 1
  5. cessni

    cessni
    Expand Collapse

    Joined:
    Jun 16, 2015
    Messages:
    412
    As you said in a previous support thread, all particles are visible at night by default. The problem is I can not find the line to disable smoke self-lighting for example, which should be as visible as the ground in this case, according to common sense :p. Thanks in advance.

    upload_2016-3-29_22-36-17.png
    --- Post updated ---
    Still sleeping?
     
  6. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    Dude be patient. It's not his job to serve only you on here.
     
    • Like Like x 1
  7. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    No, I'm working.. :\

    It's the same thing as I wrote in my previous post.

    Code:
        useLighting = "0";
    
    This bit controls if the particle uses it's own lighting (like now), or if it should use the ambient colour.
    You add that line to whatever particle you want to be able to control the lighting. If the line is not there, I recall the game defaults it to zero (own lighting)
     
  8. cessni

    cessni
    Expand Collapse

    Joined:
    Jun 16, 2015
    Messages:
    412
    God not you again. It could not be otherwise, you never contribute to the actual topic.

    And I never said that.
    --- Post updated ---
    Thank you!
     
  9. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    "God, not me again"? You were being impatient. Forgive me for being the voice of reason, kiddo. *insert your previous triggering.ng picture here*
     
    • Like Like x 1
  10. cessni

    cessni
    Expand Collapse

    Joined:
    Jun 16, 2015
    Messages:
    412
    Please leave.
     
  11. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    Ok, I'll do that. Good job maintaining good rapport with your fellow forum members; especially your fellow mod makers.

    Good day, sir or madam.
     
    • Like Like x 1
  12. cessni

    cessni
    Expand Collapse

    Joined:
    Jun 16, 2015
    Messages:
    412
    No luck disabling particle self lighting... I don't know what could I be missing. Thanks in advance.
     

    Attached Files:

  13. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    Got it.
    There was a new option some time ago.

    'High/Low resolution' particles (Called 'highresonly' in the options)

    Smoke and many other particles uses uses the 'low-resolution' particles to avoid FPS issues.
    That will make the game engine render those at half resolution, and those won't be using the ambient lighting anymore, no matter what you set in the 'uselighting' line.
    Not sure if a bug or a limitation of this mixed render, but I forwarded it to the team for further check.
     
    • Like Like x 2
  14. cessni

    cessni
    Expand Collapse

    Joined:
    Jun 16, 2015
    Messages:
    412
    Alright I will wait then. Thanks.
     
  15. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    And fixed. Will be avalaible in the next update.
     
  16. cessni

    cessni
    Expand Collapse

    Joined:
    Jun 16, 2015
    Messages:
    412
    Awesome!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice