• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Client Side Scene Fog?

    Scheduled Pinned Locked Moved
    General
    2
    2
    352
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tutu10
      last edited by Sebastian Roth

      I’m very new to Lua so I apologise if this is a dumb question.

      Is it possible to draw scene fog that only the person who activated it can see? I’ve found a series of Fog-related functions in the Lua wiki but none of them have examples or explain how they’re used:

      • Render.FogMode
      • Render.FogMaxDensity
      • Render.FogColor
      • Render.SetFogZ

      (To name a few)

      I tried using these in a function similar to this:

      
      localfunction DoFog() 
      		render.FogMode( MATERIAL_FOG_LINEAR_BELOW_FOG_Z )
      		render.FogMaxDensity( 100 )
      		render.SetFogZ( 10 )
      end
      

      And it doesn’t work because I’m obviously doing it wrong. Is this even possible? And can someone help me? =(

      JunkhackerJ 1 Reply Last reply Reply Quote 0
      • JunkhackerJ
        Junkhacker Developer @tutu10
        last edited by

        @tutu10 i think you posted this to the wrong forum…

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post

        212

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project