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.

Dark Physics & Dark A.I. & Dark Dynamix / Set Reflection Shading On [blue background]

Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Oct 2006 13:59 Edited at: 6th Oct 2006 14:00
Hi All

trying to work out to make the reflection of an object give the same background color as the world color(backdrop color)

bit of code.

opps. can a mod move this to the right place.

Dark Physics makes any hot drink go cold.
Natflash Games
Years of Service
User Offline
Joined: 7th Feb 2006
Posted: 8th Oct 2006 14:23
Dont use reflection shading ever, its so slooooow and gives a really crappy resault, if you want a reflection use a second camera and set camera to image.
Then color the backdrop on all the cameras your using.

Heres the code with tweaks

Check out my site for the latest on my games.
Chris K
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 8th Oct 2006 15:31
Clearly that doesn't give the same result!

You can do it with set camera to image, but it's quite an arse.

I had to use a specially shaped plain that got bigger as it went back to compensate for perspective.

It's not that slow anyway....

The reflection effect uses it's own camera, which will have its own background colour.

I don't think you can set it though, you'll need to use a simple skybox. ie. a massive negative box coloured the right color with it's light set to 0.

Then neither camera will actually see the backdrop.

Login to post a reply

Server time is: 2023-12-04 05:35:44
Your offset time is: 2023-12-04 05:35:44