www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: raft on February 15, 2013, 09:29:28 pm

Title: near plane setting changes blit location
Post by: raft on February 15, 2013, 09:29:28 pm
for example the setting below causes blit locations expanded: a blit at 0,0 is displayed at -x,-y

Code: [Select]
Config.nearPlane = 0.9f;
Config.glIgnoreNearPlane = false;

indeed this was fixed before but somehow broken again. see this post (http://www.jpct.net/forum2/index.php/topic,1890.msg13851.html#msg13851)

i'm using jpct 2.6 and lwjgl 2.8.5
Title: Re: near plane setting changes blit location
Post by: EgonOlsen on February 15, 2013, 09:41:43 pm
I'll look into it. I've changed behaviour when setting the near plane with 1.26 to automatically adjust the fov but the strange blitting doesn't seem to be the only problem that this causes.
Title: Re: near plane setting changes blit location
Post by: EgonOlsen on February 15, 2013, 10:56:59 pm
I've reverted the change and fixed an additional blitting problem with higher values for the near plane. I would have prefered to keep the change, but i somehow couldn't make a near-plane-setting in Config and a fov-method in Camera working together make feel right. Instead, i've added a method adjustFovToNearPlane() to Camera that does this on demand. But i don't think that you have some demand for it, so feel free to ignore it.

Here you go:

http://jpct.de/download/beta/jpct.jar (http://jpct.de/download/beta/jpct.jar)
http://jpct.de/download/beta/jpct_ae.jar (http://jpct.de/download/beta/jpct_ae.jar)
Title: Re: near plane setting changes blit location
Post by: raft on February 15, 2013, 11:10:35 pm
thanks, you are very quick as always :)

it's fixed for desktop, I don't use AE at the moment so I cant verify it