| Author: beffy (c++programmer) |
Okay, we will be talking about the details how to setup portals and LOD for a building like this one (done by Jens of the 3D-Diggers) in QuArK for use with the Torque Game Engine (TGE):

Here is a first look at the portal setup of the building's front:


On the outside of that "grid" are portals with the light setting to: "ambient_light (pass through)", on the inside there is another portal with the light set to "does not pass". Those "grids" really have to be detail brushes, otherwise you get weird lighting problems in Torque. And the light shining through from the outside really gives some nice effects. The detail brushes themselves are triangle shaped and go straight down from top to bottom.
The portals are only setting the borders/extends...

A general introduction to LOD can be found on Desmond Fletcher's great website.
Here is a first screenshot of the detail brushes at the front of the building:
Due to the large size of the building we raised the pixel count in the worldspawn settings.
Here are the general settings for LOD 0:
Brokers_0
Detail_number 0
min_pixels 250
The rest is set to default values.
And here are the settings for the next detail step,
LOD 1:
brokers_1
detail_number 1
min_pixels 150
changes to the previous (default) LOD are:
LOD 2
brokers_2
detail_number 2
min_pixels 60
Okay, here comes the final LOD, LOD 3:
brokers_3
detail_nummer 3
min_pixels 30
Now, to save/generate the DIFs, the following steps are required:
Here are the LOD details from Map2Dif for that particular building:
- file size: 4.85MB - takes 25 min to export from QuArk... - 4 LODs - 10 floors, 4 partly accessible, 1 fully accessible, accessible roof - size: width=2048we/ length=4096we/ height=3584we - (heli) landing place on the roof LOD1: STATISTICS - Total brushes: 3420 + structural: 1503 + detail: 1850 + portal: 67 - Number of zones: 58 - Number of surfaces: 14926 LOD2: STATISTICS - Total brushes: 1279 + structural: 667 + detail: 575 + portal: 37 - Number of zones: 15 - Number of surfaces: 5790 LOD3: STATISTICS - Total brushes: 731 + structural: 663 + detail: 61 + portal: 7 - Number of zones: 6 - Number of surfaces: 3048 LOD4: STATISTICS - Total brushes: 48 + structural: 48 + detail: 0 + portal: 0 - Number of zones: 1 - Number of surfaces: 269
| Commenter - add your comment below | ||
| ||