Product Chat / Dynamic/Alternative Textures

Author
Message
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 24th Jul 2016 02:30
As we wait for the next release, thought I'd share progress with shaders. The 'glow' shader adds an aura around the entity, nice enough, but I've added control via lua script so the aura changes colour as health drains away. Also has a couple of texture swaps based on health - from none (so entity appears invisible with just the aura glow, to full diffuse, to black (when character dead). Just testing at the moment and if Lee could (pretty please) add in a few lua-engine-shader variables for custom user usage these effects would become much easier to achieve - having to coerce existing variables at the moment but as these are for other purposes it's not ideal.

Cheers.

Wolf
Forum Support
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 24th Jul 2016 07:12 Edited at: 24th Jul 2016 07:13
Takes me back to something a much younger me once dabbled with.

LINK TO THAT

What you have done here is, of course, far different and better executed, but hey! Nothing like nerdy nostalgia, right?

Your shader looks nothing short of what is seen in the big titles. I can see many uses for that! Your work never ceases to amaze!



-Wolf
"When I contradict myself, I am telling the truth"
"absurdity has become necessity"
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 24th Jul 2016 08:03
Very nice.Thanks for posting.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 24th Jul 2016 10:03
Very cool, don't think the black adds anything but for proof of concept its interesting.
Can you adjust the brightness and does it still glow in complete darkness or fog?
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
SpaceWurm
Game Guru Backer
13
Years of Service
User Offline
Joined: 11th Nov 2011
Playing:
Posted: 24th Jul 2016 12:01 Edited at: 27th Jul 2019 14:20
Ooohh, this is handy. Picture an enemy with "invisibility" activated (how the Stealth Boy functions in Fallout). All you can see are these slight outlines. As you attack the enemy he becomes more visible.
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 24th Jul 2016 13:19
yes this is really nice...been playing around with some shaders to do same sort of effects....
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen). Wanting a new PC at some point.
Interests: Drumming, Saxophone, Art, Theatre, Music.
Jerry Tremble
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 24th Jul 2016 13:34
Reminds me of Predator! Nice!
MAME Cab PC: i7 4770@3.4Ghz (passmark 9945), 12GB RAM, Win 10/64, GeForce GTX 1080 (Passmark 12735); Shiny new laptop: i7 4800MQ@2.7Ghz (passmark 8586), 16GB RAM, Win 10/64, GeForce GTX870M (passmark 3598); Old laptop: i5@2.3Ghz, 8GB RAM, Win 7/64, Intel 3000 graphics
PM
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 25th Jul 2016 12:56 Edited at: 25th Jul 2016 12:57
Thanks for the replies

@wolf that looks cool (or hot actually, but in the heat sense). Wonder if that shader could be ported to GG?

@smallg - yes the black doesn't really impress but I didn't have a 'destroyed' texture to hand. It does have a 'glow' power and works in dark (this can be changed so it doesn't). Currently using the fog variable to change the colours of the entity, would be much better if some spare/custom variables were available for user use.



Attachments

Login to view attachments
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 25th Jul 2016 13:24
I tried the "vertex fur.fx" and "vertex fur2.fx" effect files but couldn't get them to work, they were invisible but no glow ....yet
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen). Wanting a new PC at some point.
Interests: Drumming, Saxophone, Art, Theatre, Music.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 25th Jul 2016 14:29
really cool, imagine seeing these guys emerging from the dark with that sinister glow
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 25th Jul 2016 15:24 Edited at: 25th Jul 2016 16:22
@Bored of the Rings - 'fur2' sort of works - but then I'm not really sure what the effect is supposed to look like . There might be a gold mine of other shaders that Wolf has referenced on the other TGC forum.



@smallg - bet you could come up with some wicked cool scripts for it (and with texture swaps) if we could get those custom shader variables from Lee

EDIT: looks better when the colours tuned a bit:



@Wolf - your 'old flame' is attached - err, sorry

Attachments

Login to view attachments
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 25th Jul 2016 19:58
Really cool stuff going around these days, what grabs my interest here is how you scripted the alt textures.

Login to post a reply

Server time is: 2024-11-25 00:14:40
Your offset time is: 2024-11-25 00:14:40