Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

LOD: Calling a different shadow model

Featured Replies

What would be the "cleanest" way of doing this asm?I'm already using two LOD varitions of the visible model with IFSIZEV, now I want to add a even simpler shadow model. Tried adding a BGL_JUMP_32 in the model_shadow section, but this doesn't seem to work.

  • Commercial Member

Have you tried to use a Call command to call the normal model and then let the ShadowCall command refer to the simpeler model? I think that should work.

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Arno is right. If you search this forum with my name "Christian Stock", you should get a series of tutorials, and one of them explains exactly what you want to do. These tutorials should really be anchored or hosted on some site...Cheers, Christian

  • Author

Thanks, got it. I had a misplaced BGL_Return, it needed to be before the 'model_shadow' section.

  • Commercial Member

Hi Christian,I can host them on my site if you want. I will search for them this evening and add them on my site.EDIT: Had some time now, so I have added them already.

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Thanks, Arno.At least those tutorials aren't lost in the 'old forum messages' hell. I hope people will find them useful and there couldn't really be a better home for them then your site :)Cheers, Christian

  • Author

Agreed. In regards to the shadow model, here is the code i'm using now. One could probably cut the 2 shadowcalls, but it shows how to use varying shadowmodels as well. OBJECT_0_BEGIN label wordmodel_outside label BGLCODEVAR_BASE_OVERRIDE VAR_BASE_GLOBALIFIN1 model_shadow, SHADOW_FLAG, 0, 0IFSIZEV LOD_1, 3000, 1000LOD_0 label BGLCODEBGL_JUMP_32 LOD_0LLOD_1 label BGLCODEBGL_JUMP_32 LOD_1Lmodel_inside label BGLCODEBGL_RETURNmodel_shadow label BGLCODEIFSIZEV SHADOW_1, 3000, 1000SHADOW_0 label BGLCODEBGL_JUMP_32 LOD_SSHADOW_1 label BGLCODEBGL_JUMP_32 LOD_S;---includesLOD_0L label BGLCODEinclude model_complex_0.asmLOD_1L label BGLCODEinclude model_simple_0.asmLOD_S label BGLCODEinclude shadow_model_0.asm

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.