Bugdom2 icon indicating copy to clipboard operation
Bugdom2 copied to clipboard

Increase render distsnce?

Open foote-darrell opened this issue 2 years ago • 4 comments

The render distance seems to be lower than I remember. Particularly on Level 8: The Garbage Can and Level 10: The Park. image Screenshot from 2023-11-02 19-20-07 Now there were tutorials for how to increase the render distance in Bugdom, Otto Matic, and Nanosaur. These didn't seem to work in Bugdom 2 however. This bloke was able to do it.

foote-darrell avatar Nov 03 '23 02:11 foote-darrell

Just took a look at this and works similar to Otto Matic but some levels use ad-hoc supertile active range, yon and fog, so you need to override those as well.

Change MAX_SUPERTILE_ACTIVE_RANGE to 50, add mask = 2; here to override previous mask in switch case and add these lines here, again to override values in previous switch case.

gSuperTileActiveRange           = MAX_SUPERTILE_ACTIVE_RANGE;
viewDef.styles.useFog           = true;
viewDef.view.clearColor.r       = 1;
viewDef.view.clearColor.g       = 1;
viewDef.view.clearColor.b       = 1;
viewDef.view.clearBackBuffer    = true;
viewDef.camera.fov              = GAME_FOV;
viewDef.camera.yon              = (gSuperTileActiveRange * SUPERTILE_SIZE * gTerrainPolygonSize) * .95f;
viewDef.styles.fogStart         = viewDef.camera.yon * .7f;
viewDef.styles.fogEnd           = viewDef.camera.yon * 1.0f;
gDrawLensFlare = true;

level_10

By the way, I had never noticed that level 10 terrain was not flat.

orazioedoardo avatar Nov 06 '23 20:11 orazioedoardo

Wow, that looks much better. Screenshot from 2023-11-12 14-25-45 Screenshot from 2023-11-12 14-59-46 The water slide levels still seem to be short-sighted. Is this controlled differently? Screenshot from 2023-11-12 14-25-03 Screenshot from 2023-11-12 14-24-50

foote-darrell avatar Nov 12 '23 23:11 foote-darrell

The water slide levels still seem to be short-sighted. Is this controlled differently?

Yeah, you need to add the same overrides in my code block after this if statement.

gutter

orazioedoardo avatar Nov 13 '23 09:11 orazioedoardo

Will this trigger additional AI actors earlier, as it did with Otto-Matic and Bugdom 1? Also, is there a pre-compiled build for it?

EliasHeydrich avatar Mar 03 '24 12:03 EliasHeydrich