Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / tree magic transparency question ,and make an object run away from the camera

Author
Message
bg38
15
Years of Service
User Offline
Joined: 28th Oct 2009
Location:
Posted: 25th Nov 2009 01:44
I've been working on this game project for a couple of nights now.
So far I've managed to work out some of the issues with it thru trial and error, experimenting, and the help of some of the tutorials listed here.

I figured out how to change the lighting views when underwater..




My question here is , when i use the tree magic grass in my project, and set the reflection on the water plain, where the water is supposed to be behind the grass, it appears over it, and causes the grass to turn invisible where they intersect.


I know it has something to do with the reflection shader cause it shows up fine when I turn the shader off.

Has anyone else had this problem?

I've posted the code used for the water and the grass, if that helps.
grass

water



the other pics are random shots from the game
The duck I made in GIMP. I basically textured a plain for the duck.

Which brings my 2nd question. I figured out how to make him face the camera always. What's the best method to make him run if the camera approaches?


I've searched the help files and the forums but no luck yet.






Login to post a reply

Server time is: 2024-11-24 22:30:21
Your offset time is: 2024-11-24 22:30:21