Questions tagged [opentk]

OpenTK is a C# library that wraps OpenGL, OpenCL and OpenAL.

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
464 views

Enabling OpenGL lighting seems to disable blending

I have the following code to set up for some 2D drawing using OpenTK. I originally wrote it without any lighting considerations, but later added the lighting block. This version of the code uses ...
2
votes
0answers
150 views

GL.Scissor not working as expected

I have some code for rendering a button in an application and I want to clip the text if it's wider than the button itself. Here a bit of code to describe what I'm doing: ...
1
vote
0answers
83 views

Cube Translation Looks All Wrong

I'm making a very simple cube in OpenTK and it seemed to be going fine until I tried to move it around. Moving it along the X Axis seems to elongate the cube, not the result I hoped for. My Vertex ...
1
vote
0answers
27 views

GL.BlendFuncSeparate(ArbDrawBuffersBlend) Enum has no members?

I want to use the function GL.BlendFuncSeparate but it seems that one of the enums used has no members. public enum ArbDrawBuffersBlend { } Is ...
1
vote
0answers
774 views

Rotating an object around it's centre in OpenGL

I'm writing small 3d viewer of models from .obj file. I have a car and I want to rotate car's wheels. I found a lot of good examples but I still have a problem: wheel rotates around point at the it's ...
1
vote
1answer
307 views

Vertex Skinning, Bone matrices question

I'm creating a model/animation viewer in C# using OpenTK for a game's models. Before stating my problem I want to describe a bit what I've accomplished so far in case I'm fundamentally missing ...
1
vote
0answers
1k views

How to use OpenTK (OpenGL) with MonoGame?

So I've been making a snake game using MonoGame (DirectX Only). I added movement, controls, feeding and growing in length. I wanted to add smooth animations to the game because the snake is just made ...
1
vote
0answers
18 views

CanDraw in large hierarchical scene with rotation

I've been assigned to write small simulation visualization, that contains thousands of cubes (I know you heard that before). Now I'm working on optimization of stuff that takes place there, but ...
1
vote
0answers
1k views

Play streaming sound in OpenTK?

What's the simplest way to make a sound stream from disk and play in OpenTK?
0
votes
0answers
18 views

Why does this order of Quaternion multiplication not introduce roll into my fps-style character controller?

I'm working on an OpenGL based project (in C#), employing Quaternions to rotate my camera I first tried to: ...
0
votes
0answers
20 views

RayCasting implementation not working with camera rotations

I've followed several guides for a custom implementation of a raycasting algorithm for picking objects in my opengl application. This is my unproject function ...
0
votes
0answers
12 views

Graphing 10 sets of Data

I have 10 sets of data saved in arrays. For example A1 = [1,2 ,3], A2 = [5,6,7]...etc. I am using OpenTk GameWindow to plot it as I have a big data set (10million+ per data set). For now I know how to ...
0
votes
0answers
598 views

Greedy Meshing : Slow to rebuild when updating chunk

I've a problem with my voxel based game. The game is sliced into chunks (Like Minecraft), each chunk is 16x256x16 blocks. When I started the project, I used a basic culling system when hidden blocks ...
-1
votes
1answer
731 views

Using Shader causes triangle to disappear

The following is my rendering code. ...