Wireframe viewports

Blitz3D Forums/Blitz3D Programming/Wireframe viewports

*(Posted 2005) [#1]
Anyone have any ideas on how to create these? What I want is a Front, Top, Left(or Right) viewport system for an editor im working on.

Any help would be appreciated :)


DJWoodgate(Posted 2005) [#2]
Define a viewport, rotate and position the camera, possibly use Ortho mode or just a high zoom if you want to remove perspective, and render it with wireframe mode enabled.


DH(Posted 2005) [#3]
Well, more specifially I would think you define each viewport at say 0,0 with a width/height of 200,200 (example)

hide all cameras, show one, render, copyrect to a image buffer, hide, show next, render, copyrect, etc, etc

At the end just draw all four images to the screen where you want the viewports visible.


DJWoodgate(Posted 2005) [#4]
Well yes, if you want to move the viewports partially off screen in a windows type way, otherwise you might just as well render each one directly where you want it with far less overhead.


_PJ_(Posted 2005) [#5]
Create 3 cameras, set their viewpoints to a quarter of the screen size, and position accordingly. Place one above the object, one to the side and one in front of the object. Point all cameras at the object.

Hide all cameras save for one
Render wireframe
Hide the camera and show another one and render again
hide this camera and show the final one.




-----------Edit-----------=

Now tested and altered.

Note that because of Bl;itz' self-righting, the 'Topcam' needs to be Rotated AFTER the PointEntity command.


*(Posted 2005) [#6]
ok thanks guys will give it a try