Giter VIP home page Giter VIP logo

unity-webcamtexture-webgl-sample's Introduction

Unity-WebCamTexture-WebGL-Sample

UnityのWebカメラ入力をWebGLビルドしたサンプルです。

Demo

動作確認用ページは以下。
https://kazuhito00.github.io/Unity-WebCamTexture-WebGL-Sample/WebGL-Build

Requirement

  • Unity 2020.1.6f1 or later

Memo

WebGLビルドをGithub Pagesにホストする際には無圧縮でビルドする
[Edit] -> [Project Setting...] -> [Player]

[HTML5]タブ

[Publishing Settings] -> [Compression Format]
[Disabled]に変更

映像が上下もしくは左右反転している場合

Plane>Transform>Scaleの値をマイナスにして反転させる。

映像が暗い場合

ProjectウィンドウのAssetフォルダ内で右クリックしてCreate>Materialを選択。
作成したマテリアルを選択し、Inspectorビュー>Shader>Unlit/Textureに変更。
Planeに適用する。

Author

高橋かずひと(https://twitter.com/KzhtTkhs)

License

Unity-WebCamTexture-WebGL-Sample is under Apache-2.0 License.

unity-webcamtexture-webgl-sample's People

Contributors

kazuhito00 avatar

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.