Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / oh dear, now I've found a camera problem...

Author
Message
Avan Madisen
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: The Castle Anthrax
Posted: 29th May 2003 02:24
Hi

I've been playing with multiple cameras as well, recently, and I'm a bit puzzled by one problem. The code I've added here is a test with four cameras positioned and rotated exactly the same way, and set up to be exactly the same image size, and the same fov.

However, camera 1 (the one in the top right of the screen) has a different fov to the others, it looks like it's a 4:3 ratio image, like the screen resolution, while the other three are 1:1, square.

Could someone please try the code and tell me if they get the same effect? I've tested this with 12 cameras and it's the same, all of them eccept #1 are square.

Thanks

Avan
The glass is half empty...
That way there's more room for improvement!
Avan Madisen
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: The Castle Anthrax
Posted: 29th May 2003 02:40
Ah, it's attached the code as the 'source' button at the bottom of the above message.

The glass is half empty...
That way there's more room for improvement!
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 29th May 2003 03:12
Yes, I get same effect but do not see why it is happening. Played with code for a bit but can't fix it. Must be yet another bug!

Gronda, Gronda
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 29th May 2003 06:34
How strange...

--Mouse

Famous Fighting Furball
Avan Madisen
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: The Castle Anthrax
Posted: 30th May 2003 02:43
I've found a solution to it, it always happens on the first camera created, so to solve the problem, create all the cameras you need, plus one extra, and delete the first one you made. Seems to correct it.

Avan

The glass is half empty...
That way there's more room for improvement!
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 30th May 2003 03:53
Wonder what causes it. Seems like an odd nature for a bug. *shrug*

--Mouse

Famous Fighting Furball
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 30th May 2003 05:22
prolly a fov command setting

try the camera fov setting tutorial and perhaps it will work for all cameras created.

Avan Madisen
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: The Castle Anthrax
Posted: 31st May 2003 02:17
Indi - I have played with the fov command and it seems that the first camera created has a 4:3 ratio image, so changing the fov doesn't help because that changed the fov of both the vertical and horizontal view, now if DBP had control to change both, that would be able to sort this problem, I believe. Thanks anyway.

Also, does anyone know why the 'set camera to image' command is so restrictive on the image sizes, you have to use computer numbers, 64, 128, 256 etc, so you can only make images of 1:1, 1:2, 1:4 etc, I was hoping to be able to control the exact size of the image, or am I wanting too much?

Avan

The glass is half empty...
That way there's more room for improvement!
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 31st May 2003 03:20
The camera problem I have also had.

The image size issue is to do with your graphics card. On my GeForce 2 MX I can have any image dimension I want until I use transparency then it wants power of 2 sized textures.

If you use an odd image size on a graphics card that supports it, then you can expect compatability problems with users who dont have such a card.

Pneumatic Dryll

Login to post a reply

Server time is: 2026-07-11 11:42:05
Your offset time is: 2026-07-11 11:42:05