Jump to content
  • Advertisement
Sign in to follow this  
Anddos

Rendering an FPS weapon

This topic is 1673 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement

[edit]

 

at least I'd like to know, which part of the message wasn't helpful

Edited by kauna

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!