Questions tagged [sharpgl]

SharpGL is a C# library that allows you to use OpenGL in your .NET Framework based application with ease!

SharpGL is a C# library that allows you to use OpenGL in your .NET Framework based application with ease!

SharpGL comes packaged with many sample applications to demonstrate key features or for you to use as starting points for your own development.

Some features:

  • Full support for all OpenGL functions up to OpenGL 4.2;
  • Full support for all commonly used OpenGL extensions;
  • Support for WinForms applications;
  • Support for WPF applications (without resorting to WinForms hosts);
  • A powerful scene graph including polygons, shaders, NURBs and more;
  • Many sample applications as starting points for your own projects;
  • Visual Studio Extension with SharpGL project templates for WPF and WinForms.

Source:

https://github.com/dwmkerr/sharpgl

http://sharpgl.codeplex.com/

89 questions
0
votes
1 answer

Outline a 3D model correctly

I'm currently working on a simple 3D select Screen using SharpGL. It looks like this: So far it looks allright, but I need to get it the puzzles outlined somehow, so it looks more like this: I tried increasing the space between the individual…
user2741831
  • 2,120
  • 2
  • 22
  • 43
0
votes
1 answer

How to use GetActiveUniform?

Generally, question is in header. I cannot understand how to use GetActiveUniform function. public void GetActiveUniform(uint program, uint index, int bufSize, …
frankie
  • 728
  • 1
  • 10
  • 28
0
votes
1 answer

How to use GetBufferSubData?

I am currently playing around with SharpGL but can not figure out how to use it's function GetBufferSubData in proper way. public void GetBufferSubData(uint target, int offset, …
frankie
  • 728
  • 1
  • 10
  • 28
0
votes
2 answers

Render text with Modern OpenGL

I cannot find any simple solutions for text rendering in internet. I saw approaches with mapping characters as textures and than make some search and draw as texture. This way seems to be too complex for such primitive action as text drawing. Isn't…
frankie
  • 728
  • 1
  • 10
  • 28
0
votes
1 answer

Rotation with mouse (matrices and shaders)

I am trying to get my model rotated with mouse. As result I have something looks like rotation, but it is quite strange and unexpected behaved. I suggest that error is somewhere in my matrices set up or in mouse event handler. But I cannot figure…
frankie
  • 728
  • 1
  • 10
  • 28
0
votes
1 answer

Drawing quads with shaders and VBO

I am trying to draw two simple quads with shaders and VBO. But as output I get only one quad. Where I am missing something? Initialization code (shaders and matrices initialization code is skipped): gl.GenBuffers((int) VAO_IDs.NumVAOs, VAOs); …
frankie
  • 728
  • 1
  • 10
  • 28
0
votes
0 answers

Antialiasing with SharpGL

Is there a way to use antialising with Sharpgl? I haven't found anything on the website. So is there a way to antialiase? Because without antialiasing it looks pretty horrible. Or is there another way to smooth out the rendering?
0
votes
1 answer

OpenGL/SharpGL Faces Misbehaving

I am currently writing an OpenGL application using the SharpGL library and I am trying to simply create a 3x3x3 set of cubes arranged in a symmetric grid. I am currently seeing some strange behaviour exhibited in the following picture: This has me…
EdSalter
  • 318
  • 2
  • 13
0
votes
0 answers

C# OpenGL (SharpGL) Procedurally generated Mercator Sphere (polar coords)

I wanted to know if writing points using a for loop in the begin end batch works or not, so I read up on a sphere algorithm and produced this based on my reading. There are some problems with it as you can see below in the output screen capture. …
0
votes
1 answer

OpenGL Animation Timer Immediate Mode

I am using SharpGL to use OpenGL in WPF. I know how to draw things in immediate mode, but I would like to animate each iteration of the drawing. I am drawing a line strip but my problem is that it displays it all at once, I would like to be able to…
TheBlindSpring
  • 631
  • 5
  • 22
0
votes
1 answer

sharpGL in C# wpf cannot generate buffers

This simple code gives system exception and I cannot trace it since I cannot make output to console in wpf. OpenGL gl = new OpenGL(); // OpenGL gl = openGLControl.OpenGL; doesnt change result uint[] buf = new…
huseyin tugrul buyukisik
  • 11,469
  • 4
  • 45
  • 97
-1
votes
1 answer

UnProject fails to get the world coordinate when scaling

In my SharpGL project (C#) I have used the Unproject function in order to get the world coordinates from mouse coordinates. This procedure, quite trivial, fails when the drawing is scaled. I found many articles about this issue, but no one suited…
Tostone
  • 95
  • 1
  • 9
-1
votes
2 answers

Problems using camera in OpenGL

Hi, I am making an application which can make camera rotate around the model, I have successfully imported the obj format model But I meet the problem when rotate the camera, the model will disappear as you can see gl.Perspective(180, (double)Width…
-1
votes
1 answer

Can't render simple transparent sprites in SharpGL

I know how to generate a plane and map a texture. Now, I am trying to display an alpha-blended PNG on my form, like it was a sprite. I have come up with the following code from Googling and guessing: // Get the OpenGL object. var gl =…
CyberFox
  • 780
  • 6
  • 24
1 2 3 4 5
6