Welcome to my blog!

Hi welcome to my blog. This blog is not just an ordinary blog site where in you post and share certain experiences about yourself, this blog contains and will contain about my experiences and adventures in taking up the course BS Information Technology with Specialization in Game Design and Development. Just check out my Blog Archive to choose what part of my portfolio you want to view/see my beloved visitor. Enjoy!

Monday, September 3, 2012

APLIMAT - Applied Math Compilation

What we have covered so far in Aplimat are:
1. Review about Calculus Limit and Trigonometry
2. Vector Math(Motion)
3. Bounding Box
4. Projectiles(Ordinary different equation) - Euler Integretion
5. Matrix
6. Quaternions


*Microsoft Visual Studio Ultimate was used here to run all the programs :)

Here's the my compilation in Aplimat:


First, we've use all of these header files all throughout the term of Aplimat made by our Professor. Cube.cpp & cube.h: there is a cube which is ready to call or which was our main model/object in our programming :). GlutStarter.cpp/.h, was used for the Opengl to function properly. GlutTimer.cpp/.h was used for us to apply time in our program. Matrix4.cpp/.h and Vector3.cpp/.h for matrices and vertices to function properly in the program.
Header Files

First quest is to apply gravity in a solid spher so what will happen here is that the solid sphere will just fall.
Code formula here:
float y(float x)
{
return -4.9*x*x;
}

Gravity


Video 1: The Cube Mesh(wire), rotates at x, y and z-axis and scale it at points x, y and z without using glTranslate and glRotate. Matrices are applied here :sine and cosine:
Video 1




Video 2: Here, by using GL_LINE_STRIP and apply "sine" in the code then there you go: Sine wave ;)
Video 2


Video 3: Here we will make a wave using vertical and horizontal lines with application of sine. So it waves like a real water. :)

Video 3: Midterm Project



Video 4: Here, a compilation of some activities we have. The green cube is controlled by the player. It can move in any direction. It can fire a bullet straight to the right if it hits the enemy(red cubes), enemy will be dead. The player will be chased by the violet cube if the player get nears to it, but when the player fire bullet to it, the violet cube will stop chasing the player.
Video 4



Video 5: Final Exam: Green Cube can move in any direction. Fire bullet straight to the right, if it hits the enemy(yellow cube) it will be nullified by the enemy. Green Cube can also fire straight bullet(wired cube while rotating in z-axis clockwise with application of matrices). And can fire bullet(wired cube rotating also in z-axis with application of matrices) with application of projectile.
Video 5: Final Exam






Photos below are screenshots of my Final Project in Aplimat :)
Concept: Very simple, can customize the color of the cube, just a simple maze with a cheat that can pass through walls. Just avoid the walls so you can finish the game!




If you choose to exit then a message box will appear giving you a farewell greetings :)

Here you can customize the color of your cube :)




Once your cube touched the wall it will be a game over!

So here a cheat is applied so you can pass through walls :)

Once you've reach the exit a message box will appear giving you a success greeting! :)

No comments:

Post a Comment