Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

OpenSesame to unity

Hi, I am converting an existing experiment in OpenSesame I want to run using a set of VR glasses which run on Unity. I know Unity runs on C# but there are 3rd party addons to use Python with unity.

My question is twofold:

  1. is there a way to use OpenSesame through Unity?
  2. is there a way to get a pure python script of an OpenSesame experiment?




  • Hi @Jordan ,

    I'm assuming that you would like OpenSesame to control the flow of the experiment, and then present stimuli in a virtual environment controlled by Unity. Is that correct? That would be very sweet. I have never worked with Unity myself, though, so I don't know how difficult this is.

    is there a way to use OpenSesame through Unity?

    Let's take a step back first. What would you like to do, and how would you do that programmatically (leaving OpenSesame aside for a moment). For example, if you want to present stimuli, then how does that work in Unity? Can you use Python to dynamically present some shape in the virtual world? And if so what would the corresponding Python script look like?

    is there a way to get a pure python script of an OpenSesame experiment?

    No, experiments are not compiled to Python scripts.

    — Sebastiaan

  • edited February 2023

    Hey @sebastiaan , sorry for the delay in response.

    Essentially my lab is looking for ways to use OpenSesame with a VR headset that has the ability to track eye-movement (which is really important to us as you can probably understand). Unfortunately the only one we were able to find is based on C#.

    Now we are talking with them about maybe being able to just circumvent the whole move to unity with the ability to basically use the screens in the system as basic pc screen onto which we will project our experiments from something like (hopefully actually) OpenSesame.

    If we have to work through the Unity workframe I do know there is something called the Out-of-Process API which could be used to integrate third party packages (, but admittedly it's hard for me to completely wrap my head around it.

    Any help or light you can shed on this matter would be extremely helpful.

    Thank you again!


    (edit: added the last 3 sentences)

  • Hi @Jordan ,

    It sounds like what you want to do is well within the realm of possibility. But it also sounds like it will take technical know-how and an understanding of the various technologies. So I would make sure that there is someone in the team who has this!

    As far as I can tell there are three options, each with their own advantages and disadvantages:

    • Easy but limited. It sounds like OpenSesame can simply present stimuli on the headset as though it's a regular monitor. When doing so, I assume that the left side of the screen goes to the left eye and the right to the right eye. It will then be up to you to create sets of stimuli that actually work together as 3D stimuli, for example by rendering the left and right viewpoints in software like Blender.
    • Somewhat tricky but more flexible. It would also be possible to have OpenSesame automatically generate such split-half displays by extending the Canvas capabilities in a new backend. This would offer more flexibility but also require a fair bit of programming.
    • Hard but ideal. Ideally, OpenSesame would communicate with Unity (probably indeed through the out-of-process API) and take control of the stimuli. This would be ideal in terms of VR, because it would mean that you can take full advantage of all the functionality that Unity offers.

    These suggestions are purely based on how I know that these things generally work, because I haven't worked with Unity myself yet. But I nevertheless hope this gives you some idea of the options.

    — Sebastiaan

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games