Behaviors Billboard in multiple views

I use TCastleImageTransform with Billboard Behaviors for the viewers of the rally race.
Billboard in local multiplayer mode (2 viewports) seems to be not correct.
The image in viewport 1 turns to the direction of viewport 2 and vice versa.

Billboard in singleplayer mode is correct.

grafik

The entire scene of the viewers is a castle-transform. In the editor on viewport 1 everything looks OK.
@michalis I use the CGE-Logo in this game as advertising banner. Please let me know if this is OK for you. Otherwise I can remove it.

Thank you – confirmed, I can reproduce the issue (using examples/viewport_and_scenes/multiple_viewports/ with an additional TCastleImageTransform + TCastleBillboard). I’ll try to fix it this weekend.

It’s absolutely OK and much appreciated :slight_smile: I think I should clarify somewhere the allowed logo usage of CGE, but informally: any usage of CGE logo is OK as long as it doesn’t mislead the users (e.g. doesn’t mislead that it is a logo of something else than “Castle Game Engine”). Of course the usage you present here is fully OK.

Thank you!

1 Like

Fixed, thank you for reporting!

Tests:

  • I confirmed the problem is fixed on my testcase ( examples/viewport_and_scenes/multiple_viewports/ with an additional TCastleImageTransform + TCastleBillboard)
  • It also fixed an editor issue: Looking at a light “gizmo” through the camera preview was previously rendered wrong. It was the same issue – in editor we have 2 viewports in this case, and the light gizmo is using TCastleBillboard. Before the fix, the billboard was adjusted for the other viewport, not the one actually rendering.
  • It also fixed another editor issue: We had blinking when looking at examples/terrain main view in design-mode. That’s because water (mirror) rendering was done each frame, and light gizmo billboard was adjusted one step too late. This was again exactly the same problem, just observed in different context.

So, this was an important fix :slight_smile: I’m happy it’s done.

The fix is already in GitHub “master” branch. As usual, our downloads will soon have a fixed version too – you can observe this page, when it will no longer show the commit “Fix billboards updating: it was done 1 step too late…” then this commit is part of the release.

1 Like