Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 22 May 2012
Offline Last Active Aug 02 2012 05:17 AM

Topics I've Started

Dynamically hiding walls that block the camera

01 August 2012 - 10:10 AM

I'm looking for a solution to dynamically hiding walls that block the camera's view of the main character.

My game has just one character, and the camera is always fixed on them, and the character moves around the scene by themselves, but the player can swing the camera around (a bit like in The Sims).

I've seen games that have walls that dynamically drop or fade when a character moves behind them, but I have no idea where to begin with this.

I'm quite happy to try out a few ideas, I just thought I'd check whether there any commonly known techniques for this.
Thanks :)

Optimal 3D grids

22 May 2012 - 03:16 PM

Although my case is game-related, this is a general problem:

I have a 3D level, but the bounding cube for my level contains vast areas which are inaccessible by the player, and which I don't care about.

Now, I want fill my level with points, positioned every few units apart in each dimension.
At the moment I'm arbitrarily setting it to have 100 points in each axis (one million points per level), but that's obviously very wasteful.

I'm currently storing the points in a one-dimensional array, structured like: myArray[xScale+yScale+zScale] but I'm happy to change this.

So, what are my options for constructing a grid of points which only exist around relevant parts of the level?

Obviously I've considered just filling the none-relevant positions in the grid with NULL, but for each relevant position I need at least 32 bits of memory, and I really can't afford to waste that much on all of them.


Many thanks :)