This is what i am usng to render my fps weapon type camera
The inverse of the view matrix * translation(0,0,2)
Is this the correct way or is there another way to achieve the effect?
Jump to content
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 13 May 2014 - 05:13 PM
Another option is to render the weapon using a second camera after everything else has been rendered. Then you can clear the depth buffer beforehand to ensure that the model under no circumstances intersects with scene geometry. Also, while physically incorrect, this camera can have a different field of view which can look better sometimes.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.