Sign in to follow this  


Recommended Posts

DaeMoohn    126
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
Mushu    1396
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this