bitzhuwei / csharpgl Goto Github PK
View Code? Open in Web Editor NEW:green_apple:Object Oriented OpenGL in C#.
License: MIT License
:green_apple:Object Oriented OpenGL in C#.
License: MIT License
计划:先做好legacy OpenGL的CSharpGL.FileParser._3DSParser.ToLegacyOpenGL,之后再实现modern OpenGL的CSharpGL.FileParser._3DSParser.ToModernOpenGL
似乎是缺少FormUnmanagedArray必要的窗体文件
使用的是VS2015社区版。其他项目可以正常编译
感谢工作。正在学习opengl
3ds ChunkBase 模块在哪里?
do you have plan to make CsharpGL works in UWP?
For example
https://github.com/luca-piccioni/OpenGL.Net
With mapping to OpenGL of ANGLE
ANGLE(OpenGL) in UWP C++
ANGLE(OpenGL) in UWP c#
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.
pickingAction.Pick好像不能获取assimp.net加载的模型
Hi, this project looks interesting and I would like to try out. Is there is English documentation available?
What license do you choose for your lib ?
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).
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:
Object-Oriented modern rendering using GLSL shaders and vertex buffer objects.
A winform control that supports drag-drop and wraps initialization of creating OpenGL context.
structs support setting values for uniform variables in GLSL shader.
Wraps OpenGL commands like
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_DST_ALPHA);
...
glDisable(GL_BLEND);
Get projection and view matrix by moving or rotating camera.
PickableRenderer supports picking primitives in multiple vertex buffer objects using Mouse.
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.
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.
A Cube, Sphere, Teapot and some other models.
10000 particles with a sphere insied a cube.
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.
Check my blog here if you are familiar with Chinese.
你好,最近在学习OpenGL,由于做过C#的项目,所以还想使用C#,然后看到了你的教程,接着跑了几个例程,我发现只有用你给的nanosuit.obj文件才能渲染出图,自己的obj文件一直提示错误,所以想问一下,这是怎么回事?是我的格式不对吗?
利用mono和OPENGL。OPENGL版的WPF 不就出世了吗
项目中定义了SatelliteRotator 去旋转图区,那么对于评议操作来说,是不是可以定义一个类似的类来实现传入参数控制平移视图呢?
能否吧书本中的所有插页图片都贴到一个PDF文件中?
黑白图片看起来太累了。
感谢。
对新手有用 谢谢
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
OrderIndependentTransparentcy 的例子运行为黑色,问一下是什么问题?
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 :
Any one has ideas on how to do that?
Thanks
最近刚刚阅读书籍部分内容,不知道作者可不可以加入WPF的使用样例和net core的补充库
DemoRendererFactory: RaycastVolumeRenderer produces blank, no loading of head256.raw
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.