CameraViewport

Blitz3D Forums/Blitz3D Programming/CameraViewport

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Oh, well that's no problem at all! I thought you wanted to do something else :)

Just use: CameraViewport camera,208,48,384,384

What's the problem with that?

Remember that if you use camerapick or cameraproject you need to compensate for the top left corner of the viewport!

So if you do a CameraPick camera,mousex(),mousey() it will pick at the wrong place. You need to use:

CameraPick camera,mousex()-208,mousey()-48