Author Topic: fov: radial or square?  (Read 36024 times)

ido

  • Rogueliker
  • ***
  • Posts: 618
  • Karma: +0/-0
    • View Profile
    • Tame Tick
fov: radial or square?
« on: February 08, 2008, 10:09:27 PM »
I currently use radial fov in cryptrover, but am thinking about changing it.

Radial looks nicer, but causes all kinds on annoyances because it doesn't reveal the 'edges'.
Logically it also makes less sense, since diagonal movement in the game is not more expensive than straight movement.

Which do you think is better?

stu

  • Rogueliker
  • ***
  • Posts: 138
  • Karma: +0/-0
  • Moop!
    • View Profile
    • Stu's Rusty Bucket
Re: fov: radial or square?
« Reply #1 on: February 08, 2008, 11:35:58 PM »
I use octagonal fov.  square looks aweful
--/\-[ Stu ]-/\--

ido

  • Rogueliker
  • ***
  • Posts: 618
  • Karma: +0/-0
    • View Profile
    • Tame Tick
Re: fov: radial or square?
« Reply #2 on: February 09, 2008, 12:20:32 AM »
I use octagonal fov.

Why not radial then? As far as I can see the two have exactly the same disadvantages.

purestrain

  • Rogueliker
  • ***
  • Posts: 172
  • Karma: +0/-0
    • View Profile
Re: fov: radial or square?
« Reply #3 on: February 09, 2008, 12:37:43 AM »
I cant see the difference. The algorithm itself is responsible for annoyances, not the distance break condition. Does it a difference whether i break at ( (dx*dx)+(dy*dy) > 100) or (abs(dx)>10 or abs(dy)>10) ?

ido

  • Rogueliker
  • ***
  • Posts: 618
  • Karma: +0/-0
    • View Profile
    • Tame Tick
Re: fov: radial or square?
« Reply #4 on: February 09, 2008, 12:47:44 AM »
Does it a difference whether i break at ( (dx*dx)+(dy*dy) > 100) or (abs(dx)>10 or abs(dy)>10) ?

Yes - in the first case you stop much earlier in the diagonal directions.

JoshuaSmyth

  • Newcomer
  • Posts: 32
  • Karma: +0/-0
    • View Profile
    • Email
Re: fov: radial or square?
« Reply #5 on: February 09, 2008, 08:38:27 PM »
Radial looks better in my opinion.
www.tinyfrogsoftware.com <- Browser based Roguelike

Gamer_2k4

  • Rogueliker
  • ***
  • Posts: 86
  • Karma: +0/-0
    • View Profile
Re: fov: radial or square?
« Reply #6 on: February 09, 2008, 11:10:30 PM »
It's up to the developer, I think.  Square FOV is correct based on gameplay mechanics, but radial FOV looks a heck of a lot nicer.  Also, I've been playing roguelikes for years, and I've NEVER heard a player complain about circular vision.
Gamer_2k4

ido

  • Rogueliker
  • ***
  • Posts: 618
  • Karma: +0/-0
    • View Profile
    • Tame Tick
Re: fov: radial or square?
« Reply #7 on: February 10, 2008, 12:13:08 PM »
Also, I've been playing roguelikes for years, and I've NEVER heard a player complain about circular vision.

I have :)

But then again, both the fov and time are quite constraint in cryptrover, so being able to see more is more critical than in a lot of rl's.

Z

  • Rogueliker
  • ***
  • Posts: 905
  • Karma: +0/-0
    • View Profile
    • Z's Roguelike Stuff
Re: fov: radial or square?
« Reply #8 on: February 11, 2008, 12:16:01 PM »
Be original and write a hex roguelike with hexagonal FOV. ;)

Anvilfolk

  • Rogueliker
  • ***
  • Posts: 374
  • Karma: +0/-0
    • View Profile
Re: fov: radial or square?
« Reply #9 on: February 11, 2008, 05:04:28 PM »
Original? Try triangular ;D
"Get it hot! Hit it harder!!!"
 - The tutor warcry

One of They Who Are Too Busy

Marvel

  • Newcomer
  • Posts: 3
  • Karma: +0/-0
    • View Profile
    • Rogue Life
    • Email
Re: fov: radial or square?
« Reply #10 on: February 13, 2008, 10:12:49 PM »
Original? Try triangular ;D
Good idea for 7drl! Does it implemented somewhere?

Anvilfolk

  • Rogueliker
  • ***
  • Posts: 374
  • Karma: +0/-0
    • View Profile
Re: fov: radial or square?
« Reply #11 on: February 13, 2008, 11:38:00 PM »
No, unfortunately it was just a weak attempt at a witty remark ;)
"Get it hot! Hit it harder!!!"
 - The tutor warcry

One of They Who Are Too Busy

Z

  • Rogueliker
  • ***
  • Posts: 905
  • Karma: +0/-0
    • View Profile
    • Z's Roguelike Stuff
Re: fov: radial or square?
« Reply #12 on: February 15, 2008, 12:34:42 PM »
How would that work, actually? From each triangle you can move to three other triangles? Or to any of 12 triangles which are connected by edge? How would missiles go?

Or, the player is living on upward facing triangles (which form a normal hex board), and the monsters are living on downward facing triangles?

purestrain

  • Rogueliker
  • ***
  • Posts: 172
  • Karma: +0/-0
    • View Profile
Re: fov: radial or square?
« Reply #13 on: February 15, 2008, 07:11:18 PM »
I think talking was about FOV only.

gerryq

  • Newcomer
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: fov: radial or square?
« Reply #14 on: May 13, 2008, 03:22:30 PM »
Radial looks better, no doubt about it.

Personally I didn't bother with it in Lair of the Demon Ape - you can see as far as all edges of the game window if nothing is blocking your view.   The square lit region doesn't look great on the map screen, but I don't think that's a major flaw, as you will only be looking at that screen intermittently.

I used radial for Potions of Earth Sense (magic mapping) because it looks better, even if it clashes with game mechanics.  Also there is a small gameplay advantage, as wizards with a magic mapping spellbook cannot easily map out the whole dungeon as a grid.

How much does limited FOV add to a game?  I'm not convinced it adds much - even if FPV is unlimited, a monster could still be lurking around a corner or behind an obstacle.