Rotation Accomplished
septiembre 10th, 2011By pressing the 'r' key, we are capable to see the rotation animation of the Spheres, like planets orbiting the Sun.
Subscribe via a Feed Reader
By pressing the 'r' key, we are capable to see the rotation animation of the Spheres, like planets orbiting the Sun.
Now that we have every sphere with Texture, now we are going to produce the rotation animation. There is rotation aroung the larger object, and around their own Axis...
We can work with the Translatef and Rotatef, in a determined order, for represent both rotations...
We are going to put the Sphere Textures in every single sphere, the bigger sphere is going to use a different Texture
[flickr id="6131899883" thumbnail="medium" overlay="true" size="medium" group="" align="none"]
We had found a good code to put a Texture in a sphere, but it doest work with glutSolidSphere, it seems to work with gluSphere(), and with Cuadrics, this is our first try in put texture in individual planet...
[flickr id="6132441562" thumbnail="medium" overlay="true" size="medium" group="" align="none"]
[flickr id="6131886883" thumbnail="medium" overlay="true" size="medium" group="" align="none"]
WWe have found the way how o put a texture in a 2D square, this is gona be Useful for doing the Floor.
We hope we can finish it the same day, or at leats advance a great part of what we need to do.
We´re looking how to pass from an image int the PC and Tranform it in a Texture for the Spheres.
We´ve already found a Code, but it seem to work only for BMP images, but we are going to use it anyway.
We compiled the code, and it seems that the function created is creating the Desired Texture.
Now we are Looking for codes that can paste the textures in the spheres
Empezamos el Proyecto 3, investigando un poco como añadir texturas en las Esferas
We have already accomplished in doing the second part of the project..
Now the figures can be change to torus, pyramids, spheres, squares... and also the mouse motion give us the ability to move the figures in the screen with the mouse...