|
362
|
Developer / Tutorials / Re: I've been making some OpenGL 4 tutorials
|
on: January 24, 2013, 07:47:53 AM
|
Wow. If all these articles are finished, your tutorials are going to be recommended for everybody who wants to learn modern opengl on these forums.   What I will be waiting for, is hardware-accelerated skinning.
|
|
|
|
|
369
|
Feedback / DevLogs / Re: Polycode
|
on: January 19, 2013, 07:37:02 AM
|
sexy IDE
Whoah. How did you manage to write GUI for such colored editbox for your IDE? Again, you wrote it yourself with OpenGL only? Whoah. The editor looks awesome. Is there a full-screen option for the Polycode IDE? If not is it possible you can make one? Stupid question. Name one thing Ivan can't do. 
|
|
|
|
|
371
|
Developer / Technical / Re: OpenTK 2D Texture Rotation On Z-Axis
|
on: January 16, 2013, 06:40:15 AM
|
Just to clarify, you can create your own matrix (which polly uses) like that*: float m[0x10] = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 };
It's got those values, because: [ 1 0 0 0 ] [ x ] [ x ] [ 0 1 0 0 ] * [ y ] = [ y ] [ 0 0 1 0 ] [ z ] [ z ] [ 0 0 0 1 ] [ w ] [ w ]
Which basically means this matrice doesn't change output position at all. (When we give it to our vertex shader, and there multiply matrice by coordinate, we will get raw coordinate. Much as multiplying a * 1) If you wonder how can you pass matrice to your shader, you do it this way: glUseProgram(someProgram); glMatrixUniform4fv(matrixUniform,1,GL_FALSE,&m); /* Your normal drawing stuff here */
I guess that's it. You might want to check this tutorial out: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/* 0x10 = 16. We want 4x4 matrice. You could aswell put it in two dimensional array
|
|
|
|
|
376
|
Feedback / DevLogs / Re: Zombygon - Top down exploration shooter
|
on: January 12, 2013, 11:25:48 AM
|
I think you need to work over water. In fact, it seems there's no water, just colored terrain after all. I guess that's on to-do list? The screenshot you posted on "screenshot saturday" caught my attention, brought to your blog and finally made me post here  Are there going to be native NPCs / allies? Keep it up 
|
|
|
|
|
378
|
Developer / Technical / Re: C++ callbacks with params
|
on: January 09, 2013, 11:00:35 AM
|
I still target XP, so until a v120_xp comes out, I can't use it  You mean v110_xp? It got added in " Update 1" for Visual Studio 2012. + Got to love that dark skin   Oh boy oh boy oh boy. Full, dark skin?! Does it work for like... MSVC C++ version too?
|
|
|
|
|
379
|
Developer / Technical / Re: C++ callbacks with params
|
on: January 09, 2013, 10:53:32 AM
|
Also, some people say that <functional> is C++11, some think otherwise.  <functional> is C++98. std::function is C++11. They aren't the same thing, there's a lot more in <functional> than just std::function. Ouch. Thanks for clarification. RobJinmanThanks, I'll probably look into that. For the source.  @EDIT Boy, that's some mind-fucking C++ code. I'll stay with boost for this one though. I believe it's safer too. (Althrough, I can't prove that)
|
|
|
|
|