RWORD – TECHNICAL BLOG

Get the Rhema’s Word on the vast world of technology!

Archive for the ‘tech’ Category

Google Trends–SWEET!

without comments

It a marketing dream!  Check this tool out because it rocks!  Google trends allows you to see search terms and websites ranked by search volume and news volume.  Prepare to make inferences.  Here are some interesting things I have searched for.

I started with a comparison of myspace and facebook:

Facebook VS Myspace

As we see, from 2004-2007, myspace was more popular, however, facebook appears to have finally taken the lead.  Have a look at the next panel.

When orederd by region, we see that myspace is WAY more popular than facebook in America.

Written by rhemalinder

June 22, 2008 at 2:03 pm

Making a Tree in Open GL

without comments

Computer graphics, though flashy and amazing, are all based off of mathematical formulas and algorithms. 3d graphics, in general, are all based off of polygons and verteces. In programming, I have found that once I can draw something, a huge amount of possible applications arise. In this tree example, I started by making a function that could draw a rectangle with any length, width, and angle. My rectangle function has 5 parameters, x, y, width, height, and angle. The x and y parameters represent the bottom of the rectangle.

By using recursion, I was able to start at the trunk of the tree and branch outward. Each limb, including the trunk, makes two other limbs that are smaller at different angles(so that the limbs fork). I use some randomization to make the tree look more natural. When the limbs stop spawning, they make some leaves. Here is the code and a picture.

Written by rhemalinder

April 18, 2008 at 9:35 pm