| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| Another Water Problem.; Ghost shadows in the water. | |
|---|---|
| Tweet Topic Started: Nov 10 2007, 07:02 AM (254 Views) | |
| Terror Doctrine | Nov 10 2007, 07:02 AM Post #1 |
|
Lead Programmer of Static
![]() ![]() ![]() ![]() ![]() ![]()
|
There are reflections of things that are not really there.![]() Any ideas? |
| |
![]() |
|
| Dr. Best | Nov 10 2007, 03:10 PM Post #2 |
|
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Recently I told you to increase/decrease the z-value for the clipping planes of the reflection and the refraction camera. Obviously you increased/decreased them a bit to strong, because that's most likely the cause of this problem. You can solve it by using smaller offset values for the clipping planes. |
![]() |
|
| Terror Doctrine | Nov 11 2007, 08:28 AM Post #3 |
|
Lead Programmer of Static
![]() ![]() ![]() ![]() ![]() ![]()
|
Ahh, ok yea i increased it way too much. Also ill ask another question, how can i blend the water with another color so its not just clear? |
| |
![]() |
|
| Dr. Best | Nov 11 2007, 03:37 PM Post #4 |
|
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Two possible ways: Either the pixel shader has to be modified or you use DrawTexEx(...) to draw partially transparent textures to the render targets of the reflection and the refraction camera. |
![]() |
|
| Linkin | Nov 12 2007, 05:48 AM Post #5 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Ok ill just extend on T Doctrines question, How could i modify the shader to apply r,g,b, values stated in the game object. And also make the alpha of the water change depending on how deep the water is, eg is lighter towards the shore as it is shallower. |
![]() Want something done in Photoshop, make a request Here Formerly known as DS-Development. | |
![]() |
|
| Dr. Best | Nov 12 2007, 04:04 PM Post #6 |
|
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Again, for this the shader had to be modified. To be more precise, this line would need to be added to the end of the *.ufx file:
And this one had to be added to the end of the *.psh file:
For your second question I have to tell you that you should better forget about that. |
![]() |
|
| Terror Doctrine | Nov 13 2007, 02:24 AM Post #7 |
|
Lead Programmer of Static
![]() ![]() ![]() ![]() ![]() ![]()
|
Ok so what would we have to put in game to change the rgb values, So we don't have to constantly modify the Shader for color changes. |
| |
![]() |
|
| skarik | Nov 13 2007, 03:02 AM Post #8 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
The diffuse map.
|
| Blog|EHS | |
![]() |
|
| Terror Doctrine | Nov 13 2007, 03:40 AM Post #9 |
|
Lead Programmer of Static
![]() ![]() ![]() ![]() ![]() ![]()
|
Ok let me explain, what i want is something like this. Say in the water obj i put
I want the water to merge with those variables |
| |
![]() |
|
| skarik | Nov 13 2007, 05:58 AM Post #10 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Change the diffuse color with those materials, using the Doctor's code. EDIT: REPHRASE!! Change the material to that diffuse color. Using the Doctor's code of course. |
| Blog|EHS | |
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)





9:12 PM Jul 11