Scripts / Adjusting alpha channel (fading in/out - transparency)

Author
Message
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 7th Jul 2017 23:10
Is it possible to adjust the transparency of an object (npc or entity) through scripting? For exmaple, to make a character slowly (not real slow) fade in rather than an abrupt immediate appearance? An abrupt appearance, of course, is quite good for a horror scene.
When in doubt -- C4 :heh, heh, heh:

-Jamie Hyneman
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 10th Jul 2017 12:53
Do you means something like this?



3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 19th Jul 2017 22:19
Sorry, I forgot about my thread. Just happened upon it and saw that someone (one of my favorite people here) had responded.

Yes, that's exactly what I was looking to do. That's probably better looking than a slow fade-in one could do in fpsc. This looks more magical and ghostly. How'd you do it or could you point me to someone who has provided it here in the forums. I couldn't seem to find a search result for it.
When in doubt -- C4 :heh, heh, heh:

-Jamie Hyneman
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 19th Jul 2017 22:22
Now is too late here, but tomorrow I'll give you all the needed info plus the script I've coded.
Now I can't remember where I've those stuff, LOL

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 20th Jul 2017 00:27
No Problem. I really appreciate it. I like your models in the store and have already purchased some. All of them are on my wish list.
When in doubt -- C4 :heh, heh, heh:

-Jamie Hyneman
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 20th Jul 2017 17:28
Afaik there is not lua command to play with Adjusting alpha channel, just a workaround.
You has to place 2 chars, in the video I've place 2 zombies, one dissapears and the other stay there.
Attach the script to the firts char.



I've attached also a decal to give more mistery to the scene.

Quote: "I like your models in the store and have already purchased some. All of them are on my wish list. "

That's music to my ears. Thank you to buy my models.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM

Login to post a reply

Server time is: 2024-12-23 00:34:54
Your offset time is: 2024-12-23 00:34:54