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
2 answers

X Axis seems inverted in OpenTK

Edit: okay, I've written the code totally intuitive now and this is the result: https://i.stack.imgur.com/oMZ0k.jpg The Cube is at 0,0,0 As you can see, the camera position is negative on the z axis, suggesting that I'm viewing along the positive z…
pixartist
  • 1,137
  • 2
  • 18
  • 40
-1
votes
3 answers

C# OpenTK on OSX: GLSL Error, Version is not supported

I am running Mac OSX 10.9.2 natively and tried to run the following C# code: http://pastebin.com/b6GpxjuL I am using Xamarin Studio with OpenTK to compile the code, but as soon as I start it, I am getting these errors in the console: [0:] [0:]…
-1
votes
1 answer

3d development in C# possible options?

I need to build an interactive 3D graphics tool where users will be able to move meshes around and visualize them from different angles, zoom in, zoom out, i.e. the usual renderer interactivity. The choice of the language is C# .NET. The goal is to…
dr_rk
  • 4,395
  • 13
  • 48
  • 74
-1
votes
1 answer

How can write text in OPENGL window at c#

I want to know , how can i write texts in opengl window using C#? I use opentk tools for drawing, I would pleased for anyone to tell me what code I must use in C#.
reza gh
  • 41
  • 1
  • 6
-2
votes
0 answers

OpenTk Transformations Example

I'm running the Transformations example of the OpenTK and placed an alpha image instead the original one, and made some rotation from 0 to 90 degrees and back. I can see an annoying trail when I move fast (about 60fps): I've tried: VSync on, off,…
-2
votes
1 answer

OpenTK get uniform location always -1

I have been trying to learn OpenTk so that i can easily use OpenGl in c#. My problem now is that when i try to get the location of my two uniforms it returns -1 for both. Vertex Shader: #version 440 core uniform vec3 position void main(void) { …
Drok_
  • 149
  • 1
  • 7
-2
votes
1 answer

OpenTK: Sprites not Rendering?

I have been able to get the window to render, Im pretty sure my shader is working, and I can fetch the Image from my assets, however when I actually render the view I just get my blue background and no sprite shows up. Basic design is as…
-2
votes
1 answer

Geometry pass through shader not displaying anything, however just using the frag and vert shader does display what i am drawing

This is the geometry shader i made, which from my understanding should simply pass the 3 vertices on to the frag shader? When i remove the geom shader and pass the values straight to the frag shader it works and displays what i want. I am drawing…
galaban
  • 11
  • 4
-2
votes
1 answer

Voxel World Optimization—Optimization

This is not related to a Minecraft clone This question as been moved to CodeReview, as suggested. https://codereview.stackexchange.com/questions/62562/voxel-world-optimization#62562 I am currently writing a Turn-based Strategy Game like Final…
Krythic
  • 4,184
  • 5
  • 26
  • 67
-2
votes
1 answer

openTK migrating to Windows 7 wrong graphics

I'm not 100% sure if the problem is with openTK but it is the most probable thing. I made a project in a computer with Windows XP (x32), MVS 08 with windows fomrs and OpenTK and OpenGL and everything was working perfectly. But for other problems I…
Ander Biguri
  • 35,140
  • 11
  • 74
  • 120
-3
votes
1 answer

OpenTK: Detect display's DPI

I want to use different scaling for my game if it's running on a Retina display. How do I detect display's DPI with OpenTK/C#?
SurvivalMachine
  • 7,946
  • 15
  • 57
  • 87
-5
votes
2 answers

c# passing variables to class

here is example of my game class (opens opentk graphics window) class Game : GameWindow { public Game() : base(320, 240, OpenTK.Graphics.GraphicsMode.Default, "OpenTK Quick Start Sample") { VSync = VSyncMode.On; …
doggy
  • 75
  • 1
  • 8
1 2 3
64
65