Jump to content
  • Advertisement
Sign in to follow this  
slyprid

[.net] Lighting on textured poly's

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

I don't know if this is possible, but i'm working on a 2D engine using Direct3D and trying to do some lighting effects. I figured it shouldn't be an issue, but its proved me wrong. I've created block polygons and use them as my tiles, each of them have a texture on them. What I want to do is use lighting to add some lights to the scene, but nothing seems to be showing up. I add a mesh to the screen though, and the light appears on it. Is this possible, or do I need to dynamically create meshes as my tiles? Thanks for your time. Slyprid

Share this post


Link to post
Share on other sites
Advertisement
There's also the issue of tesselation; if you want lights to wash out nicely across a tile, you will need to make that tile of many vertices. Unless you apply per-pixel lighting to the tiles, using a pixel shader -- that'd work, too.

Share this post


Link to post
Share on other sites
I'm using CustomVertex.PositionNormalTextured as the vertex type. Since i'm only using 4 verticies, I guess I will look into pixel shading, unless their is another method.

Slyprid

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.

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!