1. Post #1
    Gold Member
    WeltEnSTurm's Avatar
    December 2007
    1,867 Posts
    I wanted to make a script that lets you choose your size, useful for making maps appear bigger. One of the problems is, that there seems to be a clipping plane in front of the eyes, where nothing is rendered behind it.

    Is there any way to change that?

  2. Post #2
    Gold Member
    dingusnin's Avatar
    February 2010
    1,943 Posts
    yes , my trird person script with the distance set to 1

    Edited:

    third
    Reply With Quote Edit / Delete Reply France Show Events Dumb Dumb x 4 (list)

  3. Post #3
    Gold Member
    blackops7799's Avatar
    December 2006
    1,714 Posts
    Change the FOV.

  4. Post #4
    im gay
    _Kilburn's Avatar
    July 2007
    3,594 Posts


    It's probably due to the near plane being too far. I don't remember any console command or Lua function which allows you to change it, so I guess you'll have to ask Garry.

    Edited:

    Change the FOV.
    You sure that's a good solution?

  5. Post #5
    Gold Member
    WeltEnSTurm's Avatar
    December 2007
    1,867 Posts
    I thought about setting the actual view origin behind the head, and decrease the FoV for that. Wouldn't work that well on tiny sizes though.

    Edited:

    And let's see if Garry finds this thread

  6. Post #6
    Gold Member
    blackops7799's Avatar
    December 2006
    1,714 Posts
    You sure that's a good solution?
    It works fairly well. Maybe not for the scale he is using.

  7. Post #7
    Ha3
    Gold Member
    Ha3's Avatar
    January 2007
    376 Posts
    http://wiki.garrysmod.com/?title=Camera_data

    Found that there is something called znear "Near Clipping Distance". Could there be any override using Render.RenderView which uses Camera Data .. ?
    Reply With Quote Edit / Delete Reply France Show Events Friendly Friendly x 2 (list)

  8. Post #8
    Gold Member
    WeltEnSTurm's Avatar
    December 2007
    1,867 Posts
    http://wiki.garrysmod.com/?title=Camera_data

    Found that there is something called znear "Near Clipping Distance". Could there be any override using Render.RenderView which uses Camera Data .. ?
    I love you.
    I already was on this page some time ago, but I couldn't remember znear.

  9. Post #9
    Ha3
    Gold Member
    Ha3's Avatar
    January 2007
    376 Posts
    I love you.
    I already was on this page some time ago, but I couldn't remember znear.
    Have fun

  10. Post #10
    Gold Member
    WeltEnSTurm's Avatar
    December 2007
    1,867 Posts
    It bugs a little bit (rendering & postprocessing errors), I noticed CalcView in the source engine has znear and zfar parameters. Gonna try that now.

  11. Post #11
    Gold Member
    BackwardSpy's Avatar
    May 2008
    6,335 Posts
    Please post your results if it works, I need something like this as well
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Agree Agree x 1 (list)