Giter VIP home page Giter VIP logo

refract's People

Contributors

jbienz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

refract's Issues

Focus on Window

Is your feature request related to a problem? Please describe.
Feature request

Describe the solution you'd like
It'd be great if Refract should be targeted at a specific window rather than the entire desktop. This would make it easier to do things like depth editing in PhotoShop.

Describe alternatives you've considered
Currently Photoshop has to be maximized.

Additional context
N/A

ARM64 builds

It would be awesome if future builds of Refract could be provided in both x64 and ARM64 variants.

Depth looks fine on computer but displays incorrectly on looking glass portrait

Describe the bug

my depth mask looks fine on the computer:

image

but appears very jagged and bandy on the looking glass portrait:

image

the RGB image is in there somewhere, but the depth image is getting garbled somehow

To Reproduce
Steps to reproduce the behavior:

  1. install reshade and reglass with recommended settings for portal 2
  2. launch refract

nvidia overlay is off and this is the only other monitor connected besides the portrait

Expected behavior
the image doesn't look all weird

Desktop (please complete the following information):

  • OS: Windows 11

Adding Transparency to shader

Would it be possible to get transparency to work by adjusting the Refract displacement shader? I tried to change the RenderType to Transparent in the Tags but it renders black in the Looking Glass.

Support Wide Displays

Is your feature request related to a problem? Please describe.
Currently Refract only works with Looking Glass Portrait and only displays the center 1/3 of the game.

Describe the solution you'd like
Support for wide screen LKG displays and full-frame games.

Describe alternatives you've considered
N/A

Additional context

I can think of 3 potential ways of doing this:

  1. Switch to rendering horizontal. The problem with this is that you have to get the game to render in half the vertical resolution but at the 2:1 compress ratio. This has to be done in Reglass (Reshade) before you can try to stretch it back out in Refrat to the full height and proper aspect ratio. You would need to add another shader pass in Reglass and expose an option for it in the shader settings. In Refract, you'd have to change the parameters on the UDD (desktop capture) object to capture the vertical half rather than the horizontal half. And you'd have to add an extra pass in the Refract displacement shader to stretch the result.

  2. Interlace. Rather than splitting the screen half and half, you would do every-other line. This might require less effort because you wouldn't have to squish. You'd only have to stretch. But the process would be similar to the above.

  3. The right way to do it would be to write a Reshade native plugin. These are new and are in Reshade 5. They're written in C++. The plugin would theoretically have access to the full color frame and the full depth buffer frame without screen splitting at all. The C++ plugin would then have to send this data to Refract over ICP (inter-process communication). Refract would need to be modified to receive frames over ICP rather than screen scraping. This is no small undertaking, but it's really the right way to do it if possible. It would get around the desktop duplication limitations some users are facing, and it would allow Refract to work on a much wider range of displays.

I haven't started this work because I don't have a wide screen display to test it on. If any users are thinking about implementing this, I highly recommend trying to implement it this way.

Desktop Duplication is Not Supported

Describe the bug
When Refract is run a message is displayed on the Portrait stating that Desktop Duplication is not supported.

Expected behavior
Refract would run.

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 1.0

Additional context
Name your hardware device here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.