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

Create an Octahedron (Flip Pyramid Upside Down) OpenTK

I am using OpenTK to make an octahedron. I have a square pyramid created and need to translate another beneath the top one and flip it upside down to create the octahedron. How do I flip the second pyramid upside down? Here is my code so…
Gabriel_W
  • 1,645
  • 5
  • 16
  • 26
-1
votes
2 answers

OpenGL - Render face of cube map to a quad

I need to render a particular face of a cube map to a quad for debugging purposes. From this similar question I gather you use three dimensional texture co-ordinates, but I'll need a little information to get over this hurdle. All I'm getting is…
livin_amuk
  • 1,285
  • 12
  • 26
-1
votes
1 answer

OpenTK - VBO - Application crash

I am learning OpenGL (using OpenTK). Today I want to use VBO to render my quads effectively. When I call render it crash ================================================================= Got a SIGSEGV while executing native code. This usually…
-1
votes
1 answer

How to render a NURBS surface mesh from calculated points?

I am using OpenTK (a c# wrapper of OpenGL) to draw a NURBS surface calculated with Cox-deBoor algorithm. The algorithm gives individual points on the surface. How can I render the whole surface from these points? In addition, how can I draw a…
Berlyne
  • 1
  • 2
-1
votes
1 answer

Model View Projection causes distortion

I have a cube in my world that i am translating by 0.0f, 0.01f, 0.0f every frame however this causes the cube to become very distorted I am 99% sure that this is an issue with MVP, being how I set it up, multiply the variables or so other factor…
Tom Gothorp
  • 93
  • 1
  • 8
-1
votes
1 answer

SHA256 hashing with C# and openTK

As you can probably guess im looking to create a bitcoin miner but the cryptography really isnt my thing and i've been unable to find much help through google, so how does hashing with standart openCL actually work? (Yes, i know its a broad question…
-1
votes
1 answer

Gizmo OpenTK (or OpenGL)

Is there anybody here who wrote the code to move objects using Gizmo? I mean to translate or rotate, cube for example by mouse? For example like in 3ds max or blender editors. I can't understand how to use 3d mouse position for this.
Akmal
  • 23
  • 3
-1
votes
1 answer

OpenTK drawing to FBO, coloring not as expected

I have a utility class for Framebuffer objects which i use to generate FBO's, bind them, render to them, and render them to screen as 2d textures. When using this class, i can successfully make fbo textures, render to them, and render them to…
Timothy Groote
  • 8,614
  • 26
  • 52
-1
votes
1 answer

OpenGL error thrown by fragment shader

I'm writing a 2D game in OpenTK, using OpenGL 4.4. Using colour and texture UV coordinates and a matrix I can succesfully draw textures between vertices with vertex shader: public const string vertexShaderDefaultSrc = @" …
Mr Pie
  • 327
  • 2
  • 11
-1
votes
1 answer

Textures in OpenTK appear black when using a shader

I started working on a simple game engine and I'm trying to implement some 3D objects. I have the basics, a simple test shader, but for some reason, the texture always appears as black. I rewrote everything once already, the problem is still there.…
Chronium
  • 906
  • 9
  • 12
-1
votes
1 answer

GameWindow crash at launch

I got a problem using GameWindow class of opentk, later I was able to launch a simple gamewindow, but now, don't know why, I can't anymore. Here is what the console outputs: Unhandled exception : System.TypeInitializationException: An exception was…
-1
votes
1 answer

Strange random values in OpenTK.Matrix4

I am trying to build a modelview matrix for a project using OpenTK's Matrix4 class. I am trying to build a translation matrix, but the matrix keeps setting random values. Here is a screenshot of the console: And here is the code im using to build…
B0nde
  • 143
  • 1
  • 10
-1
votes
1 answer

Visualizing output from N-body code using OpenTK and C#

I wrote an N-body code in C# which outputs an array with x,y,z positions of N objects. I want to render it on a screen frame by frame using OpenTK. Basically, I need to figure out how to create an array of vertices using VBO-s, show it on a screen,…
fbartolic
  • 403
  • 1
  • 5
  • 18
-1
votes
1 answer

Why does this call of glEnableVertexPointer and glVertexPointer cause InvalidValue?

I am creating a game engine that includes basic game needs. Using glslDevil, it turns out my bind VBO method throws an InvalidValue error. A call of glVertexPointer and a call of glEnableVertexPointer cause the issue. The vertex…
user3693036
  • 15
  • 1
  • 4
-1
votes
1 answer

Depth testing issues in OpenTK/OpenGL

I'm struggling to get my depth testing working correctly in an app. Depth seems to be based entirely on draw order, as seen here: https://www.youtube.com/watch?v=YErS_loJW7w&feature=youtu.be You can see in the video, the point cloud of Suzanne is…
Chris
  • 165
  • 1
  • 13
1 2 3
64
65