Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Off-screen rendering?
#9
Basically, the tiles around the edge won't render because a few of the pixels are off-screen.

If anything is even slightly off-screen, it wont render the entire thing.

You can see that in the tiles & trees.

Jacob found an alright method of fixing it, though.

Labmonkey Wrote:The way i usually fix this is by when setting the rec, check if it is going to draw offscreen, and adjust accordingly.


ie, if x < 0 then recx = recx + x

eh not sure if that makes sense, but hope it helps Big Grin

I do that for sprites & animations, but doing this for EVERY tile would be laggy as fuck.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)