Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
drash's avatar
drash
Heroic Explorer
12 years ago

Distortion Scale

I don't have a Rift yet, but I needed to see what the final warped image looks like to get a better idea of whether text is too small or too big, among other things. I modified OVRCameraController to hardcode the actual distortion coefficients, verified that the code block that sets up the DistortionFitX/Y for the 7" display was being executed, and then ran my emptyish Unity app @ 1280x800 to see this:



A little surprised to see so much black space around the edges! I'm trying to reconcile this with what I've seen before in screenshots and most notably in the recent discussion about the "title safe area" of the screen. In those screenshots the warped images appear to cover a LOT more of the screen.

So, first I thought maybe turning on AA via QualitySettings would explain it. After testing with 2x, 4x, 8x multi-sampling AA, I did not see any difference here.

Then I decided to experiment with different hardcoded return values for the OVRDevice.DistortionScale() method. Out of the box this is returning 1.0 for me. I changed it to 1.3 and 1.6 to get the following results, respectively:





What I am looking for is information on why it's set up this way -- is it intentional and designed for best experience with dev kit #1 in Unity? Am i doing it wrong? And, if there a way to get more screen coverage using Unity (assuming this doesn't worsen the experience on the 7" screens), I would like to hear some ideas on how we can go about doing that.

Thanks :)

5 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    With the 1.0 scale, it might work with an offscreen FBO that is 1280x800.
    I have the Kit and I get a distortion scale of 1.7146. I use that to upscale the 1280x800 offscreen FBO (2188x1368) and that goes into the view. So your 1.6 scale image looks best.

    The default scale probably just uses 1.0 to indicate 'no scaling', whereas with glasses you will use it. To pre-develop for the Rift DevKit, just use 1.7146.
  • drash's avatar
    drash
    Heroic Explorer
    "rvangaal" wrote:
    With the 1.0 scale, it might work with an offscreen FBO that is 1280x800.
    I have the Kit and I get a distortion scale of 1.7146. I use that to upscale the 1280x800 offscreen FBO (2188x1368) and that goes into the view. So your 1.6 scale image looks best.

    The default scale probably just uses 1.0 to indicate 'no scaling', whereas with glasses you will use it. To pre-develop for the Rift DevKit, just use 1.7146.


    Wow that's great info. Thanks a ton!
  • When my Rift is connected, with the Unity plugin I actually get picture No. 2 which is not the recommended method like detailed in the SDK doc.
    I've also seen other Unity Rift videos that also render in the same way.

    So what's the deal with this? We cannot get the best quality distortion with unity?
  • @bolomaster: Can you please stop grave-digging into old threads and cross-posting the same question? You have 3 posts now if you want to create your own topic about your problem. A video might also help, I'm not 100% sure what you are asking about.