Jump to content
  • Advertisement
Sign in to follow this  
DaeMoohn

Matterials

This topic is 5038 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, I'm quite a newbie in graphic programming. I use DirectX 8.1b SDK, and I have a question. It is possible to create a transparent windglass, that can reflect a part of the image, and has support for lensflare effect? I mean you can see thru the glass, but also your image is reflected. Initially, I thought I have to use pixel shader tehniques.

Share this post


Link to post
Share on other sites
Advertisement
Yes, it is possible. But not easy.

If you want to do an easy reflection, I'd suggest you look at the reflections done in the point sprite example of the SDK: basically they render the particle system twice: once "under" the ground, then they render the ground over it, slightly transparent so the particles can be seen, then the "normal" ones are rendered. This creates the reflection effect, because you can see the particles twice. You should look at the SDK sample for a better understanding.

You could probably implement this for a glass reflection - just you'd have to make the reflection object semi-transparent too since you're looking through the glass.

Or you could look up the article on VCP reflections, but that's slow as molasses. This way is faster and easier!

Good luck! Experimentation will eventually yield good results! [wink]

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!