![]() |
Off-screen rendering? - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Off-screen rendering? (/showthread.php?tid=2387) |
Off-screen rendering? - Robin - 20-11-2008 ![]() Ported by dynamic maps & camera code over from my Dx8 engine and came up with this. Tiles and shit won't render half-way off screen or anything. Fixes? Re: Off-screen rendering? - Poyzin - 20-11-2008 I don't know a fix. But everything looks messed up and off. The stat bars, Inventory+ Buttons, Map info. Is that like um? Purposely done? But as for the in-game problems. Looks like something messed up the x and y map props? I wouldn't know. I don't code LOL Re: Off-screen rendering? - Robin - 20-11-2008 I'm not showing off the game, I'm showing a specific problem. I obviously haven't worked on the GUI yet. As for you guessing what the problem is, you kinda failed because I explained what the problem is. Don't bother posting if you're gonna post such useless stuff ;D Re: Off-screen rendering? - Egon - 20-11-2008 What happens when you walk to the edge? Re: Off-screen rendering? - Labmonkey - 20-11-2008 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 ![]() Re: Off-screen rendering? - Poyzin - 21-11-2008 Robin Wrote:I'm not showing off the game, I'm showing a specific problem. I obviously haven't worked on the GUI yet. As for you guessing what the problem is, you kinda failed because I explained what the problem is. 'Kay. Learnded lesson XD Re: Off-screen rendering? - Rory - 21-11-2008 You're changing the games name O.O!? Re: Off-screen rendering? - Tony - 21-11-2008 As in when you walk towards a direction it renders only part by part and has black at the edges of the screen? Re: Off-screen rendering? - Robin - 21-11-2008 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. I do that for sprites & animations, but doing this for EVERY tile would be laggy as fuck. Re: Off-screen rendering? - William - 21-11-2008 Did you take this screenshot while walking? Or is it like this when standing still too? Re: Off-screen rendering? - Tony - 21-11-2008 Danno if this would work since i just started programming again but Code: OpenSpace = PIC_X - (ScreenSizeX / PIC_X) Re: Off-screen rendering? - Coke - 24-11-2008 TonyNooblet Wrote:Danno if this would work since i just started programming again but "but doing this for EVERY tile would be laggy as fuck." Re: Off-screen rendering? - Robin - 24-11-2008 I thought you ran away to the army? Re: Off-screen rendering? - Coke - 24-11-2008 SIR YES SIR Re: Off-screen rendering? - Robin - 24-11-2008 Camera is easy, I not needed fpses atm ;D Re: Off-screen rendering? - GIAKEN - 25-11-2008 Well is there a way to fix this for DX7? |