Jump to content

How to define LOD Distance?


omid3098
 Share

Recommended Posts

I made a very very BIG model and when I drag it into editor, it will allways LOD2 visible (because of my distance from center of model).

well I cound node define LOD distance in ini file as below:

Mymodel.ini:

LODDistance="1000 2500"

 

and also could not find other samples in available models.. how can I define LODDistance?

Omid Saadat

OD Arts Blog

 

AMD Phenom II X4 940 - Geforce 8800GTS - 4GB RAM - XP x86

AMD 6000+ - Geforce 9800 GT - 2GB RAM - XP x86 (Home pc)

Intel Core i7 - Geforce 310M - 4GB Ram - Win7 x64 (Laptop)

Link to comment
Share on other sites

I made a very very BIG model and when I drag it into editor, it will allways LOD2 visible (because of my distance from center of model).

well I cound node define LOD distance in ini file as below:

Mymodel.ini:

LODDistance="1000 2500"

 

and also could not find other samples in available models.. how can I define LODDistance?

 

I don't know why the ini file doesn't work. What you could do is copy the gmf model, and call it: modelnameLOD1.gmf.

The editor thinks it needs to use LOD1 although its the same model.

 

This is the ini convention for LOD:

 

LODDistance=”distance_LOD1 distance_LOD2”

LODDistance=”60 120”

Link to comment
Share on other sites

  • 1 month later...

I have a question. Are INI files going to be phased out completely?

 

If functionality from these files are being steadily dropped requiring a LUA script for every object, I'd rather get started sooner rather than later.

 

Having a global SetLODDistance override would be very handy for sniper scopes, TV cameras, that sort of thing.

6600 2.4G / GTX 460 280.26 / 4GB Windows 7

Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT

Tricubic Studios Ltd. ~ Combat Helo

Link to comment
Share on other sites

I think it should be LODDistance="60.0,120.0", because in LE 2.3 sbx format all value seperators have changed from space to comma also since LE 2.28.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

well you have the concept of "programmers art" why not "Artists Code" ? surely a modicum of ability with lua is needed?

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

Well it's good to know about the INI files. One way or another.

 

So from "LODDistance=120" to

 

require("scripts/class")
local class=CreateClass(...)

function class:CreateObject(model)
  model:SetLODDistance(120,0)
end

 

Would be handy of the LE Editor could add a LUA file to entities that don't have one. And the option to stamp in some default values like mass, collision type, LOD. Then again, seems a bit lazy.

 

Cheers and thank you.

6600 2.4G / GTX 460 280.26 / 4GB Windows 7

Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT

Tricubic Studios Ltd. ~ Combat Helo

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...