Projection not quite right

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Malaidas
Posts: 16
Joined: Wed Feb 25, 2004 1:15 pm

Projection not quite right

Post by Malaidas »

Hi

You're propably already aware of this, but just thought I'd mention

Theres a distortion in the 3D projection. When you rotate the cameara the derived scene is slightly but noticebly wrong.

I'm guessing that it might be an ordering problem in your matrix calculations.

Steve
warui
Posts: 232
Joined: Wed Apr 14, 2004 12:06 pm
Location: Lodz, Poland
Contact:

Post by warui »

Can you give better description or some screenshots ? I don't see anything wrong with projection under OpenGL.
Tomasz Nowakowski
Openoko - www.openoko.pl
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

I think you are probably talking about fisheye, correct? Try fiddling with the FOV settings. 90 degrees works well for me.
Malaidas
Posts: 16
Joined: Wed Feb 25, 2004 1:15 pm

Post by Malaidas »

Thanks Tyn I'll try that.

Its difficult to give a screenshot warui as its only really noticeble when actually moving round.

For an example though. Load up the specialFX demo as provided. Stand at one wall and look at the opposite wall. Then rotate around a point on the wall. You'll see what I mean.
warui
Posts: 232
Joined: Wed Apr 14, 2004 12:06 pm
Location: Lodz, Poland
Contact:

Post by warui »

OK, I see. As Tyn said the problem is in default FOV value which is set to 45 degrees instead of usual 90.
To solve other camera issues check my Smooth FPS camera topic.
Tomasz Nowakowski
Openoko - www.openoko.pl
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

Where can you change that FOV value? Because I had already noticed that the FPS Camera didn't look like the camera's of real fps games ...
warui
Posts: 232
Joined: Wed Apr 14, 2004 12:06 pm
Location: Lodz, Poland
Contact:

Post by warui »

Looking into API documentation is a nice habit. You should try it. ;)
http://irrlicht.sourceforge.net/docu/cl ... e.html#a17
Tomasz Nowakowski
Openoko - www.openoko.pl
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

Srry, already found it in API. First thing to do in future: look in the API :)

Edit: Camera is acting like a real FPS-camera now but the view-rectangle (hope you know what a mean) has become smaller, it is just like you zoomed in.
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

bal wrote:Camera is acting like a real FPS-camera now but the view-rectangle (hope you know what a mean) has become smaller, it is just like you zoomed in.
Someone knows what causes this?

Screens + info: http://irrlicht.sourceforge.net/phpBB2/ ... php?t=2166
Post Reply