Questions tagged [opentk]

The Open Toolkit is an advanced, low-level C# library that wraps OpenGL, OpenCL and OpenAL. It is suitable for games, scientific applications and any other project that requires 3d graphics, audio or compute functionality.

The opentk toolkit wraps OpenGL, OpenCL, OpenAL to C#. This is done using types aiming to make development less error-prone.

The project ships with additional code for instance to render OpenGL graphics on a System.Windows.Forms.Form dialog or control together with loaders for various format.

The project is licensed under the MIT/X11 license.

References

Tutorials and examples:

972 questions
2
votes
1 answer

How to project top and bottom area of OpenGL control (cylindrical projection)?

Using below code I can display an image in openGL control. Which is in rectangular shape. Now I want to project top and bottom area of this rectangular to a cylindrical shape.I mean need to perform a rectangular to cylidrical projection on openGL.…
user2431727
  • 877
  • 2
  • 15
  • 46
2
votes
1 answer

Loaded texture using ImageSharp displays white (opentk)

After loading the image with the help of ImageSharp and then loading it into vram it renders just a white quad. I basicly have no clue what i could have done wrong, this is the first time working with opentk crossplatform not beeing abel to use…
2gJava
  • 59
  • 6
2
votes
0 answers

OpenTK - How to debug an instant crash?

I'm using OpenTK in my C# application to draw on the screen with OpenGL. I've had it working but now I've introduced a bug by refactoring the code in a way that still serves the exact same information the the RenderFrame function. The whole program…
user3670011
  • 194
  • 11
2
votes
1 answer

App using 3D & 3rd-party plugins - forward compatible OpenGL or Direct3D?

I'm writing an app that's going to use 3rd-party created plugins to render all kinds of 3D trickery. My main application is to create the context / render-object and a rendertarget/framebufferobject. The 3rd-party plugins are going to be rendering…
Pygmy
  • 1,268
  • 17
  • 33
2
votes
1 answer

OpenTK draw transparent Circle

I want to draw a simple Circle with OpenGL in C#, but I only get this: I tried the blend function, but it hasn't worked. My code: public static void DrawCircle(float x, float y, float radius, Color4 c) { GL.Enable(EnableCap.Blend); …
Nerix
  • 53
  • 1
  • 5
2
votes
1 answer

Opentok: OTCameraCaptureResolutionHigh equivalent variable in swift

I need to change the video quality of my publisher. I face a conversion problem from Objective C to Swift 3.0. Here is my Objective C code: OTPublisherSettings *settings = [[OTPublisherSettings alloc] init]; settings.name = @"Bob's…
Vinod
  • 675
  • 3
  • 7
  • 25
2
votes
1 answer

Current frustum culling effects results in flickering objects in openTk

I am having some issues with the way in which I do my frustum culling. The current way does resolve in culling but there is a really odd effect. When I get too close to my main parent object, I am using a scenegraph to render everything, the objects…
Jeromer
  • 49
  • 8
2
votes
0 answers

System.DllNotFoundException in OpenTK.dll

So I'm very new to OpenGl and 3D programming in general, i'm trying to setup a basic project with OpenTK, it was working fine at the sart but now i get this errors when the program calls the constructor of the GameWindow class. public…
Morphisor
  • 21
  • 3
2
votes
3 answers

GL Project doesn't work properly

I'm using code which tries to work like Glu.Project() since OpenTK doesn't support Glu. Vector4 pos = new Vector4(s.Position.X, 0.0f, s.Position.Y, 1.0f); Matrix4 mov = new Matrix4(); Matrix4 prj = new Matrix4(); …
Cobra_Fast
  • 15,671
  • 8
  • 57
  • 102
2
votes
1 answer

OpenGL: glDrawElements gives unhandled exception: System.AccessViolationException

Using OpenTK with VB.Net. My render method: ' clear the screen GL.ClearColor(Color4.Purple) GL.Clear(ClearBufferMask.ColorBufferBit Or ClearBufferMask.DepthBufferBit) ' activate shader program and set uniforms shaderProgram.Use() …
Tushar Pandey
  • 59
  • 1
  • 6
2
votes
2 answers

How can I set unlimited FPS in OpenTK?

using (OpenTK.GameWindow game = new OpenTK.GameWindow()) { double fps = 60; game.Run(fps, fps); } With this I am able to set the fps to 60 or lower. But I want to have unlimited fps. How can I do this?
Jan Haha
  • 67
  • 1
  • 8
2
votes
0 answers

Unproject MouseCoords ( OpenGL / OpenTK ).

Hey I am trying to convert 2d mouse coords to a 3d direction vector to world space. The problem is that the direction vector of the ray is only fully working if the camera is not turning in Y-axis. For example: Camera looking down. Y is -0.999 thats…
Eddy Bella
  • 31
  • 6
2
votes
2 answers

Creating a Graphic Context using OpenTK returns a 1.1 OpenGL context since nvidia's 375.63 driver update

Problem Description I have been using OpenTK to create OpenGL contexts on various Windows configurations (7, 8, 8.1, 10) and hardware (various AMD, nvidia GPUs and intel's graphics chipsets) without problem for more than 2 years. But since nvidia's…
Wasabi
  • 456
  • 1
  • 4
  • 12
2
votes
1 answer

Color data not used in OpenGL "Hello world"

As usual when I try to get my fingers wet with modern OpenGL, using one of the clever demos I can find on some blogs, something goes wrong. Expected behavior: Draw a triangle and the colors should be interpolated between the 3 vertices. Found…
BitTickler
  • 10,905
  • 5
  • 32
  • 53
2
votes
2 answers

Carbon ReceiveNextEvent and secondary threads

Imagine a cross-platform library that has to create its own windows without relying on WinForms/GTK#/WPF/MonoMac/etc (this is OpenTK in case anyone is interested). Here is the deal: Windows and X11-capable Unices support (or can work with) multiple…
The Fiddler
  • 2,726
  • 22
  • 28