dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
768 stars 300 forks source link

glDrawElementsBaseVertex not found #164

Closed stevenmbiz closed 5 years ago

stevenmbiz commented 5 years ago

I'm implementing skeleton animation and need to use the glDrawElementsBaseVertex to draw. I try to add this call in SharpGL but no success, so I'm wondering when this function will be added? Thank you.

dwmkerr commented 5 years ago

Let me take a look and get back to you shortly!

dwmkerr commented 5 years ago

Hi @steenmbiz can you let me know if release 2.4.3.0 resolves your issue? If so, please let me know and I will close this issue. If you create any interesting projects or have any great images to share please do so and I'll share them from this project too!

stevenmbiz commented 5 years ago

I'm testing the new version today and will let you know the result asap. Thanks

stevenmbiz commented 5 years ago

I ported the WPF CelShading example to WinForms using the new draw function and it works like a charm. So I can confirm that the issue is solved now. But I also tried creating another openGLControl in the form to render the same TrefoilKnot in the second GlControl without success. The program crashed in the shader creation function. I also checked the RenderContext sample, but it use immediate mode to render and I need the retained mode to render my skeleton animation. So would you mind providing a multi-GLControls retained mode renderContext with shader sample for us or can provide some clues for how to do it using SharpGL. Thank you.

stevenmbiz commented 5 years ago

Hi Dave, I can confirm that this issue is solved now. But I need your help for multi-GLControl in the same form using retained mode rendering. Please see the reply on the GitHub section for details. I’ll share my skeleton animation example in the future. Thank you.

Steven


寄件者: Dave Kerr notifications@github.com 寄件日期: Wednesday, October 23, 2019 12:42:20 AM 收件者: dwmkerr/sharpgl sharpgl@noreply.github.com 副本: steenmbiz stevenmbiz@hotmail.com; Mention mention@noreply.github.com 主旨: Re: [dwmkerr/sharpgl] glDrawElementsBaseVertex not found (#164)

Hi @steenmbizhttps://github.com/steenmbiz can you let me know if release 2.4.3.0 resolves your issue? If so, please let me know and I will close this issue. If you create any interesting projects or have any great images to share please do so and I'll share them from this project too!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/dwmkerr/sharpgl/issues/164?email_source=notifications&email_token=AGGCXCXMVPBVGRCVKXJ7PNDQP755ZA5CNFSM4JBVIO52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECANIMQ#issuecomment-545313842, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGGCXCXWOKUIRE4GWYOBYSDQP755ZANCNFSM4JBVIO5Q.

dwmkerr commented 5 years ago

Sure @steenmbiz would you mind opening it as a new issue with a brief description of the easiest way to reproduce, and I will take a look at it there? Thanks!