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.

DarkBASIC Professional Discussion / Question about "Set Reflection Shading On"

Author
Message
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 10th Jan 2009 06:20 Edited at: 10th Jan 2009 06:21
Why is it that in this picture below, it show as blue, there is a gray box all around, and the camera color has been set to black?

4 walls and floor are all reflective, or cant you do that as the reflections are only working from 1 direction?


Everyone Be Cool, You, Be Cool.

Attachments

Login to view attachments
Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Jan 2009 12:54 Edited at: 10th Jan 2009 13:29
It's not clear what you are trying to do. However, I've just created a simple scene with several small green cubes inside a large red cube (without culling) and set camera 0 background colour to black.

I then applied reflection shading to the large cube and, as you say, the background colour of the reflection is blue.

Perhaps it only works sensibly if the reflection camera is looking at a complete scene - and I assume it doesn't look at the object being used to show the reflection. You might be able to fix this easily by doing the reflection manually yourself using two or more cameras.

Edit Here are the code and media I used. If you move the camera backwards and forwards you can see clearly which green cubes are reflected (should be nos 1, 2, 3, 5, 6, 7, 8) - and it's always the same ones regardless of the camera position (although cube 8 disappears from certain angles because of the culling). So it looks as if a fixed reflection plane is used - if so, which?

Attachments

Login to view attachments
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 10th Jan 2009 15:16
I've had fun with this command, it can only do one object as reflection so if you have four objects then only one will do the reflection.

plus its needs to be rotated 180 to get the reflection.

Dark Physics makes any hot drink go cold.
cjb2006
19
Years of Service
User Offline
Joined: 20th May 2006
Location:
Posted: 10th Jan 2009 15:16 Edited at: 11th Jan 2009 20:49
As I recall this shader was only intended for "mirror in a bathroom" type effects. As the help file says you can't have multiple reflection plains with this.



To be used with GG's media.

Login to post a reply

Server time is: 2025-06-18 07:15:04
Your offset time is: 2025-06-18 07:15:04