Jump to content

Lod, objects and distance


Recommended Posts

Hi. I have map with some objects and I have place with big rocks there. Is it possible to make view distance of this rocks very far? In a way like terrains, houses and etc. loaded, i mean from very big distance. I already used engineSetModelLODDistance and tweaked setFogDistance + setFarClipDistance. What can i do to increase distance? I thinked about gluing some of rocks in single object.

Atm they are loaded like this:

seOGwF8.png

 

 

Edited by AlexRazor
Link to comment
17 hours ago, Pirulax said:

setFogDistance()

Is only for removing fog.


setFarClipDistance()

Does nothing too, because the objects in that are are rendered.

But I know that there is a function that is used in such case, but I dont know its name, sorry.

Thanks for help! This two functions doing one thing for me: they hiding bad view distance of small objects by lowering view distance of lods and etc(farclip) and making it smoother(fog).

Link to comment
20 hours ago, Pirulax said:

there is a function called


setElementStreamable()

But use this function because the object on which you use this function will be always streamed, thus decreasing FPS.

So i actually tried it and it doesn't work for me.

Spoiler

 


for i,v in ipairs(
{
{1259,-859.79999,2716.3,56.8,3.988,355.988,268.527,1,0,false},
{16113,953.90002,2549.1001,9.8,0,0,116,1,0,false},
{16113,962.79999,2589.5,9.8,0,0,115.999,1,0,false},
{16113,973.90002,2633.1001,9.8,0,0,115.999,1,0,false},
{16113,983.40002,2675.6001,9.8,0,0,115.999,1,0,false},
{16113,996.59998,2717.7,9.8,0,0,115.999,1,0,false},
{16113,1000.3,2759.2,11.6,0,0,145.999,1,0,false},
{16113,993.5,2795.3999,16.4,0,0,143.997,1,0,false},
{16113,975.70001,2836.3,26.1,0,346,153.992,1,0,false},
{16113,964.79999,2858.3999,33.4,0,355.995,153.99,1,0,false},
{16113,952.5,2880.1001,39.7,0,355.995,153.99,1,0,false},
{16113,938.5,2915.5,45,358.468,40.013,155.276,1,0,false},
{16113,1037.6,2812.2,16.4,0,0,163.992,2,0,false},
{16113,1008.8,2865.6001,33.8,0,0,153.987,2,0,false},
{16113,985.29999,2901.3999,38.5,0,0,153.984,2,0,false},
{16113,1047.9,2731.3999,16.4,0,0,123.987,2,0,false},
{16113,1031.7,2639.3,16.4,0,0,123.986,2,0,false},
{16113,997.29999,2558.5,16.4,0,0,123.986,2,0,false},
{16113,968.20001,2474.2,16.4,0,0,111.986,2,0,false},
{16113,954.20001,2390,16.4,0,0,131.984,2,0,false},
{16113,961.59998,2127.3,16.4,0,0,131.979,2,0,false},
{16113,945.79999,2044.9,16.4,0,0,131.979,2,0,false},
{16113,951.7002,1953.9004,16.4,0,0,131.979,2,0,false},
{16113,953.20001,1863.3,16.4,0,0,131.979,2,0,false},
{16113,955.09998,1780.2,16.4,0,0,131.979,2,0,false},
{16113,956.20001,1692.4,16.4,0,0,131.979,2,0,false},
{16113,957.5,1605.9,16.4,0,0,131.979,2,0,false},
{16113,959.5,1513.8,16.4,0,0,131.979,2,0,false},
{16113,953,1425.8,16.4,0,0,131.979,2,0,false},
{16113,953.20001,1336.4,16.4,0,0,131.979,2,0,false},
{16113,950.09998,1247.2,16.4,0,0,131.979,2,0,false},
{16113,963.70001,1159.7,16.4,0,0,149.979,2,0,false},
{16113,973.20001,1068.4,16.4,0,0,129.974,2,0,false},
{16113,969,1009.9,16.4,0,0,129.974,2,0,false},
{16113,997.90002,933.59998,16.4,0,0,157.974,2,0,false},
{16113,1008.5,851.40002,16.4,0,0,145.972,2,0,false},
{16113,1030.4,767.90002,16.4,0,0,145.97,2,0,false},
{16113,1052.19995,690.79999,16.4,0,0,145.972,2,0,false},
{16113,-780,2468.1001,116.3,0,0,262.747,1,0,false},
{5463,985,2427.1006,62.3,0,0,83.996,1,0,false},
{5463,976.5,2396.8,72.3,0,24,81.991,1,0,false},
{5463,1023,2577.7,62.3,332.019,2.265,55.059,1.5,0,false},
{5463,1066.1,2699.6001,58.5,0,0,63.996,1.5,0,false},
{5463,950.20001,2308.8,44.4,0,0,83.996,1,0,false},
{5463,897,2070.3999,36.7,0,8,77.996,1,0,false},
{16113,924.90039,2461.9004,9.8,0,0,114.997,1,0,false},
{16113,911.59998,2420.3,9.8,0,0,115.247,1,0,false},
{16113,909,2376.3,9.8,0,0,115.247,1,0,false},
{16113,905.90002,2329.1001,9.8,0,0,136.997,1,0,false},
{16113,904.40002,2284.8999,9.8,0,0,127.494,1,0,false},
{16113,906.90002,2241.7,9.8,0,0,147.491,1,0,false},
{16113,907.90002,2196.5,9.8,0,0,128.236,1,0,false},
{16113,900.5,2150.8999,9.8,0,0,117.482,1,0,false},
{16113,885.40002,2110.3999,9.8,0,0,117.482,1,0,false},
{16113,875.59961,2066.5,9.8,0,0,117.477,1,0,false},
{16113,871.2002,2022.4004,9.8,0,0,117.477,1,0,false},
{16113,866.7002,1977.0996,9.8,0,0,117.477,1,0,false},
{16113,870.70001,1929.1,9.8,0,0,137.482,1,0,false},
{16113,874.29999,1883.9,9.8,0,0,137.477,1,0,false},
{16113,877.70001,1839.5,9.8,0,0,137.477,1,0,false},
{16113,880.59961,1794.5996,9.8,0,0,139.477,1,0,false},
{16113,887.20001,1749.8,9.8,0,0,139.477,1,0,false},
{16113,895.40002,1705,9.8,0,0,139.477,1,0,false},
{16113,900.40002,1660.3,9.8,0,0,139.477,1,0,false},
{16113,905.5,1616.1,9.8,0,0,139.477,1,0,false},
{16113,909.70001,1570.7,9.8,0,0,139.477,1,0,false},
{16113,907.70001,1524.6,13.8,0,0,112.477,1,0,false},
{16113,906,1480.3,13.8,0,0,132.473,1,0,false},
{16113,913.59998,1433.7,13.8,0,0,132.468,1,0,false},
{16113,911.79999,1388.2,13.8,0,0,132.468,1,0,false},
{16113,914,1342.5,13.8,0,0,132.468,1,0,false},
{16113,912.09998,1298.4,13.8,0,0,132.468,1,0,false},
{16113,912.5,1252.4,13.8,0,0,132.468,1,0,false},
{16113,917.29999,1213.4,18.1,0,0,132.468,1,0,false},
{16113,922.90002,1169.3,20.4,0,0,132.468,1,0,false},
{16113,930.20001,1124.4,20.4,0,0,132.468,1,0,false},
{16113,932.40002,1080,16.1,0,0,132.468,1,0,false},
{16113,922.29999,1041,12.4,0,0,132.468,1,0,false},
{16113,923.59998,995.40002,12.4,0,0,134.468,1,0,false},
{16113,925.79999,950.40002,12.4,0,0,134.467,1,0,false},
{16113,927.5,905,12.4,0,0,134.467,1,0,false},
{16113,928.5,861.40002,12.4,0,0,134.467,1,0,false},
{16113,928.70001,818.5,12.1,0,0,134.467,1,0,false},
{16113,933.79999,774,11.4,0,0,140.467,1,0,false},
{16113,942.20001,732.79999,8.9,0,0,154.466,1,0,false},
{16113,979.29999,709,8.9,0,0,204.462,1,0,false},
{16113,974.20001,698.90002,1,0,0,204.461,1,0,false},
{16113,947.90002,697.29999,2.5,0,0,102.461,1,0,false},
{3866,682.40002,1839.5,12,0,0,350,1,0,false},
{5463,680.09961,1836.7998,17.2,0,0,79.991,1,0,false},
{3866,686,1835.9,12,0,0,259.997,1,0,false},
{3866,682.29999,1832.8,12,0,0,169.997,1,0,false},
{3866,678.90002,1836.3,12,0,0,79.991,1,0,false},
{3866,926,2425.2,39.6,358.098,341.99,355.379,1,0,false},
{3866,682.29999,1832.8,27.5,0,0,169.991,1,0,false},
{5463,542,2250.5,41.1,11.933,353.867,107.264,1,0,false},
{3866,543.09998,2246.3999,44.5,354.233,343.916,196.338,1,0,false},
{3866,543.29999,2253.7,42,344.159,8.318,288.282,1,0,false},
{3866,535.70001,2246.8,46.5,17.954,355.795,109.295,1,0,false},
{3866,534.79999,2254.1001,45.3,3.801,18.038,16.756,1,0,false},
{3866,530.09961,2253.7998,31.3,3.796,18.029,16.749,1,0,false},
{3866,530.70001,2246.2,32,17.952,355.792,109.292,1,0,false},
{16000,497.5,2387.3,28.6,0,0,238,1,0,false},
{3244,-642,2675.1001,71.6,354.059,8.043,72.838,1,0,false},
{3244,489,2334.7002,39.2,354.051,8.042,72.085,1,0,false},
{3244,-476.79999,2681.3,52.7,2.248,359.498,95.265,1,0,false},
{3244,-352.20001,2577.8,39.3,2.247,359.495,45.262,1,0,false},
{3244,924.5,2382.3999,14.3,1.928,329.469,276.373,1,0,false},
{5463,924.29999,2421.1001,37.3,344.04,4.161,85.142,1,0,false},
{3866,-275.7998,2608.1006,69.5,0,0,359.989,1,0,false},
{3866,923,2419.3999,38.8,340.008,357.87,89.266,1,0,false},
{3866,927.70001,2419.6001,25.3,340.005,357.869,89.264,1,0,false},
{3244,884.09961,2006.2998,9.8,1.928,329.469,316.373,1,0,false},
{3866,900.5,2073,37.5,352.005,357.98,349.716,1,0,false},
{3866,900.29999,2071,22.8,352.002,357.979,349.711,1,0,false},
{3866,896.09998,2068,37.8,0,8,79.997,1,0,false},
{3866,895.70001,2065.8,23,0,7.998,79.997,1,0,false},
{5463,913,1783.1,37.2,0,7.998,97.992,2,0,false},
{3866,682.40039,1839.5,27.8,0,0,349.997,1,0,false},
{5463,-256.60001,2605.1001,60.6,0,0,89.989,1,0,false},
{5463,-277.60001,2605.1001,60.6,0,0,89.989,1,0,false},
{3866,-255.3,2605.1001,69.5,0,0,269.995,1,0,false},
{3866,-258.10001,2602,69.5,0,0,179.995,1,0,false},
{3866,-278.70001,2605,69.5,0,0,89.995,1,0,false},
{16113,938.59961,2504.2998,9.8,0,0,115.247,1,0,false},
{16113,-628.59998,2408.2,94.7,346.035,4.122,275.74,1,0,false},
}) do
    local obj = createObject(v[1], v[2], v[3], v[4], v[5], v[6], v[7])
    setObjectScale(obj, v[8])
    setElementDimension(obj, v[9])
    setElementInterior(obj, 0)
    setElementDoubleSided(obj, v[10])
    setElementStreamable ( obj, true )
    outputDebugString(isElementStreamable(obj))
end

 

Why?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...