coloriz / pannellum-dotnet

Pannellum library written in C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pannellum .NET

Pannellum Library written in C# (only part of).

uses WPF as a viewer.

Dependencies

  • OpenTK (>= 3.0.0-pre)
  • OpenTK.GLControl (>= 3.0.0-pre)
  • OpenCvSharp3 (for reading video frame)

Projects

Pannellum

Panorama rendering library written in C#, it requires OpenTK to make a GL surface in WPF controls. The original project is https://github.com/mpetroff/pannellum.

📃 Documentation

class EquirecToRect
public float Pitch { get; set; }

Pitch to render at (in radians)

public float Yaw { get; set; }

Yaw to render at (in radians)

public float Roll { get; set; }

Camera Roll (in radians)

public EquirectToRect(GLControl viewer, System.Drawing.Size size, float haov, float vaov, float voffset, float hfov)

Initialize renderer.

  • viewer : GLControl object
  • size : Size of the viewer
  • haov : Horizontal angle of view (in radians)
  • vaov : Vertical angle of view (in radians)
  • voffset : Vertial offset (in radians)
  • hfov : Horizontal field of view (in radians) (recommend 100 * Math.PI / 180)
public void Render(OpenCvSharp.Mat frame)

Render the scene based on properties (Pitch, Yaw, Roll, etc...). All properties are re-calculated to ensure if they are in valid ranges. This method also makes the viewer current context and performs swapping buffers.

  • frame : the frame to be rendered

Pannellum_example

Controls

  • ⬅➡ : Yaw
  • ⬆⬇ : Pitch
  • Page Up, Page Down : Roll

Demo

pannellum_demo

FoveInteractiveView

Render the scene based on the pose information of a Fove HMD.

Demo

TBD.

About

Pannellum library written in C#


Languages

Language:C# 100.0%