Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 15 Jun 2008
Offline Last Active Sep 21 2014 01:12 AM

Topics I've Started

shader and full illumination from eye pos

14 September 2014 - 04:57 AM

hello. How i can create a shader that illuminate with one light all the mesh that i would display?
in glsl or gl es 2.0.
I have an orbit camera and i would that the mesh or the meshes in the target position are illuminated, there is a trick? or i must use more than one lamp?
I can set the light always in the eye position ?

orbit camera

25 August 2014 - 10:27 AM

could you recommend an already made orbit camera   c ++ for opengl es that use glm?

the role of the controller in the mvc

20 March 2014 - 11:35 AM

Hello, i'm not understand the role of the controller in the mvc , for example:
if i have only a model with all my functions that query the db ,do other logic and return to the view the data to show(that calls the model directly) and the model is a singleton why i need a controller?
I read that decouples the model from the view , but this what means?
Can you show me an example of the benefits of the controller?

extrusion and dir

04 October 2013 - 04:59 PM

I have a 2d shape and i create a 3d extrusion on direction 0 0 1( i must do the extrusion on z axis for personal stuff, i can't use directly the extrusion direction).
Now i wish rotate the 3d extrusion solid by the extrusion direction.
How i can create a rotation matrix based on the extrusion direction?
I must first find the extrusion angle? but in which plane i must calculate the angle and in which plane is the  extrusion axis?
this is an image





glm and debug with visual studio

03 October 2013 - 01:23 AM

I'm using opengl and glm math library.
I'm using visual studio and a little problem is how to view the vectors and matrixes .
When i expand a vector or a matrix appear something like :
but i can't view all the vectors components, only the first.
There is a good system for debug matrixes and vectors with glm and visual studio? I use vs 2012.