Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 22 Aug 2011
Offline Last Active Nov 30 2012 07:46 AM

Posts I've Made

In Topic: Problem reconstruction position form depth

29 November 2012 - 04:08 PM

Thanks for you response, but yestarday I finally solve it!! (The algorithm I posted here it's not right, i use another one from dark photon).
Here there is the resolution: http://www.opengl.or...995#post1244995

Thank's for the link I get it before while searching on google.

In Topic: matematics library

12 July 2012 - 02:38 PM

Chek http://glm.g-truc.net/. It's a really nice library with tones of util functions, and ofcorse vectors, matrix, quaternions... It has nearly the same sintax as GLSL and you don't need to link with your project, just include it.

In Topic: GLSL spotlight+scale problem

12 July 2012 - 02:32 PM

I think it's well calculated normal matrix.
I don't know where is the bug, I can't find it.

Here is my normal matrix calculation:
    _currentRenderableInfo.renderablePos = actor->getDerivedPosition();
    _currentRenderableInfo.renderableRot = actor->getDerivedRotation();
    _currentRenderableInfo.renderableScale = actor->getDerivedScale();
    _currentRenderableInfo.modelMatrix = actor->getFullTransform();
    _currentRenderableInfo.modelViewMatrix = _currentViewInfo.viewMatrix * _currentRenderableInfo.modelMatrix;
    _currentRenderableInfo.mvpMatrix = _currentViewInfo.projectionMatrix * _currentRenderableInfo.modelViewMatrix;
    _currentRenderableInfo.normalMatrix = Core::transpose(Core::inverse(Core::mat3(_currentRenderableInfo.modelViewMatrix)));

In Topic: So I started writing Example Programs

10 July 2012 - 04:01 PM

Very good examples, good job!

Japro it's really nice!! I like it! Posted Image

In Topic: Rendering text using OpenGL

10 July 2012 - 03:44 PM

Check glPixelStorei( GL_PACK_ALIGNMENT, 1 ) and glPixelStorei( GL_UNPACK_ALIGNMENT, 1 ).