loopbio / FreemooVR

A standalone, hackable, versatile, composable, perspective-correct VR for freely moving animals engine
Other
1 stars 1 forks source link

move_world in StimulusOSG2Controller #8

Open chiyu1203 opened 3 months ago

chiyu1203 commented 3 months ago

Hi everyone, I want to get tethered insects see a 360 degree sphere screen with FreemooVR. However, I noticed that move_world method is not defined in StimulusOSG2Controller class

    def move_world(self, x=0, y=0, z=0, scale=1, orientation_x=0, orientation_y=0, orientation_z=0):   
        raise NotImplementedError

Hence I can not rotate the world when animals stay at the same location rotating along vertical axis. As there are newer functions in StimulusOSG2Controller, I do not want to move back to StimulusOSGController, is there any way to work around this issue? Many thanks in advance.

maxlklaxl commented 3 months ago

sorry, this is the latest version

maybe this helps: https://github.com/loopbio/FreemooVR/blob/master/sample_code/locust_replay/demo_osg2.py#L33