opentk / objecttk Goto Github PK
View Code? Open in Web Editor NEWObjectTK is an abstraction layer on top of OpenTK to provide OpenGL features in an object-oriented and type-safe manner with modern C#-style.
License: MIT License
ObjectTK is an abstraction layer on top of OpenTK to provide OpenGL features in an object-oriented and type-safe manner with modern C#-style.
License: MIT License
Whenever I try to start any of the examples from tree list, a window with white rectangle on black background briefly shows and I get an exception
An unhandled exception of type 'System.Exception' occurred in ObjectTK.dll
Invalid effect key: 330
'Examples.exe' (CLR v4.0.30319: Examples.exe): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Remote Debugger\x64\Runtime\Microsoft.VisualStudio.Debugger.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Unhandled Exception: System.Exception: Invalid effect key: 330 ---> System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at ObjectTK.Shaders.ProgramFactory.GetShaderSource(String effectKey, List`1 included) in C:\ObjectTK\LIB\ObjectTK\ObjectTK\Shaders\ProgramFactory.cs:line 107
--- End of inner exception stack trace ---
at ObjectTK.Shaders.ProgramFactory.GetShaderSource(String effectKey, List`1 included) in C:\ObjectTK\LIB\ObjectTK\ObjectTK\Shaders\ProgramFactory.cs:line 113
at ObjectTK.Shaders.ProgramFactory.GetShaderSource(String effectKey, List`1 included) in C:\ObjectTK\LIB\ObjectTK\ObjectTK\Shaders\ProgramFactory.cs:line 154
at ObjectTK.Shaders.ProgramFactory.Create[T]() in C:\ObjectTK\LIB\ObjectTK\ObjectTK\Shaders\ProgramFactory.cs:line 85
at Examples.BasicExamples.SkyboxExample.OnLoad(Object sender, EventArgs e) in C:\ObjectTK\LIB\ObjectTK\Examples\BasicExamples\SkyboxExample.cs:line 32
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
at Examples.ExampleBrowser.RunExample(TreeNode node) in C:\ObjectTK\LIB\ObjectTK\Examples\ExampleBrowser.cs:line 70
at Examples.ExampleBrowser.TreeViewExamples_NodeMouseDoubleClick(Object sender, TreeNodeMouseClickEventArgs e) in C:\ObjectTK\LIB\ObjectTK\Examples\ExampleBrowser.cs:line 57
at System.Windows.Forms.TreeView.OnNodeMouseDoubleClick(TreeNodeMouseClickEventArgs e)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Examples.ExampleBrowserEntry.Main() in C:\ObjectTK\LIB\ObjectTK\Examples\ExampleBrowserEntry.cs:line 17
The program '[10176] Examples.exe' has exited with code 0 (0x0).
Thansk for your very nice abstraction layer.
After the release of OpenTK 4 are there any plans of porting your work to .Net standard/core?
Current tasks:
I'm new to OpenGL. I played with the examples and noticed that I can't send data directly to the fragment shaders instead of that I need to send to the vertex shader then the vertex shader sends it to the fragment shader. Is this normal?
this
cannot be disposed during execution of one of its methods. Dispose is an instance member. Call is unnecessary and will just slightly hurt perf
Please, review this project and update it to OpenTK 4
When I try to compile the shaders from the included exemples I get an error telling me that the version directive must be first statement.
I've looked at the code and it looks like some sort of line number reference is appended before anything and it seems to be the cause of the issue.
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.