Advertisement Jump to content
Sign in to follow this  
slyprid

[.net] Lighting on textured poly's

This topic is 4978 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.

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!