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

Add arcball effect to 3D quads

How can I add an arcball effects to drawn quads? In this example, a Cube was created and the arcball effect was added which is working fine. // Create a sphere. Cube cube = new Cube(); cube.AddEffect(arcBallEffect); // Add…
Anonymous Duck
  • 2,942
  • 1
  • 12
  • 35
0
votes
1 answer

Vertex data is not drawn after DrawArrays call

Getting started using SharpGL after using other frameworks for OpenGL in C# I decided to start with the most simplest of examples to make sure I understood any syntax changes/niceties of SharpGL. So I'm attempting to render a single solid coloured…
Stephen Ross
  • 882
  • 6
  • 21
0
votes
0 answers

Partial drawing with OpenGL

Can we partially redraw the frame in OpenGl? For Example: If I have both Lines and Polygons in my frame, Polygons does not change ( same dimensions, colour etc) but there is some slight change in Lines. So I want to render only lines again and not…
Akansha
  • 933
  • 7
  • 18
0
votes
1 answer

SharpGL (OpenGL in C#) Solar System - Camera position is Calculated Wrong

I am currently learning OpenGL and I am trying to write simple solar system application similar to the one in tutorial, yet for some reason camera behavior is really weird and I am not sure what is causing this. I want my camera to look at the sun,…
rvnlord
  • 3,487
  • 3
  • 23
  • 32
0
votes
1 answer

Coloring in SharpGL

I have a sphere and I want to color it and add a light effect on it, so when I shed a light on it, the original color of the sphere is gone, replaced by the color of the illuminating light. I don't know what is the problem, help me. Here is my…
0
votes
0 answers

Reading and Writing to the GPU, Tips And Tricks for improving speed (especially in this scenario)

Currently my application has a major bottleneck when it comes to GPU CPU data sharing. Basically I am selecting multiple items, each item becomes a buffer and then becomes a 2D texture (of the same size) and they all get blended together on the…
chrispepper1989
  • 2,100
  • 2
  • 23
  • 48
0
votes
1 answer

WPF Bindings stop working under load

I have been banging my head against this problem for weeks, so I thought it was time to look for some outside help :-) I have a WPF application with a main window that includes a whole bunch of controls that use binding. One of the controls is a…
Mike Nash
  • 1
  • 1
0
votes
1 answer

How to rotate objects in OpenGL relative to local or global axes

I'm asking a question that has been asked a million times before, but I still haven't found a good answer after going through these and also resorting to other sites: How to rotate a graphic over global axes, and not to local axes? rotating objects…
nurchi
  • 770
  • 11
  • 24
0
votes
0 answers

OpenGL Mandelbrot pixelating on zoom

I've written a Mandelbrot viewer with zoom using SharpGL (C# implementation of OpenGL). It works fine but after 17 zooms (double scale each zoom) it starts to pixelate pretty badly. I have almost identical code written in c# directly, which doesn't…
0
votes
0 answers

Multiple FBOs or Multiple attachments or FBO "double buffer" for composting images

Situation I am writing an image compositor, and I am using FBOs. As gl can not read a texture that it is currently writing to, currently I am using a pseudo "Fbo Flip Chain" logic. I create a list of about 10 FBO and each time I render I move to the…
chrispepper1989
  • 2,100
  • 2
  • 23
  • 48
0
votes
1 answer

sharpgl Cannot invoke extension function glShaderSource

when trying to create a shader using sharpgl I'm getting the following exception System.Exception: Cannot invoke extension function glShaderSource ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an…
ColmanJ
  • 457
  • 2
  • 12
  • 28
0
votes
0 answers

Converting between Unsigned int texture and normalised float (GL_RED_INTEGER to GL_RGB)

What is the correct way to convert from unsigned int texture to a normalized float and back again? As a test I am currently trying to render an unsigned int texture to a standard RGB context and the following is working but it doesn't feel…
chrispepper1989
  • 2,100
  • 2
  • 23
  • 48
0
votes
2 answers

he name "OpenGLControl" does not exist in the namespace "clr-namespace:SharpGL.WPF;assembly=SharpGL.WPF"

I have problem with openGL wrapper - SharpGL-> I am not able to build solution because of missing assembly . The name "OpenGLControl" does not exist in the namespace "clr-namespace:SharpGL.WPF;assembly=SharpGL.WPF" The requiered assemblies are …
0
votes
1 answer

32bit (int) Buffer to Greyscale/Colour-mapped Image in OpenGL, Single Channel 32 bit Texture or TBO?

I have an int buffer of intensity values, I want to display this as a greyscale/colour-mapped image in OpenGL. What is the best way to achieve this? Standard Texture? Can I do it via a standard glTexture, so something…
chrispepper1989
  • 2,100
  • 2
  • 23
  • 48
0
votes
0 answers

sharpgl DrawText3D translating by itself

I'm quite new on SharpGL (OpenGl) and I'm trying to draw some squares and add some text inside. I use the code below. The Problem is, gl.DrawText3D method translates by itself according to text lenght. When I wanted to add a new line that starts…
Barbaros
  • 13
  • 9