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.

MAKE_NEEDLE in C gauge distorting texture!

Featured Replies

I am adding a compass card to a VOR gauge. I have implemented the card as a needle so I don't have to mess with masks etc. However, it seems to be distorting the texture as it rotates. At 0 rotation it looks great, but as it turns it sort of flattens out the bottom edge of the circular texture and squeezes it vertically. It's quite bizarre looking.There are no limitations for needle texture sizes are there? Even so, it should be under that limit.Has anyone ever experienced this?

Hey Ryan,Check your non-linearity table. If the coordinates are too close to the center of the rotation, and in your caseit sounds like it is actually smaller in some points than the card radius, it will behave as described above. Keep in mind these coordinates don't have to lie on the perimeter of where you want the needle (card) to point to. Meaning you can (and should) place the coordinate points on a region outside of the card radius.

Thanks,There's no non-linearity table, but I got it fixed. I resized the card so the x and y dimensions are the same. Seemed to do the trick!Thanks again,Ryan

A MAKE_NEEDLE bitmap can never be outside the panel bitmap, so if the bitmap is rotated say 45

The only problem with MAKE_SPRITES instead of MAKE_NEEDLES is that1) they are less anti aliased when rotated2) they take as much as twice the CPU cycles to rotate them because the mask is also rotated, while the needle mask is automatically derived from the rotated needle bitmap.When you have many of them, it counts on the FS FPS.Hope this helps!

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.