Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 27 Feb 2012
Offline Last Active Mar 25 2013 02:07 PM

Posts I've Made

In Topic: gDebugger with C# and OpenTK

08 May 2012 - 08:33 AM

AMD distributes gDEBugger now, they have a more up to date version. You might want to try it. http://developer.amd.com/tools/gdebugger/Pages/default.aspx

In Topic: What to do when i have more than one MVP matrices?

29 February 2012 - 03:22 PM

Pass the MVPC matrix to your shader and use is as the MVP matrix. Draw the cube. Then pass the MVPT matrix to the shader using it as the MVP matrix and draw the triangle.

In Topic: How can I apply a 3x3 transformation matrix in opengl?

28 February 2012 - 07:31 PM

The math behind a scaling function such as is glScalef() is just matrix multiplication. For each vertex (x0, y0, z0) you multiply by some scaling matrix.

x1	s 0 0	x0
y1 =	0 s 0 * y0
z1	0 0 s   z0

You will have to use your imagination a bit since there isn't an easy way to add equations in this post.

Your code might look something like this:
x1 = s * x0;
y1 = s * y0;
z1 = s * z0;

This might provide some better information on the math: http://en.wikipedia...._%28function%29

I'm not sure how you want to go about doing this in OpenGL without the built in functions. GLM might be useful to you for matrix math. It can be used with OpenGL easily.