Jump to content
  • Advertisement
Sign in to follow this  

DX11 Render FPS Weapon in World or View Space ?

Recommended Posts

Hi guys,

Do you think I should render my first-person hand/weapon in world space or view space, is there a preferred method ? I got it to work in view space but now I have to do all the lighting in view space too, that's not much of a problem but I've been doing it in world space.

I think I would rather do it in world space unless there is a good reason not too. I haven't been able to get that working though.

Any help would be appreciated, especially getting it to work in world space.


Share this post

Link to post
Share on other sites

For the sake of clarity and maintenance, I would keep all my outputs in shaders in the same space (either viewspace or worldspace), no matter if it's first person or not.

But you will probably want to keep camera space items (like first person, weapons) in camera local space (viewspace) up until you want to draw them for precision issues. Otherwise you might end up with shaky hands and weapons due to floating point precisions.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!