Question about ViewPort

Blitz3D Forums/Blitz3D Beginners Area/Question about ViewPort

JBR(Posted 2005) [#1]
Hello,

When using viewport in 3d I find that the 'scene' is squashed into the viewport rectangle rather than clipping the edges.

Anyway to just clip the edges?

Thanks
Marg


Erroneouss(Posted 2005) [#2]
Draw an image that is set to not be masked at black cutting around your thing you wanna cut off? Or use Rect to do the same thing?


Matty(Posted 2005) [#3]
Use a quad with entityblend mode 2 with a texture that is white in the regions you want it to be visible and black elsewhere. Position the quad as you would a hud element in front of the camera with entity order set so that it is drawn last over everything else.


DJWoodgate(Posted 2005) [#4]
Not exactly what you are after, but Fredborg posted some code to compensate for the viewport aspect ratio here
http://www.blitzbasic.co.nz/Community/posts.php?topic=33460


JBR(Posted 2005) [#5]
Thanks guys,

Compensating with camerazoom works perfectly.

Thanks
Marg