Monday, December 4, 2017

Object Model Loader in OpenGL

The example provided here at this site was the most simplest of all loaders that I could find on the Internet. I am now trying to load Wavefront .obj files created in Blender in C++ OpenGL.

Here are the snaps of the few objects loaded...
In reverse order
Elephant
College
Porsche
Radar
Teddy


You can download the source and obj files from the site mentioned.
Things that you can do with these files is you can group vertices into faces and faces into components which you can transform and animate in 3D. For example you can load the model created in Blender exported as OBJ file into OpenGL and then display them the way you want.

I have implemented some of the tasks mentioned above a post in this next post: >>>>>> Click Here <<<<<< to visit.


Tuesday, November 28, 2017

Mandelbrot and Julia Set in OpenGL

I have ported the C code from an earlier project to OpenGL. This code runs much faster with better compiler than the earlier runtime environment of TurboC++.
You have to click on certain regions of the Mandelbrot Set and get the Julia Set.

Snapshots:


After clicking a point in the above diagram we get this image below:
(Hint: Those regions that are at the boundary of the Mandelbrot set have got richer Julia set patterns, hence clicking on anywhere and everywhere will not get you interesting patterns)


Here is the source.

This e-book is a really good source of reference for the theory behind this....

Chaos
It has the following chapters:

Iteration
Bifurcation
Universality
Strange Attractors
Strange and Complex
Julia Sets
Mandelbrot Sets
About Dimension
Euclidean Dimension
Topological Dimension
Fractal Dimension
Measuring Chaos
Harmonic Oscillator
Logistic Equation
Lyapunov Exponent
Lyapunov Space
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In JOGL the same thing implemented using Modern OpenGL published in the site:
https://blog.nobel-joergensen.com/

Snapshot:

Here is a link to the Source into my Github.

Wednesday, November 22, 2017

Blender Cup

I have followed a tutorial on making a cup in blender to make well, a cup. Here are two views of the final rendered cup.



This is the link to the video I followed and I recommend people to try making this at leisure.
https://www.youtube.com/watch?v=y__uzGKmxt8
The experience is exhilarating!
After yesterday's adventure I set out to repeat the exercise today again. After several blunders and having many re-looks at the video I generated the following cup(remade from a different view and resolution)

Following this I have made cloth simulation and generated the following image at resolution of 2000.


Friday, September 15, 2017

Engineer's Day Special - Baggage carousel

Tributes to Mokshagundam Visveswaraya who was born on 15th Sept. This day is celebrated as Engineer's day here in India. My college student who needed to visualize a conveyor belt for his student project to be displayed to people on engineers day sought my help. I did this project for him and it probably got him some confidence in his idea of RFID based tagging of luggage in airports. Here is the project on Conveyor Belt at airports. The application once complete will include RFID sensor and a mobile app which people can launch and see for themselves where on the belt their baggage is located.

Snapshot:

Here is the source.

Sunday, September 3, 2017

BrainVita - Marbles - A Game

This game was originally written by me in C++ and now ported to JOGL. I messed up the array part and was hunting online for errors such as arrayindexoutofbounds exception etc. A click outside the marble area still selects a region where marbles don't exist. I have left such bugs to be sorted out by someone truly interested in making this game production grade.

Here is the source.

Here is the snap:

Saturday, September 2, 2017

Ping Pong Balls

I have ported the ping pong balls program to Java OpenGL. Here is the program. As usual the program is not working completely.
The ball collides with the walls and the floor but bounces every time. I meant this as a game of fighting with gravity where the ball falls though the ground and only the tile at the bottom makes it bounce. There are so many unfinished projects in this blog that it will take you quite a lot of time setting things in order. You need to complete these games.


Friday, August 11, 2017

Bresenham's Line Drawing and Mid-Point Circle in Java Graphics 2D

Hello,

I am posting two of my programs which create a line and circle using the bresenham's line drawing and Mid-Point Circle.
Snapshots:


The code for:
Brezenham's Algorithm in Java Graphics2D: Here
Mid Point Circle Algorithm in Java Graphics2D: Here