Jump to content

Vegetation-Layer displaybug with different CameraRanges


klepto2
 Share

Go to solution Solved by Josh,

Recommended Posts

When you set the camera  far-ange to something higher than the default 1000 the layersystem is not displayed correclty anymore and start flickering when you move the camera. The bug is more visible with higher farranges but also noticable when the range is somewhere like 5k or 10k.

This is a small gif to show the bug:

vegetation_cam_range_bug.thumb.gif.8cd2f67d8a521448c75198d4d01673b6.gif

and i have add a small sample map demonstrating the bug.

The zip contains a map with a terrain and the box mdl used as a vegetation layer. Also the "CameraControls.lua" is modified so that when you press "F" the range is set to 1.0 and 100000.0 and to default when "F" is not pressed down.

VegetationLayerBug.zip

  • Windows 10 Pro 64-Bit-Version
  • NVIDIA Geforce 1080 TI
Link to comment
Share on other sites

I can produce this error by setting the viewport camera range to 0.1, 10000 in the editor code, but I do not immediately see the cause of this...

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • Solution

I was able to improve the camera frustum calculation to eliminate this effect.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...