Skip to content

How to draw the 3 axes with vsg? #714

Answered by robertosfield
redflare2023 asked this question in Q&A
Discussion options

You must be logged in to vote

Arrows and axis rendering like you show is something I've been considering as an addition to vsg::Builder.

Right now Builder can created cones and cylinders which is what is needed in for the axis arrows so could be used to build up each part. To see how to use vsg::Builder have a look at the vsgbuilder examples.

The HUD side could be implemented with with a separate View with the Camera's View and Projection matrices set up to do the HUD. The vsgcamera and vsgmultiviews examples illustrate how this can be done. For a hud you just want to clear the depth buffer.

To sync the rotation of the axis you'll want to modify the HUD View's Camera View matrix so that the rotate component is the sam…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@robertosfield
Comment options

Answer selected by robertosfield
Comment options

You must be logged in to vote
1 reply
@robertosfield
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants