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.

Newcomers DBPro Corner / Problems with SET CAMERA VIEW

Author
Message
Chest Rockwell
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location:
Posted: 12th Aug 2003 17:50
I am writing a program that uses a 2D interface, which has a resolution of 800,600,32. The 2D interface has a viewport. The top left corner of the viewport is at screen coordinates 77,33. The bottom right corner is at 717,353. I use the set camera view command which reads: SET CAMERA VIEW 2,77,33,717,353. When I execute the program, the 3D view's top left corner is near the center of the screen and the bottom right corner is below the bottom right corner of the physical screen. I have attempted to use different values but no matter what, the 3D camera view will not move any closer to the left side of the screen. This is the only 3D camera in my app so I have even tried assigning camera #0, using my viewport coordinates but get the same results. Has anyone else had this problem?

Thanks,

Kenyon Jones
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 12th Aug 2003 22:25
could you post your code? that way we can help properly

I have a website!!!
So go there: http://www.freewebs.com/darkb/index.htm
on second thought you probably shouldn't
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 12th Aug 2003 23:50
Works in U5 Beta3. A lot of camera bugs have been fixed. Try this and see if it compares to my piccy.



above code produces something like this:



The programmer formerly known as sonic
Chest Rockwell
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location:
Posted: 13th Aug 2003 04:53
Thanks for your responses. Sorry that I am just now getting back. I have included my code. I had no problems when executing the camera demos, from the examples. Having said that, I have not installed any patches. Again, thanks for your help.

spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 13th Aug 2003 18:23
Well, I'm not installing old version just to test your code - sorry!

If you are creating a camera 2, what are you doing with camera 0? It will still be full screen 'behind' your new camera 2. Your camera 2 is then like a tv's picture-in-picture function. Suggest you scrap cam2 and just change view of cam0, like my example.

The programmer formerly known as sonic
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th Aug 2003 06:40
I've experienced problems with camera 0's view window with patch U5 - when using other cameras at the same time. Camera 0's window sometimes doesn't appear at all!

If you are only using one camera, try using the default one (0), by not supplying a camera number at all. For example:

SET CAMERA VIEW 77,33,717,353

instead of

SET CAMERA VIEW 2,77,33,717,353

TDK
Chest Rockwell
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location:
Posted: 14th Aug 2003 06:40
Spooky and Red Eye,

Thanks to both of you. When I began this thread, I was ignorant to the fact that there even was a patch. This is because I have only had DBPro for a few days. Between installing the patch and eliminating the 2nd camera, the problem has been corrected. Spooky, I also ran your code and it worked perfectly. Now, I shall back my way in and try to determine which thing was causing so much chaos. I am just happy that the command now works properly.

Sincerely,

Kenyon Jones

Chest Rockwell
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location:
Posted: 14th Aug 2003 06:41
I am sorry, thanks to you too, TDK,

Kenyon

Login to post a reply

Server time is: 2024-09-20 19:44:00
Your offset time is: 2024-09-20 19:44:00