Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Rendering an FPS weapon


Old topic!
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.

  • You cannot reply to this topic
2 replies to this topic

#1 Anddos   Members   -  Reputation: 515

Like
-1Likes
Like

Posted 13 May 2014 - 01:23 PM

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?


:)

Sponsor:

#2 kauna   Crossbones+   -  Reputation: 2832

Like
0Likes
Like

Posted 13 May 2014 - 02:05 PM

[edit]

 

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


Edited by kauna, 14 May 2014 - 06:59 AM.


#3 Madhed   Crossbones+   -  Reputation: 3129

Like
0Likes
Like

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.






Old topic!
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.



PARTNERS