/ Forums
Applications are now open to attend this year's Oculus Connect. Join us October 11–12 and be first in line for an inside look at what’s new and next for VR.

New To The Forum? Click Here To Read The How To Guide. -- Developers Click Here.

Rebuild Unity plugin?

kwaegelkwaegel Posts: 17
edited August 2013 in Unity
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.

Comments

  • cyberealitycybereality Posts: 21,760 Oculus Staff
    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
    PowerColor RX 480 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
  • geekmastergeekmaster Posts: 2,866
    Nexus 6
    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.
  • kwaegelkwaegel Posts: 17
    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.
  • cyberealitycybereality Posts: 21,760 Oculus Staff
    Moved to Unity forum.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i
    PowerColor RX 480 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
  • 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!
  • Can't you people just release the damn code? Saves us a lot of trouble. :D
Sign In or Register to comment.