[SOLVED] CIGI slaves don't show roll


photo

Recommended Posts

Hello,

My CIGI slaves don't show rolls from the master. Heading and pitch is ok. I tested with the most simplistic code possible, based on the new cigi template from 2.7.1.

Did I miss something?

Link to post

Yes, I'm talking about camera roll. The AppSystemLogic/AppWorldLogic are exactly the one found in the new minimalistic cigi template.  Both slave and master are showing the same view ID (0). On the Host side, I tested with the Hemu emulator.

Link to post

Hi,

It depends on the type of the player. PlayerSpectator and PlayerPersecutor ignore roll. Try to change "Player player = new PlayerSpectator();" in your UnigineScript .cpp file (data/world_name.cpp) to "Player player = new PlayerDummy();".
It is a bad design of the Syncker. It doesn't change the player type on the slaves. So, if you have PlayerDummy on the Master, but you have PlayerSpectator on the Slave, it can lead to "roll"  problem.

Best regards,
Alexander

Link to post

Hi, this worked ! Thank you. I think at least a note should be added in the doc of the Syncker and a warning in the doc of the Player*.

 

 

Link to post
  • morbid changed the title to [SOLVED] CIGI slaves don't show roll

Hi Stephane,

Glad to inform you that Syncker's camera synchronization has improved. Now Slaves always use PlayerDummies and camera's hierarchy is taken into account. Improvements will be available in the upcoming  2.7.2! So, the "roll"  problem should be solved.

Thanks!

Link to post

Great news ! Thanks !

Link to post