Jump to content
  • Advertisement
Sign in to follow this  
Endemoniada

DX11 Render FPS Weapon in World or View Space ?

This topic is 488 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

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.

Thanks.

Share this post


Link to post
Share on other sites
Advertisement

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.

Henning

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!