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
5
votes
1 answer

How to do picking in modern OpenGL without gluUnProject?

How do you convert screen coordinates to world coordinates in modern OpenGL without the use of gluUnProject?
manabreak
  • 5,415
  • 7
  • 39
  • 96
5
votes
2 answers

Window forms red x, but I can't find error notification

I am using the OpenTK GLControl (a .Net OpenGL winforms control) to paint some things using opengl. The problem I am now facing is I am getting a big red cross or x on the windows form where the control lies, and its completely impossible to debug…
Dimension
  • 665
  • 1
  • 8
  • 9
5
votes
1 answer

Stencil buffer depth in OpenTK

I`m using OpenTK for OpenGL and C#. I need to use stencil buffer and currently wondering how do I set StencilBuffer depth. As I know earlier was TaoFramework and it`s control had property where this depth could be seted. But now in openGlControl…
steavy
  • 1,483
  • 6
  • 19
  • 42
5
votes
2 answers

OpenTK's Vector2.Length is twice as fast as Vector2.LengthFast

The OpenTK libraries, and with them, MonoTouch and MonoDroid, contain the method LengthFast, which should calculate an approximation of a vector's length without the use of Math.Sqrt (which seems to be known as slow). LengthFast uses…
Jonas Sourlier
  • 13,684
  • 16
  • 77
  • 148
5
votes
2 answers

How do I get the underlying Window in MonoGame?

I'm converting Gleed2D from XNA to MonoGame. Gleed2D is a Windows Form application that instantiates an XnaGame. The window created by the Game is then hidden and the DeviceWindowHandle is set to that of a Canvas on the main form. I know that's a…
Steve Dunn
  • 21,044
  • 11
  • 62
  • 87
4
votes
1 answer

Unable to find an entry point in DLL 'opengl32.dll' in screensaver

I have very odd problem with my C# OpenTK screensaver application. When I compile the program and run it before changing the extension, as EXE file, it works properly. But when I change the extension to SCR and run it, it crashes with a…
mi_k
  • 53
  • 1
  • 5
4
votes
3 answers

Which library in Visual C# for graphics programming, Tao or OpenTK?

I heard that newest OpenGL does not have glBegin anymore. In other words things change a lot, and I was wondering which library should I use for OpenGL programming in c#? I will do graphics programming for a CAD modeling application. Thank you
pokoko222
  • 41
  • 1
  • 2
4
votes
1 answer

OpenTK: Why is GraphicsMode not available?

I just started to learn OpenTK and stumbled upon a problem when going through this tutorial. This is what I tried: using System; using OpenTK; using OpenTK.Graphics; using OpenTK.Windowing.Desktop; using…
4
votes
2 answers

API agnostic Vector3, Matrix, etc.?

I'm trying to keep my game logic API-agnostic. In doing so, I don't want to use Unity3D's Vector3 struct, or XNA's, etc. What's the best way to do this? It seems like it would be awfully cast-heavy if I rolled my own Vector3 struct and just wrote…
George R
  • 3,784
  • 3
  • 34
  • 38
4
votes
1 answer

Construct Assimp bone hierarchy, beginning at the root

I am using Assimp.net to import animated .dae files into my OpenTK engine and struggling to establish a usable hierarchal bone structure. In the tutorial I am following, the root bone, or "joint", contains a list of it's children joints, and those a…
livin_amuk
  • 1,285
  • 12
  • 26
4
votes
1 answer

How to clip circular region in OpenTK (mini-map!)

My game is in C# using OpenTK, which is a wrapper around OpenGL. I'm rendering my mini-map as shown below. The problem is that objects aren't clipped at the edge, so they bleed over. I could render a thicker border to hide it, but that's not ideal…
Andrew Lundgren
  • 1,134
  • 1
  • 12
  • 18
4
votes
1 answer

OpenTK multiple GLControl with a single Context

Im working on a program which should have multiple views of a model. I would like to use multipleGLControls` for that. Is there any possibility to create multiple GLControl which use the same GraphicsContext? I successfully created this on a…
bitQUAKE
  • 473
  • 1
  • 8
  • 19
4
votes
1 answer

difference between openTK and cloo?

what is the difference between using openTk and cloo for developing openCL applications?
Nishanth
  • 6,932
  • 5
  • 26
  • 38
4
votes
0 answers

Android TextureView only draws when OnSurfaceTextureUpdated is called

I'm using a TextureView for OpenGL rendering a view inside a ScrollView. (Please note that I'm using Xamarin.Android but the same concept should apply to native Android development.) I have a derived class CustomView which inherits from TextureView…
safwanc
  • 3,351
  • 2
  • 15
  • 20
4
votes
2 answers

OpenGL what does zNear zFar mean?

I understand that zNear, zFar mark the clipping bounds of a scene. But OpenTK restricts the values to be greater than zero. Does this mean all my objects should be drawn on positive Z axis so that its not clipped ?
Dinesh
  • 115
  • 2
  • 7
1 2
3
64 65