Elvas Tower: Tool to automatically adjust LODs based on object size - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Tool to automatically adjust LODs based on object size Rate Topic: -----

#16 User is offline   jtr1962 

  • Fireman
  • Group: Posts: Active Member
  • Posts: 185
  • Joined: 13-December 09
  • Gender:Male
  • Country:

Posted 27 June 2018 - 10:07 AM

View PostErickC, on 26 June 2018 - 02:26 PM, said:

There's some better information here.

Thanks! Very interesting reading. Unfortunately, optimizing vertices isn't something which can be done on the fly by OR. A tool which can do this to existing assets would be very useful.

Quote

It's not. What James is talking about is how the sim loads a model's pre-existing LODs, or how it overrides its maximum draw distance when the LOD distance is inappropriate, not how the sim would weld vertices on-the-fly to create LODs where none exist. Since you can't just weld vertices arbitrarily - or the end result will look like garbage - you'd have to use some kind of vertex clustering algorithm like MCX uses if you want to automate the process... and that can take several minutes per LOD depending on the vertex count.

Yes, I'm aware that OR can't create LODs on-the-fly where none exist. My thoughts here are simply overriding existing LODs and not drawing an object at all if it turns out the end result is smaller than x pixels. You could most likely use the bounding box for that without even looking at the LODs.

#17 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 15,651
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 27 June 2018 - 12:02 PM

Another approach could be adding LOD modifiers to the .sd file, something along the lines of replace 100m with 500m. Doesn't help when there are no LOD values set but it is certainly is a quick way to fix those situations where a poor choice was made.

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users