Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitlab.com/donomii/sceneCamera

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab.com/donomii/sceneCamera

  • v0.0.0-20210915211205-bba77a1dffbd
  • Source
  • Go
  • Socket score

Version published
Created
Source

SceneCamera

Easy 3D camera management

Description

SceneCamera manages the camera view for 3D applications, especially for Android and GLES applications. It provides the V in the GL trinity MVP.

GLES 2.0 removes all the convenience functions for working with 3D cameras, this library puts them back. It also supports headtracking (only tested on Android). You can send your Android events directly to the camera (with ProcessEvent), and SceneCam will handle all the details of maintaining a the correct View Matrix.

Typical use:

app.Main(func(a app.App) {
    for e := range a.Events() {
        sensor.Notify(a)
        sc := sceneCamera.New()
        sc.ProcessEvent(e)
        view := sc.ViewMatrix()
        glctx.UniformMatrix4fv(uniform_view, view[0:16])

The camera starts at position 0,0,0.5, looking at 0,0,0 (the origin). I.e. it is staring directly down the Z axis, in the negative direction

FAQs

Package last updated on 15 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc