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 / blinding effect by ghost plain black to white

Author
Message
OnQue Int
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 2nd Nov 2008 20:09 Edited at: 2nd Nov 2008 20:12
how do i change the color of an object when another object is in the screen.. i want a bright affect by placing a plain in front of me black for transparent ,ghost on turn white when sun in screen

i have this it runs with no errors and it is white see through now but wont go black transparent
not my full game code(4500 lines)

the only other part of this code for blinding is
the loading object ghosting,disabling zdepth,lock object on
this is only the blinding effect

bcr#=bcr#
bcb#=bcb#
bcg#=bcg#
if object in screen(sun)
if bcr#<200 then inc bcr#
if bcb#<200 then inc bcb#
if bcg#<200 then inc bcg#
color object blind, RGB(bcr#,bcb#,bcg#)
`show object blind
else
if bcr#>0 then dec bcr#
if bcb#>0 then dec bcb#
if bcg#>0 then dec bcg#
`hide object blind
if bcr#<0 then bcr#=0
if bcb#<0 then bcb#=0
if bcg#<0 then bcg#=0
color object blind, RGB(bcr#,bcb#,bcg#)
endif


Shouldnt this work?
Twu Kai
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 3rd Nov 2008 22:58 Edited at: 3rd Nov 2008 23:02
What mode for ghosting are you using? Try setting it just to GHOST OBJECT ON objectnumber if you aren't already. I'm not sure what is wrong yet, but someone might have an idea already.

EDIT: Also, what is your ambient light set to? Have a look at the FADE OBJECT command in place of the COLOR OBJECT command, which basically just fades an object from its maximum brightness to a darker colour, and in my experience works with the ambient light set to 100. The COLOR OBJECT command doesn't work with an ambient light of 100, however.

I am sorry for my not replying to my last thread that asked for help.. I am active now and will try to reply to help!

Login to post a reply

Server time is: 2024-11-24 20:03:27
Your offset time is: 2024-11-24 20:03:27