Git Product home page Git Product logo

csharpgl's Introduction

Hi there 👋

csharpgl's People

Contributors

admalexus avatar pashcovich avatar pufonbarn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csharpgl's Issues

编译SharpGL.Winforms.Demo不通过

似乎是缺少FormUnmanagedArray必要的窗体文件
使用的是VS2015社区版。其他项目可以正常编译
感谢工作。正在学习opengl

SimpleObjLoader doesn't show wavefront for me.

I have tried to load obj but it doesn't see in WinControlGL.

But it is nicd because you have made with OrderIndependentTransparency and it loads for my computer black surface of wavefront obj. Does it happen?

Thanks for fixing!

PS nice your Wavefront loader works fine than OpenTK. How did you resolve that? I already tried since March 2018 with custom wavefront loader with OpenTK. And it doesn't work for me. I cancelled my work with C# OpenTK. I see that your framework CSharpGL has another structures.

Thanks and sorry for bad English! I can't speak good for Japanese/Chinese.

English docs

Hi, this project looks interesting and I would like to try out. Is there is English documentation available?

ImageProcessing.GrayFilter demo memory leak?

Hi zhuwei,this project is very usefully to my project! but I also have some problems about CSharpGL.
When I load image more twice of times in ImageProcessing.GrayFilter demo, the memory rise to a bigger number. A large image will make this issue in a easy way(my test image of 7MB).

Welcome to CSharpGL

🎨Welcome to CSharpGL

CSharpGL is a pure C# project that allows for modern OpenGL rendering in a Object-Oriented way. It meets common requirements in OpenGL rendering such as:

🚀Modern Rendering

Object-Oriented modern rendering using GLSL shaders and vertex buffer objects.
modern-rendering

🌠GLCanvas

A winform control that supports drag-drop and wraps initialization of creating OpenGL context.
raycast-volume-rendering

🚗Uniform Variables

structs support setting values for uniform variables in GLSL shader.
edit-uniform-value

♋GLSwitch

Wraps OpenGL commands like

glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_DST_ALPHA);
...
glDisable(GL_BLEND);

or
glLineWidth(2.0f);
GLSwitch

🎥Camera and Rotator

Get projection and view matrix by moving or rotating camera.

📌Color-Coded Picking

PickableRenderer supports picking primitives in multiple vertex buffer objects using Mouse.
pick and move primitive

🎰GLControl

Rendering 'Control' at fixed position with fixed size. For example, GLAxis renders an axis at left bottom corner.
'Control' binding to specified border just like winform-control.

🔡➰🉐Text

Rendering text using glRasterPos() and CallList().
Rendering text using GLText(a special GLControl).
Load True Type Font File(*.ttf or *.otf) to build a texture filled with glyphs, which then could be used to render text.
The project CSharpGL.Font2Picture in 📂Infrastructure is a quick tool converting TTF files to pictures along with a xml config file.
export-glyph-texture-from-TTF

🍵Some Models

A Cube, Sphere, Teapot and some other models.
cube
sphere
teapot
axis

💎Some Cool Demos

Image processing using compute shader.

compute-shader-image-processing

Raycast volume rendering.

raycast-volume-rendering

Particle simulator using compute shader.

compute-shader-particles

Order-independent transparency VS Order-denpendent transparency.

order-independent-transparency

Point sprite.

10000 particles with a sphere insied a cube.
point-sprite

earth.

An earth model that singly rotate same as real earth. It's composed of 65341 positions, normals and uvs and 130140 indexes and a 10800x5400 texture.
earth

❓Support or Contact

Check my blog here if you are familiar with Chinese.

导入obj文件出错

你好,最近在学习OpenGL,由于做过C#的项目,所以还想使用C#,然后看到了你的教程,接着跑了几个例程,我发现只有用你给的nanosuit.obj文件才能渲染出图,自己的obj文件一直提示错误,所以想问一下,这是怎么回事?是我的格式不对吗?

Xaml viewer

Hello

I've been looking at your code for a while. This work is, to me, the best user friendly and complete C# OpenGL tutorial on the net, so congrats !!
However, I was wondering to turn the FormGL and its WinGLCanvas into a xaml UserControl. I've been struggling for weeks without results. Do you think an update on that matter is possible?
(I've been inspired by the SharpGL demo that can also be found on GitHub)

Thanks

Drawing directly to texture buffer

Hi there.
I've been using CSharp GL and i think it's great!

I've been tingling with texture generation, and i can obtain a texture map from a 3D object (that i can transfer into an 2D image).
Now i'd like to paint on that 2D image, so that the texture updates also directly on the buffer side (for direct rendering on the 3D object via texture coordinates).

I see there is an object called "glTexStorage2D" which is a "GLDelegates.void_uint_int_uint_int_int" (and it's read only) and which would seem to be the buffer memory (am i right?).
I guess the way to go would be to set a specific value in that buffer corresponding to the pixel of the image (set at a specific color).

So my question would be :

  • Is glTexStorage2D the right object for what i want to achieve ?
  • How to get access to glTexStorage2D and change values ?

Any one has ideas on how to do that?

Thanks

图书源码

最近刚刚阅读书籍部分内容,不知道作者可不可以加入WPF的使用样例和net core的补充库

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.