Jump to content
  • Advertisement
Sign in to follow this  
DemonDar

Isometric tile culling batching on 3D world

This topic is 804 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok assume I want a isometric world (3D with fixed camera that could rotate by fixed angles to allow vision from 4 basic directions), basically I want some way to smartly detect wich parts of my world are occluding the camera view and hide them.

The dummiest idea to achieve that would be: start a floodfill of reachable positions from player positions up to a certain distance, then raycast from camera to those positions are mark as "toBeHided" all touched blocks in between.

This approach is really silly of course and do not keep into account some things:

1) blocks changes every frame or so, basically I cannot batch the world because individual tiles to be hided change continuosly, so I would end or streaming all blocks or drawing individaul blocks (if there's a way to prebake on the fly a world area, that would be better).

 

2) if there are reachable positions that are too neary and just below the player those will cause to hide also the floor on wich the player is walking (ok here I might just limit the flood fill to the semi-cube in front of player to avoid that)

3) If I enter something that resemble a room, it is preferrable that all the walls of the room become invisible and not just the area around the player ( I always hated those games where the transparent area was simply a circle around player (like fallout 2), that was very disturbing)

5) I prefer to render only visible faces of cubes, and I have also non-cubic tiles as spare decorations.
 

Edited by DemonDar

Share this post


Link to post
Share on other sites
Advertisement

Yes, but instead of hiding what is behind,  I want to show "the behind" and hide occluders. :)

I figured partially how to implement that:
EDIT: fake allarm, huge rendering artifacts :P

Edited by DemonDar

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!