Jump to content
  • Advertisement
Sign in to follow this  
StanIAm

DX11 HLSL project a texture to the frontside of an object

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

Hey folks I have a question about projectionstuff in HLSL.

When I want to project a texture with a custom view and projectionmatrix, I get the problem that the texture also writes to the backfaces of my object viewn from the the custom view.

For example in that Example here: http://www.rastertek.com/dx11tut43.html

I project the texture by looking for frustum intersection and calculating the texcoords for that but lets say I want to project a image like a beamer does but then I get the image also drawn at the backfaces of my object although there would be an unlit area...

Is there a way to solve that ?

Share this post


Link to post
Share on other sites
Advertisement

Okay thanks but what is about other objects that are behind that one ?? It should produce a kind of shadow but is that possible to check ??

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!