Comments on: Billboards https:/code-sample/billboards/ Developer resources for the X-Plane flight simulator Wed, 26 Feb 2020 18:01:29 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Carlos Palacio https:/code-sample/billboards/#comment-35268 Wed, 26 Feb 2020 18:01:29 +0000 http://developer.x-plane.com/?post_type=code-sample&p=8063#comment-35268 In reply to Carlos Palacio.

To ilustrate the problem, these are the values for four draw callbacks in a row during a moment in which the billboard is not visible:
EyeX_x EyeX_y EyeX_z a
EyeY_x EyeY_y EyeY_z b
EyeZ_x EyeZ_y EyeZ_z c

0
1.000000 0.000000 0.000000 0.000000
0.000000 -1.000000 0.000000 0.000000
0.000000 0.000000 -1.000000 0.000000
—-
1
1.000000 0.000000 0.000000 0.000000
0.000000 -1.000000 0.000000 0.000000
0.000000 0.000000 -1.000000 0.000000
—-
2
0.748451 -0.547821 0.373782 0.000000
0.021908 0.583728 0.811654 0.000000
-0.662828 -0.599295 0.448893 0.000000
—-
3
-0.448395 -0.032651 -0.893239 0.000000
-0.011219 0.999459 -0.030902 0.000000
0.893765 -0.003835 -0.448519 0.000000
—-
4
-0.448395 -0.032651 -0.893239 0.000000
-0.011219 0.999459 -0.030902 0.000000
0.893765 -0.003835 -0.448519 0.000000
—-

]]>
By: Carlos Palacio https:/code-sample/billboards/#comment-35265 Wed, 26 Feb 2020 12:29:19 +0000 http://developer.x-plane.com/?post_type=code-sample&p=8063#comment-35265 Hi. I’m using this code and I have an issue. It works well in most situations BUT if I zoom out the billboards are not seen anymore. If I zoom in the billboards are visible again. I have checked the values that glGetFloatv(GL_MODELVIEW_MATRIX, m) outputs and they are quite “strange”. Every draw callback they are changing a lot, while the camera isn’t changing (for instance, from the 3D cockpit, with the aircraft on ground and view aligned to front).
Any help and/or explanation would be appreciated.
Regards.

]]>