Skip to content

osg::PositionAttitudeTransform equivalent class in vsg #704

Discussion options

You must be logged in to vote

I haven't implemented an directly replacement for osg::PositionAttitudeTransform in the VSG, but I've implemented variations on this several times for different client projects by subclassing from vsg::Transform and override the transform method:

 virtual dmat4 transform(const dmat4& mv) const = 0;

The are currently two subclasses from Transform in the core VSG that could be used as a guide to what is required:

  1. vsg::MatrixTransform [jheader] (https://github.com/vsg-dev/VulkanSceneGraph/blob/master/include/vsg/nodes/MatrixTransform.h) & source
  2. vsg::AbsoluteTransform header & source

Potentially we could include a vsg::PositionAttitudeTransform if it's something that will be widely used, …

Replies: 1 comment 1 reply

Comment options

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

Answer selected by robertosfield
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