
Awesome, I'm running not walking
Posted Monday, 31 March, 2008 - 02:38 by Boder inI was worried for no reason.
I got the SVN for the new FBO stuff, got confused with nant and realized I didn't need it for "build vs." Compiling was easy.
Started with my new project codenamed "Quick Start" (I expect many have the same codename). I had to change some things, but was simple with C# intellisense. I still hope for an updated Quick Start. Pseudo fullscreen works nicely and is the default (cool).
The only thing is the mouse cursor stays on the "loading" icon until I move it off the client area (very minor).
Now I'm on to figure out FBOs and GLSL, which I never got under C++, but should be easier now.


Comments
Re: Awesome, I'm running not walking
Got FBO working. CPU Usage went to 1/4 (from rmclock) but I'm not too worried as it's a debug build.
I draw one non-pow-2 texture quad in immediate mode to a FBO, then render the FBO texture as a quad, again in immediate mode.
Re: Awesome, I'm running not walking
Please, would you paste the source of your texture->FBO->color buffer code? :) Still haven't gotten around to FBO's, would be interesting learn!
Re: Awesome, I'm running not walking
Sure! In all its ugly glory (Note, I do not need a depth render buffer attached for my 2D game)
Re: Awesome, I'm running not walking
Thanks! Are the (int) casts in TexParameter necessary? I thought OpenTK had a way of getting around those? Hurts my eyes..
Re: Awesome, I'm running not walking
[TexParameter casts]
Unfortunately there's no way to work around these without writing potentially hundreds of overloads (really, if there was, we'd have done it...) Hopefully GL3 will be a little more sane with parameter types.
However, there's one thing I haven't tried: can you use enums for generic constraints? If yes, it might be possible to add a few overloads in GLHelper.cs for the most common cases.
[Mouse icon problem]
It's a known issue - will be fixed in due time :)
Re: Awesome, I'm running not walking
[Mouse icon problem]
See http://www.opentk.com/node/331
Re: Awesome, I'm running not walking
VBOs are working now with the help of that great tutorial. OpenTK makes OpenGL fun again, unlike the C API with extensions and piss-poor documentation and 1000s of constants.
Re: Awesome, I'm running not walking
I agree with Boder :)
Re: Awesome, I'm running not walking
[TexParameter casts]
I hope this doesn't become a philosophy session again, but actually the casting is imo not a bad thing. It tells you whether you are using the int or float overload. The situation is better for AL than for GL, but you can be sure that the current solution is as good as it can currently be. The problem is that the parameters are depending on the previous:
void Foo( enum e1, e1_enum e2, e2_enum e3); // hope this makes senseLike Fiddler said, there's no solution to avoid the cast without a big price tag on it.
[1000s of constants]
Agreed, this is a huge advantage. You spend alot less time looking at references to make sure you pass valid parameters, because OpenTK restricts the options heavily :) *worships Fiddler for the idea to do this*
Re: Awesome, I'm running not walking
[TexParameter casts]
I hope this doesn't become a philosophy session again
We'll see ;)
No I understand, in this case I can't really see any elegant way.
I guess the following is out of the question?
(notice the 'i' appended to the method name, indicating the type of the last parameter. A little less parenthesis to type, a little cleaner code)