Skip to main content
Participant
June 14, 2013

Rebuild Unity plugin?

I made some changes to the OculusSDK and want to used the updated version with Unity. Do I need to rebuild OculusPlugin.dll somehow? The current SDK solution only appears to build static libraries.
    This topic has been closed for replies.

    6 replies

    Inspiring
    June 15, 2013
    Yes. The Unity integration uses a DLL, and we have not released the source for this project. I guess you could create the DLL yourself, but you would need to make sure the interface was exactly the same if you want to just drop it in. Not sure what the best path would be here.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    June 15, 2013
    "cybereality" wrote:
    Yes. The Unity integration uses a DLL, and we have not released the source for this project. I guess you could create the DLL yourself, but you would need to make sure the interface was exactly the same if you want to just drop it in. Not sure what the best path would be here.

    Perhaps DLL injection, if you know which functionality to hijack.

    You could start here, using Linux "objdump":
    How to disassemble Win32 DLLs and EXEs under linux:
    http://john.fremlin.de/linux/howto/win32-disassembly.html

    Both cybereality and myself have experience writing Windows DLL injection code, but you need to do some of your own research before either of us can help answer your technical questions.
    This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
    kwaegelAuthor
    Participant
    June 17, 2013
    I'm not sure it's worth the time to do either right now, though I'd probably go the DLL reimplementation route if anything.

    I was planning to replace the magnetometer yaw compensation with Madgwick's AHRS filter, but it is not a critical task yet. I'm hoping Oculus eventually updates the SDK to use something similar, since the current magnetometer fusion code (requiring you to look forward) is not particularly useful for my purposes.

    [Edit] This thread should probably be moved to the Unity 4 Integration board.
    Inspiring
    June 20, 2013
    Moved to Unity forum.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Participant
    August 8, 2013
    Hey there - are there any plans to compile the plugin for the ARM processor (BlackBerry10?)
    It is currently only compiled for windows, mac and linux;

    Thanks!
    Participant
    August 10, 2013
    Can't you people just release the damn code? Saves us a lot of trouble. :D