Thursday, April 19, 2012

[FA] cloak effects

Hi,
Linkage to a lil movie enjoy!
http://www.mediafire.com/?rl0kswn7h5pfr2p
Read on.|||Does it not work with the ACU?? You spend the ENTIRE video demonstrating the mech marine while the ACU just stands there :-/
Also, have you actually made this mod? Cause if you have, I want!|||That actually looks pretty epic. Well done.|||If you made it blue or something it might look better, but it looks pretty good as it is.|||Hi,
Originally it was just a test messing with the shaders,
i basicly used BO cloak effect code in blueprints.lua
modded it a little for the new effect
i also copied and renamed the uef shader for UEFBuild_highfidelity/medium/low to UEFCloak and modded them a little basicly the PARAM_ part and replaced it with a number (opacity) 0.50 for 50% opacity, we can use any number between 0.0 and 1
0.0 being totaly transparent with just the white lines.. the further you go to 1 the more the units normal texture shows underneath the white lines.. after all it i the build effect you see on units when a uef unit is being built,
the shader basicly animates the 1st texture with opactity, it then starts lowering
the opacity replacing it with the units normal texture, so it basicly blends the 2 textures with opacity and a little bit of glow.
im looking for a shader that doesnt have opacity but lets us define 2 textures
this will let us use 2 textures on one unit.. which will be a great shader for use on units that we want to swap out textures on :) ill keep looking for this..
so with me modding the shaders, you have to start the game with the /purgecache switch.. also because its a cloak effect its kinda incompatable with blackops because i used there code to achieve a different effect,
if people want me to make a lil mod outa this for the cloak effect i could do that,
but you couldnt use it with blackops and you would have to start the game with /purgecache .. it wouldnt be modman compatable either as shaders have to go in an .scd
all in all it is cool, i could also do the different factions build effects, the cybran build effect is pretty damn awesome! (the red curcuitry on black) .. also we dont have to use the same textures as the orginal effects.. (whitelines, red curcuitry, ect) we can use any texture we wish,
like i say i just experimented with this effect, but i can release a lil mod for it if people want it.|||Bump!,
New Pic of the cybran effect... which i think is F$%$% AWESOME!
Image
well i went and made the mod, as expected it doesnt work with BO:Unleashed
also the Sera effect is toal pants, it also strinks the unit to a very small size depending
on the param passed... this was kinda expected as sera units grow in size as they are built.
also.. The aeon effect isnt that great it tends to leave the mesh looking like its underwater with no transparancy.. awesome effect but not what we want for a cloak effect... so, for those 2 races ill have to make another texture for the effect
and use either the uef shader or the cybran.. :)
hope you like the pics..|||Hi,
I might as well release this BETA,
Cybran and UEF effects rock!
Link Removed
Install:
extrack the zip to your games mods folder
goto the mods folder in there is a folder called scd copy the cloakeffects.scd to your games gamedata folder...
so mods\Cloak_Effect
then mods\Cloak_effect\scd\cloakeffects.scd <<--- put this file in your \gamedata folder
start FA and start and choose skirmish
enable the mod in your mod manager
rock n roll!
DO NOT TRY IT WITH BLACKOPS UNLEASHED.. ITS INCOMPATABLE!!!
there is a simple way to use it with blackops but if i tell you which code to comment out in blackops those boys will prolly fry my arse! but for those that now what im talking about in blueprints.lua try that... it looks freaking aweosme with cloak generator.. :D each faction you spawn in keep there own effect! spawn in some experimentals and check out the effect on big units.. to see the effect in full.
DO NOT MODIFY ANY OTHER MODS CODE IF YOU DO NOT UNDERSTAND WHAT YOUR DOING... DO NOT USE THIS MOD ONLINE
however if you test this mod on its own its completely safe..|||Hi,
heres a video of all the effects,
youtube was being a SH!T so i uploaded a zip instead..
Link in the OP
its better quality than above!..|||Hi,
just messing around,
here is another effect, FATBOY!!!
its just a straight transparent texture.. it uses the units normal texture but makes its transparent.. it looks rather cool.. there is no bells and whistles with this effect..
you can defo tell its transparent though.. ;)
Image

what do you think... which effect is best?|||wow great work domino, if you don't mind i would love to use the UEF and Cybran Cloak effect in place of the current UEF/Cybran Cloak effect we have in BO.|||Interesting... The problem with custom shaders is the whole manditory SCD thing.
However two things about compatability...
1) Technically as hawk said it would be nice to have custom shaders and it wouldn't be hard to recode the system to allow it to be redirected by a minimod. I'll look into it since I already have the code open for other things.
2) Those other things I am fiddling with the code for anyway is actually adding some bypasses for Resin to use in 4DC for compatability reasons. Basically any unit that has "CustomCloak = true," under the intel section of the BP will be ignored by the Blackops Transparent Cloak system... Mainly because Resin has at least 1 unit that uses a similar system but within the units code rather than global.
Either way I will see if I can't open the code up a bit more to allow for compatability manipulation... Most of that code still dates back to vanilla and its high time I gave it a full rewrite :P|||ahh right cool, xavier and LT saw this.. :)
i thought you guys wouldnt have used this because of the /purgecache switch and the scd thing, i was when i committed to an effect going to pm resin showing him what i had done, i know he has been working with your guys for compat issue with 4DC, i was going ask him to ask LT if you's wanted to use this effect, instead of the build preview currently in use..
i dont think the .scd file is a problem because you guys already use a custom sound pack which is just the same, regards to installing the needed files.. unless im using an old BO that has the sound pack.
Xavier, adding something into the bp for custom cloak is a good idea, i was going to mention this also to resin too ;/, it could default to the "normal" effect if a custom cloak isnt defined.
basicly what im saying is that ive told resin ill pass him all the mods i make to see if he wants it in 4DC.. we can all come to some arrangment if you want to use this effect in BO im cool with that, Resin hope you are also.. sorry if you havent seen this thread yet.. i was going to get around to emailing you it.. when it was complete.
all this said... shall i keep the uef and cybran effect as they are or switch then to the transparent one? i guess we keep the cool looking ones for uef and cybran and use the transparent for Aeon and find another effect for the sera.
tell me what you want..
off topic for a sec.. (related to shaders)
i think also... you might be interested in this next shader.. i think i can do a shader that will make it so we can swap out a units texture.. it will use either its normal unit texture or a totally different texture.. swapping out the shader used will let us accomplish this.. ive seen a few posts on here where modders are asking for that.. i think i can make it possible.. although now you's want this cloak effect ill finish that
before i get onto that subject..|||You are correct that we still have the custom sound files packed into Unleashed (though they have to be manually moved into place). There is a difference however.
Custom audio doesn't cause desync issues if one player has them installed and another doesn't. I am pretty sure custom shaders do though you would need to test it to be sure.
I actually already have the CustomCloak trigger coded & know it works. Actually Resin has already put the trigger in a few of 4DC units. He is just waiting on the next release of Unleashed/ACUs which will have the modified blackops scripts in it. Either way think I will adjust it so you can specify a shader to allow them to be changed by a mini-mod.|||Hi,
cool exavier, would the change be on a per unit basis or globally,
if its a per unit basis i cant see it working for this shader..
as different units would have different effects globally..
bare with me for a while.. ive emailed resin to see what he wants to do..
although going out on a limb i think he will agree with me that, puttin the effect in BO would be the better solution so then generally "Most" units will have the same faction effect unless otherwise stated as custom, seeing as you guys already have the cloak framework in place.. i wouldnt want to go about overriding your fine works just so all units can have these effects.. wouldnt be nice.. so yeah.. i think i speak for me and resin in this instance. you's can use these effects in BO, although i just gotta wait for resin to nod his head :)
ok so you guys want to keep the original uef and cybran effect.. lines and curcuitry.. ill make the aeon tranparent as per the last pic of the fatboy.
ill come up with some ideas for sera .. and post some pics by tomorrow.
there cloak effect is pretty amazing if it werent for them shrinking lol..
ill see if i can stop them shrinking when the effect is applied, if i cant figure it out
im sure someone on the forum will help us out.. (hint hint af) :)
ill keep the current aeon effect and rename it to something else.. its a rather cool effect.. look in the video at the GC on his arms, body, this lets aeon units have animated textures.. :D better still build your cloak gen and place a few aeon building around it.. the effect is cool.
The sera effect is not to disimilar from the predator cloak effect.. from a distance.
the colours are a bit bright and the speed of the anim is a little fast.. but it is similar.
dont know if you have ever noticed but when a builder unit is building something and it is under cloak effect.. the unit it is building isnt cloaked until after it is built..
you might want to look into that.. i just noticed when i got the fatboy to build a unit, while in cloak effect.|||Hi,
just had an idea, about the swapping textures..
much in the same way the blueprints code works for the cloak effect
the same could be made also to swap out the textures for dirty textures
if one exists in the bp use that texture or else use the default lod texture.
then in the ondamage event we can check the units health and swap out the texture using the same method as the cloakmesh, we use the same shader as the units faction this will enable us to make damage textures for units amonst other things.
no custom shader needed for that.
although the other things might want a new shader effect...
cool beans i think ill try this..|||The code i added into my scripts for resin are a disable on a "per unit" basis so only those units with custom cloak effects can be excluded from the global system. (They would use their own cloak code instead) The code I decided to add in responce to hawk asking to use your shaders would be a system to swap out the "global" value I have set for each faction.
Basically you can:
1) Exclude 1 or more units from being included in the Transparent Cloak system used by BO:ACUs & BO:Unleashed. (Full disabled would be just a blueprints.lua hook to add the CustomCloak switch to every unit BP... Not recommended but if a mod isn't compatable because of it what can one do right?)
2) Apply a hook to a specific table (similar to the BOGIS preloader code) that allows the last mod that runs to change which shader the scripts referenced as the global value for each faction. That way the Transparent Cloak system still runs and effects all units but other modders, like yourself, who make custom cloak shaders can shift out whats being applied.
:)|||cool beans,
sounds good, although ill prolly be letting you use the whole effects if you still want to use them... get rid of those shield shaders.. if you dont want to insert it into BO then ill do it your way. :)
ill have the effects finshed by tomorrow evening.|||Hi,
Whoop Whoop, got the sera effect i wanted... yay!
Image
its animated like the other 2. :D|||Hi,
Ok seeing as im doing this i might as well do it correctly instead of rushing it,
here are the 3 shaders used for the UEF High, Medium, Low settings (fidelity)
Low.
Image
Medium
Image
High
Image
Hope you like them so far..
ill have them all ready by tomorrow, im busy with family stuff from 2pm.
ill post pics of the completed effects per faction when i do them..
although they will basicly be the same as the uef maybe a different colour for low fidelity.
Ps, Lt_Hawkeye, resin said its ok, for you to use these in BlackOps, so when there done ill send you the link to the shader file..|||Cybran complete!
Low
Image
Medium
Image
High
Image
This is the effect i like best, its just the £$£"$" BOMB! (high) i mean you have to see it animated and zoomed in, to see how good it actually is!
SERAPHIM NEXT!
although i dont think ill have time to complete it, ill finish it tonight after 8pm :D|||They all look pretty cool, Domino. The UEF one, I don't know why, but I like the looks of the medium fidelity better than the high (and yes, I saw your videos to see it animated). The high fidelity one just doesn't seem to... fit, I guess, in my mind. *shrug*|||Is there a way to edit the gridlike texture for the UEF shader in order to make the grid more sparse. It might improve the overall look if the lines aren't so tightly packed.|||Hi,
yeah would agree the uef high detail shader is a little over the top,
its completely possible to change the effect Kirvesnaama
they are texture driven, so the lines effect doesnt have to be lines.
it can be any shape (lines, triangles, squares, a picture)..
in the texture for that effect there is only 4 vertical lines of different sizes from the middle to the edge of the texture.. ill look into spreading them out a little so the effect isnt so dramatic, also so we can see the unit texture underneath. like the cybran one.|||You mind giving the mod as you have it now to me so I could take a look at it myself? Would like to test some texture alternatives for the UEF.|||Domino could you do me a favor as I wouldn't be able to till the end of the weekend but need to know :P
Could you try running an MP game (even without mods running) where you have your shaders installed and your opponent doesn't? I am really curious if the shaders will desync the game if your opponent doesn't have them or if its more like sound files where they don't cause a passive problem.

No comments:

Post a Comment