Author Topic: Near plane and far plane  (Read 644 times)

Any clue what the default near plane value is in TGE? I believe I know where I might find it, but if anybody knows it already that'd be a lot more convenient.
The far plane value is essentially the minimum of your client's current visible distance and the server's environment setting for the visible distance. Does anybody know a simple way of getting the actual visible distance that is currently in effect? (from the client, can't access $EnvGuiServer:: data).
« Last Edit: April 08, 2015, 05:28:16 AM by portify »

I have a feeling that this might be the near plane value but I'm not sure:

$pref::TS::screenError = "0.001";

There doesn't seem to be any global variables related to the visible distance other than $pref::visibleDistanceMax, $pref::visibleDistanceMod and $pref::autoVisibleDistance. These aren't particularly useful though as they don't help with factoring in the server's environment visible distance (or even the dynamic visible distance).
There doesn't seem to be any functions starting with get or methods on GameConnection (ServerConnection), Camera or Player (ServerConnection.getControlOb ject()) relating to the visible distance (not that it would make sense to have them as methods on those regardless).
« Last Edit: April 08, 2015, 05:56:38 AM by portify »

Currently using $pref::TS::screenError --> $Pref::visibleDistanceMax which is alright, though something that can determine the smaller far plane caused by environment settings would still be better.

I'm pretty sure that the draw distance is set as an engine variable. As implied by the variable name, $pref::visibleDistanceMax simply commands an upper limit for the engine to not exceed.