Mouse look warp

Ezekiel000
Poster
Posts: 5
Joined: Mon Jun 27, 2011 9:30 am

Mouse look warp

Postby Ezekiel000 » Mon Jun 27, 2011 9:36 am

Is there a way to turn off the warping of the level geometry when you look up or down in DarkXL?
luciusDXL
XL Engine Developer / Site Admin
XL Engine Developer / Site Admin
Posts: 778
Joined: Thu Apr 14, 2011 4:05 pm
Contact:

Re: Mouse look warp

Postby luciusDXL » Tue Jun 28, 2011 10:37 am

Ezekiel000 wrote:Is there a way to turn off the warping of the level geometry when you look up or down in DarkXL?

Not at the moment. Proper perspective viewing will be back in the next version, though the warping will remain as an option, since it works better with the existing sprites and for the software renderer.
Ezekiel000
Poster
Posts: 5
Joined: Mon Jun 27, 2011 9:30 am

Re: Mouse look warp

Postby Ezekiel000 » Tue Jun 28, 2011 12:54 pm

Ah right thanks.

Btw great work I can't wait for a linux version as the current windows build crashes whenever I click go to next mission (but it does save the progress).
User avatar
Binarynova
Poster
Posts: 8
Joined: Sun Aug 14, 2011 10:23 am
Contact:

Re: Mouse look warp

Postby Binarynova » Sun Aug 14, 2011 5:07 pm

Just picked up Dark Forces on Steam and noticed the strange distortion when looking up. Happy to hear you're aware of it.

Loving what you're doing with XL Engine. Keep up the good work. :)
Gez
Senior-Member
Posts: 329
Joined: Fri Apr 15, 2011 2:54 pm

Re: Mouse look warp

Postby Gez » Mon Aug 15, 2011 6:23 am

The distortion is caused by the fact the technique used for looking up and down is "Y-shearing".

Basically, you render a horizontal view in 320x600 (for example, arbitrary number) and the view is a 320x200 window, usually centered. If you look down, the view window is lowered; if you look up it's raised. Regardless, as far as the renderer goes; it's horizontal -- that's why, no matter how tall you make the full scene, you'll never be able to look at the floor below you. The further away from the center you go, the more apparent the distortion becomes, because you're still looking straight ahead rather than at an angle.
luciusDXL
XL Engine Developer / Site Admin
XL Engine Developer / Site Admin
Posts: 778
Joined: Thu Apr 14, 2011 4:05 pm
Contact:

Re: Mouse look warp

Postby luciusDXL » Mon Aug 15, 2011 11:20 am

Gez's explanation is essentially correct. Though DarkXL accomplishes the "shearing" effect using an off-center projection so it doesn't actually render more then the selected resolution.

At any rate, this method of looking up and down is the same as the original games used which is why it will still be supported in the future. The advantages of that system are that sprites always look proper, "voxel sprites" look better and of course it looks more like the original (most useful for the software renderer). The main disadvantages are the distortion and limited visibility.
Animal Mother
Lurker
Posts: 4
Joined: Mon Sep 03, 2012 8:23 am

Re: Mouse look warp

Postby Animal Mother » Tue Sep 04, 2012 9:35 am

luciusDXL wrote:Proper perspective viewing will be back in the next version, though the warping will remain as an option, since it works better with the existing sprites and for the software renderer.


As an option for both the hardware and software renderers or will the warping be required for the software renderer?
SubCog
Lurker
Posts: 4
Joined: Wed Apr 16, 2014 10:28 pm

Re: Mouse look warp

Postby SubCog » Wed Apr 16, 2014 10:36 pm

Any progress on this? The warping makes me feel sick when I play.
LandersonGrillo
Lurker
Posts: 2
Joined: Sat Dec 17, 2016 6:47 am

Re: Mouse look warp

Postby LandersonGrillo » Sat Dec 17, 2016 7:02 am

Guys, is there a way to turn off mouse look?

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest