Jump to content

  • Log In with Google      Sign In   
  • Create Account

s.howie

Member Since 10 Nov 2012
Offline Last Active Sep 21 2014 02:41 PM

Topics I've Started

Graphics Programming Exercises

07 January 2014 - 02:33 PM

Hi all,

 

I've had an interest in graphics programming for some time, but I've been intimidated by the perceived complexity of it. As I am getting older (30 this year) and time is passing me by, I've decided to overcome these fears and for the last month I have been studying the WebGL graphics library and pipeline. (I chose WebGL simply because I have web dev experience and so it is the most accessible graphics library for me.)

 

I've bought a few books on the topic, and I'm slowly marching my way through them. But these books are more an introduction to the graphics library, imparting basic theoretical understanding of the WebGL pipeline and the WebGL API. This is great knowledge to have, but I crave an additional stream of learning that is more practical in nature.

 

When learning a new programming language I like to do exercises such as those found on Project Euler. This way I can learn about the language whilst putting it to practice solving interesting problems. Could anyone recommend some good graphics programming exercises that I could tackle to take my theoretical book knowledge and turn it into practical experience?

 

Any suggestions are greatly appreciated.


How was this achieved?

10 April 2013 - 03:53 PM

I watched this video that demonstrates some graphics tech Obsidian are developing for Project Eternity.
 
 
I'm really curious of how they achieved 3D dynamic water levels and lighting on a 2D image.
 
If anyone could explain it to me like I am 5, I would greatly appreciate it.

Object pooling and managed languages

10 November 2012 - 02:50 AM

I am considering implementing Object Pooling into my game. The game is written in a managed language (Javascript). The goal of implementing Object Pooling is to reduce garbage collection by reusing objects.

However, my worry is that Object Pooling would make things fragile. The danger I am particularly concerned about is that it is possible to ignorantly keep a reference to an object and manipulate it after it has been returned to the pool. This could cause bugs that would be very difficult to track down.

For example, imagine I have a pool of vectors and the following happens:

- ClassA gets a vector from ClassB.
- ClassB returns the vector sent to ClassA back to the pool.
- ClassC gets a vector from ClassB (the same object as stored by ClassA) and stores it.

The issue here is that one can never be sure that an object received from a pool will not be returned and recycled without their knowledge.

I'm having difficulty deciding whether the risk is worth the reward, or if there is a way to mitigate it.

Any advice would be greatly appreciated.

PARTNERS