• Stars
    star
    132
  • Rank 272,954 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A framework to capture individual windows or the entire desktop in Unity

UnityWindowsCapture

A framework to capture individual windows or the entire desktop in Unity. This is a large part of the code I wrote to make Multiscreens.

Right now this uses GDI in an optimized way to capture things on windows 7+. As long as you are careful about your capturing rates you can run at 40-50 fps.

I also have code for using the Desktop Capture API (Windows 8+) in here which seems to be what BigScreen and Virtual Desktop use to capture windows in realtime while running at 90 fps. See DesktopCapture.cs and usage in ExampleUsage.cs

See ExampleUsage.cs in the scene "Test" for an example of how to use this. I'll add a more detailed tutorial later as well.

Edit: I added this code to this (all credit goes to Vitaly Chashin) which lets you simulate a web browser and capture its contents at a very fast rate, almost as fast as the Windows 8+ capture API. As far as I know this should work on windows 7+. You can have as many as you want at a time, it runs most websites great, and you can have windows with any resolution. Here is a screen shot of it running

Right now you can't interact with them you can only capture them and change their urls/refresh, but interacting with them is pretty easy to do (I already did it for my train simulator) so I'll add that in a day or two. I modified ExampleUsage.cs to show how to use this as well.

To use Chromium Capture you will need to go unzip UnityWindowsCapture\UnityProject\Assets\SimpleWebBrowser\PluginServer\x86\libcef.zip into that x86\ folder, and unzip UnityWindowsCapture\UnityProject\Assets\SimpleWebBrowser\PluginServer\x64\libcef.zip into that x64\ folder, simply because those dlls were too big so github got angry unless I compressed them

More Repositories

1

P2P.NET

Peer to peer networking in C# using WebRTC
C#
169
star
2

orbslam-windows

Easy build for ORB Slam 2 on Windows
C++
130
star
3

Dialogue-Datasets

A collection of plain text dialogue datasets
83
star
4

UnityVOIP

[Doesn't work now sorry] Real time peer to peer voice chat in Unity, using CSCore, NSpeex, and UnityP2P
C#
49
star
5

UnityP2P

Peer to peer networking in Unity using WebRTC and a free Heroku server for signaling. This repo has old broken code so I removed it, use https://github.com/Phylliida/P2P.NET now
42
star
6

UnityMatrix

A Matrix class for Unity C# that is much better than the Matrix4x4 class
C#
14
star
7

PyTorchWindowsBinary

Precompiled binaries for PyTorch with CUDA for Python 3.5 and 3.6 on Windows x64
12
star
8

slam-libs

Lots of windows binaries needed for building orb-slam, lsd-slam, etc. Built in x64 Release Mode
C++
11
star
9

SimpleUnityPhysics

A custom physics engine for Unity3D with joints that actually work. Designed for a genetic algorithm so, for example, 10 seconds of simulation can run in a few milliseconds on an average computer.
C#
11
star
10

MambaLens

Mamba support for transformer lens
Python
10
star
11

P2PDraw

Tiltbrush/Quill 3D drawing program that is open source and peer to peer
ASP
7
star
12

openmuscle

An open source implementation of the Hill-type muscle model without any dependencies.
C#
7
star
13

Blocks

Tinkering with making an open source minecraft clone in unity
C#
6
star
14

suitesparse-windows-binaries

Prebuilt binaries of SuiteSparse for Windows because they are gross to build
C
4
star
15

UnityP2P-Broken

UDP hole punching in Unity3D in C# for peer to peer networking, using PubNub as a free signaling server. This doesn't actually work probably don't use this
C#
4
star
16

mamba_interp

Various stuff in progress for mamba interpretability
Jupyter Notebook
4
star
17

WorldSeed

A framework for easy creation of living creatures, plants, and terrain.
C#
3
star
18

UnityWASAPI

An example project that allows your program to interact with any sound a user plays to their speakers
C#
3
star
19

twitterconversations

Python
3
star
20

charRNN

Recurrent neural networks written in tensorflow that are fast, easy to use, and can reproduce "The Unreasonable Effectiveness of Recurrent Neural Networks"
Python
3
star
21

GeoLib

A simple javascript library for making games like pokemon go
JavaScript
2
star
22

SoundMirroring

Unity C# Code that lets you mirror any audio device to any other audio device
C#
2
star
23

ttswrapper

neos tts local webserver
Python
1
star
24

mtgspritesheet

Makes a Sprite Sheet out of a MTG deck using Scryfall
Python
1
star
25

StableDiffusionLargeResPatch

Patch for stable diffusion that let you run it at large resolutions (up to 2992x2992 on 8GB VRAM)
Python
1
star
26

GeoCreatures

AR game where you gather items for raising creatures by walking around in the real world
1
star
27

UnityMirrorBox

A mirror box VR Application using the Oculus Touch for helping regain movement in your hands
C#
1
star
28

ResoniteEasyFunctionWrapperExampleMod

Example usage of ResoniteEasyFunctionWrapper
C#
1
star