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.

Author
Message
Clackersmith
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location:
Posted: 19th Jun 2004 12:27
Is there anyway to fade a object from invisable to 100% visable without having to ghost the object.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Jun 2004 13:10
Sure there is:



You just have to play around with the alpha part of the colour. That's what that '(rgb(255,255,255) && 0xffffff) + (i << 24)' nonsense does.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Clackersmith
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location:
Posted: 25th Jun 2004 03:23
I have working with this code and trying to fit it around what I am after but have been unable to do so. What I am looking to do is have a object fade from 100% fade (Invisable) to 0% fade (Visable) depending on your distance away from the object. What I would like to have is somthing like this : Using the intersect object command I get a value of lets say 1000 (Being 1000 units from the object to the camera) and I have a variable that works as a percentage for the fading of the object. I then go 1000 / 10 (a distance of 1000 being were I would like the object to start to become visable) this should give me a value of 100 which I then use as the value for the fading of the object. If I then am at a distance of lets say 634 then the fade value will be 63.4%. would a system like this be posible using your method.
Clackersmith
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location:
Posted: 26th Jun 2004 02:35
anyone know?

Login to post a reply

Server time is: 2025-06-13 02:45:57
Your offset time is: 2025-06-13 02:45:57