Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Multiple LOD Models in a single W3D
Multiple LOD Models in a single W3D [message #98490] Wed, 30 June 2004 23:21 Go to next message
SomeRhino is currently offline  SomeRhino
Messages: 260
Registered: February 2003
Karma: 0
Recruit
I'm not sure if anyone has stumbled across this, but I did the other day while trying to figure out how to use the method Westwood used on their vehicles to make LOD models.

Basically, the hierarchy goes like this:

Origin.00
-MeshA.00
-MeshB.00

Origin.01
-MeshA.01
-MeshB.01

Origin.02
-MeshA.02
-MeshB.02

Where the higher the .xx number, the lower LOD the model(s) should have. You can have up to 100 different models I think by using this method. Don't set the Origin bones to export anything (niether transform nor geometry). Don't set the meshes to export transform.

The next part took me a bit of hunting to find.

Right click on each of the origin bones, and go to Properties, and hit the User Defined tab (that thing you thought was just for you to leave yourself notes).

Enter "MaxScreenSize=X", where X is a float value. This is the maximum screen area that the LOD can take up before switching to the higher LOD, so generally it will be less than 1 (since 1 would mean it is taking up the entire screen). Origin.00 shouldn't have any parameters here.

This allows for multiple LODs to be put into the same file. I have no idea if anyone knew anything about this, so I decided to share it after bigwig said that I should.

Nothing groundbreaking really, just info for anyone who can benefit.


[Updated on: Wed, 30 June 2004 23:24]

Report message to a moderator

Multiple LOD Models in a single W3D [message #98495] Wed, 30 June 2004 23:28 Go to previous messageGo to next message
Blazer is currently offline  Blazer
Messages: 3322
Registered: February 2003
Location: Phoenix, AZ
Karma: 0
General (3 Stars)
Administrator/General

Any chance you can sum up the effect/benefit/reason of multiple LOD in laymans terms? Smile
Multiple LOD Models in a single W3D [message #98496] Wed, 30 June 2004 23:36 Go to previous messageGo to next message
Sir Kane
Messages: 1701
Registered: March 2003
Location: Angerville
Karma: 0
General (1 Star)
It dynamically switches the detail of the models, which is supposed to increase the performance.

Proud N9500 and proud N6270 user. Creator of the IEE libraries (original bhs.dll) and the RB series software.
http://n00bstories.com/image.fetch.php?id=1189992501http://www.n00bstories.com/image.fetch.php?id=1257492907
Multiple LOD Models in a single W3D [message #98498] Wed, 30 June 2004 23:37 Go to previous messageGo to next message
SomeRhino is currently offline  SomeRhino
Messages: 260
Registered: February 2003
Karma: 0
Recruit
LOD stands for "Level of Detail." As you get further away from some objects in-game (either vehicles or infantry,) less-detailed models will be drawn since it's unnecessary to draw all the details when you are far away, increasing performance.

Previously it was known how to use LODs while each model was stored in a different file, but it was limited to no more or less than 4 LOD models, plus a 5th W3D which calles them up. Now you can get them all in 1 file and it's much easier and not set at 4. LODs work with tile objects (like trees) as well. This sort of goes hand-in-hand with the tests I was doing earlier, I was able to get an increase in performance on that Renegade 2 look-alike level by making all the trees into LOD models.

Like I said, nothing that amazing.

BTW, thanks for removing my original reply.


Multiple LOD Models in a single W3D [message #98500] Wed, 30 June 2004 23:43 Go to previous messageGo to next message
Sir Kane
Messages: 1701
Registered: March 2003
Location: Angerville
Karma: 0
General (1 Star)
Doesn't the Mammoth Tank model from the vehicle how to have the LOD in one file?

Proud N9500 and proud N6270 user. Creator of the IEE libraries (original bhs.dll) and the RB series software.
http://n00bstories.com/image.fetch.php?id=1189992501http://www.n00bstories.com/image.fetch.php?id=1257492907
Multiple LOD Models in a single W3D [message #98501] Wed, 30 June 2004 23:46 Go to previous message
SomeRhino is currently offline  SomeRhino
Messages: 260
Registered: February 2003
Karma: 0
Recruit
Yes. That's where I finally found that value. Whenever I exported my models with the origin bones from that file, it worked fine, but I couldn't get it to work with any bones I created.

Previous Topic: Renegade Alert Updates: Sounds, FlameThrower, NavalTransport
Next Topic: Dm/Stunt Map screenshots.
Goto Forum:
  


Current Time: Fri Nov 29 00:38:52 MST 2024

Total time taken to generate the page: 0.01472 seconds