| Mirage Source http://miragesource.net/forums/ |
|
| Off-screen rendering? http://miragesource.net/forums/viewtopic.php?f=201&t=4763 |
Page 1 of 2 |
| Author: | Robin [ Thu Nov 20, 2008 8:17 pm ] |
| Post subject: | Off-screen rendering? |
![]() 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? |
|
| Author: | Poyzin [ Thu Nov 20, 2008 8:23 pm ] |
| Post subject: | Re: Off-screen rendering? |
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 |
|
| Author: | Robin [ Thu Nov 20, 2008 8:44 pm ] |
| Post subject: | Re: Off-screen rendering? |
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 |
|
| Author: | Egon [ Thu Nov 20, 2008 9:39 pm ] |
| Post subject: | Re: Off-screen rendering? |
What happens when you walk to the edge? |
|
| Author: | Labmonkey [ Thu Nov 20, 2008 11:27 pm ] |
| Post subject: | Re: Off-screen rendering? |
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 |
|
| Author: | Poyzin [ Fri Nov 21, 2008 2:19 am ] |
| Post subject: | Re: Off-screen rendering? |
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. Don't bother posting if you're gonna post such useless stuff ;D 'Kay. Learnded lesson XD |
|
| Author: | Rory [ Fri Nov 21, 2008 3:43 am ] |
| Post subject: | Re: Off-screen rendering? |
You're changing the games name O.O!? |
|
| Author: | Tony [ Fri Nov 21, 2008 6:42 am ] |
| Post subject: | Re: Off-screen rendering? |
As in when you walk towards a direction it renders only part by part and has black at the edges of the screen? |
|
| Author: | Robin [ Fri Nov 21, 2008 10:13 am ] |
| Post subject: | Re: Off-screen rendering? |
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 I do that for sprites & animations, but doing this for EVERY tile would be laggy as fuck. |
|
| Author: | William [ Fri Nov 21, 2008 12:37 pm ] |
| Post subject: | Re: Off-screen rendering? |
Did you take this screenshot while walking? Or is it like this when standing still too? |
|
| Author: | Tony [ Fri Nov 21, 2008 1:16 pm ] |
| Post subject: | Re: Off-screen rendering? |
Danno if this would work since i just started programming again but Code: OpenSpace = PIC_X - (ScreenSizeX / PIC_X)
If OpenSpace < PIC_X Then rec.left = pic_x - openspace |
|
| Author: | Coke [ Mon Nov 24, 2008 11:19 pm ] |
| Post subject: | Re: Off-screen rendering? |
TonyNooblet wrote: Danno if this would work since i just started programming again but Code: OpenSpace = PIC_X - (ScreenSizeX / PIC_X) If OpenSpace < PIC_X Then rec.left = pic_x - openspace "but doing this for EVERY tile would be laggy as fuck." |
|
| Author: | Robin [ Mon Nov 24, 2008 11:28 pm ] |
| Post subject: | Re: Off-screen rendering? |
I thought you ran away to the army? |
|
| Author: | Coke [ Mon Nov 24, 2008 11:31 pm ] |
| Post subject: | Re: Off-screen rendering? |
SIR YES SIR |
|
| Author: | Robin [ Mon Nov 24, 2008 11:56 pm ] |
| Post subject: | Re: Off-screen rendering? |
Camera is easy, I not needed fpses atm ;D |
|
| Author: | GIAKEN [ Tue Nov 25, 2008 2:38 am ] |
| Post subject: | Re: Off-screen rendering? |
Well is there a way to fix this for DX7? |
|
| Page 1 of 2 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|