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.

I'm using screen aligned quads to do psuedo 2D graphics, and when I change the camera viewport they tend to slide around and not be in right place and such.


What do you mean - Screen Aligned?
Depends whether aligned to GraphicsWidh()/Height() or ProjectedX etc...

-------------------

As far as your frame goes, why not:

CameraViewport camera,0,(GraphicsHeight()/ratio#),GraphicsWidth(),(GraphicsHeight()-(GraphicsHeight()/ratio#))

CameraZoom camera,(ratio#/(15*(GraphicsHeight()/GraphicsWidth())))


A value of ratio#=15 is 'standard'.