Login  Register
 



Post new topicReply to topic Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 10  Next
 
Author Message
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
liveordie wrote:
Well if you find out what shader works the effect changing the color should be easy? you can replace that file cant you?

Not as easy as you think it is. The Shader itself determines the Colour. The Shader supports very few colours. Theres no red shield effect and the Buildeffects are pretty much set in stone. I only got the purple on that effect, cause I used the UEFShader, with a purple texture.


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
Post the lump of code up ill have a look im no pro at shaders but post it up.

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
liveordie wrote:
Post the lump of code up ill have a look im no pro at shaders but post it up.

Which code? The Builder Effect? Or the Shield effect?


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
brandon007 wrote:
liveordie wrote:
Post the lump of code up ill have a look im no pro at shaders but post it up.

Which code? The Builder Effect? Or the Shield effect?


ether so i can see if the shader support color change.

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
This is the current Shield code I have right now.

Code:
MeshBlueprint {
    LODs = {
        {
            MeshName = '/effects/Entities/Panels/Panels_lod0.scm',
            AlbedoName = 'OrdosShield_Albedo.dds',
            NormalsName = 'OrdosShield_Normals.dds',
            SpecularName = 'OrdosShield_Specular.dds',
            ShaderName = 'ShieldAeon',
            LODCutoff = 1000,
        },
    },
    IconFadeInZoom = 4,
    SortOrder = 1000,
    StraddleWater = true,
}


I was aiming to get the red shield the Cybrans have in SC2, but this will work instead. (looks Unique...ish XD)

This is what it looks like ingame
Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
Umm for the shield did you create red textures for it ? how SC2 shields work are a bit different at some point i got a FA shield working in SC2 but didn't need it, For the shader trying using a personal shield shader instead, or even search the bps to find what shaders are in use.

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
liveordie wrote:
Umm for the shield did you create red textures for it ? how SC2 shields work are a bit different at some point i got a FA shield working in SC2 but didn't need it, For the shader trying using a personal shield shader instead, or even search the bps to find what shaders are in use.

Ya, The Albedo is red coloured. Dunno why its not showing. Ill try a personal shield Shader. I dunno what else to do if that doesnt work X)x

Edit: Nope, Wont work. The Shield is present (And blue) But the mesh is bright white, and not transparent... So it wont work.


Last edited by brandon007 on 04 Aug, 2011, edited 1 time in total.

Top
 Profile  
 PostPosted: 04 Aug, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
brandon007 wrote:
liveordie wrote:
Umm for the shield did you create red textures for it ? how SC2 shields work are a bit different at some point i got a FA shield working in SC2 but didn't need it, For the shader trying using a personal shield shader instead, or even search the bps to find what shaders are in use.

Ya, The Albedo is red coloured. Dunno why its not showing. Ill try a personal shield Shader. I dunno what else to do if that doesnt work X)x


post up your textures ill see if theres any thing wrong there.

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
This is the Albedo and the Normals
Image


And this is the Specular
Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
Even give this uef gate shader ago
Code:
UEFQuantumGate

some shaders are not color codded.

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
liveordie.... Your awesome! The shield isnt red, But Im gonna keep this one, because

Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
Well if your happy with it there are more shader you can try out to see what they end up looking like just doing a search heres what i got.

PhalanxEffect
ShieldFill
GlassAlpha <<< this mite be your best bet
TMeshGlow
AeonBuildPuddle <<< this would probably look funny

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
liveordie wrote:
Well if your happy with it there are more shader you can try out to see what they end up looking like just doing a search heres what i got.

PhalanxEffect
ShieldFill
GlassAlpha <<< this mite be your best bet
TMeshGlow
AeonBuildPuddle <<< this would probably look funny


PhalanxEffect - Maybe! Definite Maybe! Its all red and Transparent! ^^
ShieldFill - There appears to be nothing there. Shield is invisible.
GlassAlpha - Nope, Cant see through it, and its all white.
TMeshGlow - Too much red, Not transparent.
AeonBuildPuddle - same as TMeshGlow

Now Im stuck between PhalanxEffect and UEFQuantumGate! XD

PhalanxEffect
Image

UEFQuantumGate
Image

I dunno which to choose! T_T


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
i would go with PhalanxEffect but maybe apply a Gray alpha to your texture so its more Transparent and tweak the color a tad so its more red than pink :lol: , or even see what the normal shield textures look like with that shader?

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Last edited by liveordie on 04 Aug, 2011, edited 1 time in total.

Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
liveordie wrote:
i would go with PhalanxEffect but maybe apply a Gray alpha to your texture so its more Transparent and tweak the color a tad so its more red than pic :lol: .

I kinda dont know how to tweak just the alpha channel yet XD The PhalanxEffect though, makes the effect spin around like its in a tornado, making it a bit hard on the eyes.

The UEFGate effect though, seems more suited to be a shield...Easier on the eyes to.


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
What are you using the shader on both the Shield and the SphereSection?

EDIT try this texture let me know what it looks like

http://www.mediafire.com/?02ifox3cqbwj94b

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
I removed the panels_lod0.scm and made it back to the original Sphere shape.

This is the shield, with the new Albedo w/ the PhalanxEffect shader

Image

Seems much better ^^ But the sphere looks like its spinning XD


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 26 Mar, 2007
Posts: 5075
Location: California, United States
Offline
spinning sphere sounds like it would be OK imo, could be something unique to your faction, something to consider unless it just gets too annoying or distracting

_________________
{◕ ◡ ◕}
Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
Oh I see ^^ That will do fine then ^^


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
That does look a lot better im sure the panels were only used on the ShieldSection are you changing this as well? if so just set the panel up for that so they only show when some thing impacts the shield?

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
liveordie wrote:
That does look a lot better im sure the panels were only used on the ShieldSection are you changing this as well? if so just set the panel up for that so they only show when some thing impacts the shield?

Nah, I put the panels into the sphere itself, so I couldnt seperatly change them XD No worries... Now, If only I know how to make projectiles bounce off of a shield, like the Sc2 Illuminate shields X_x


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
Not sure some of the code mite need the engine but im sure you can codded it manually, This part of the codes from shield.lua which controls what your looking for.

Code:
    OnReflectProjectile = function(self, other)
        other:SetCollideFriendly(true)
      other.DamageData.DamageFriendly = true
      other.DamageData.DamageSelf = true
      
      local x, y, z = other:GetProjectileVelocity()
      local relectMul = 1
      
      self:CreateImpactEffect(other:GetPosition())

      if self.ReflectRandomVector then
         x = x + (relectMul * ((Random() * 2) - 1))
         y = z + (relectMul * ((Random() * 2) - 1))
         z = z + (relectMul * ((Random() * 2) - 1))
      end
      other:SetVelocityAlign(true)
      other:TrackTarget(false)
      other:SetVelocity(-x,-y,-z)
      other:SetVelocity(12)
      other:SetLifetime(5)
      other:SetReflected(self)
    end,


Why can you change the impact mesh?

Code:
        Shield = {
            ImpactEffects = 'UEFShieldHit01',
            ImpactMesh = '/effects/entities/ShieldSection01/ShieldSection01_mesh',
            Mesh = '/effects/entities/Shield01/Shield01_mesh',
            MeshZ = '/effects/entities/Shield01/Shield01z_mesh',
        },

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Last edited by liveordie on 04 Aug, 2011, edited 2 times in total.

Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
Was that even English there? lolz, sorry, But I couldnt really understand waht you said there XD

Where would that code go?

Edit: I got my Impact effects all set up already actually =p

Edit 2: I wouldnt want that in all my shields though. Im trying to make a Special shield that reflects the projectiles. Not all of the Ordos's shields can reflect stuff.


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
You would have to code a check, but you will need to code it to work looking a that small block of code that's not doing a lot just calling a engine function.

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 04 Aug, 2011 
 
User avatar

Joined: 16 Jan, 2010
Posts: 2908
Location: Draconis VII
Offline
liveordie wrote:
You would have to code a check, but you will need to code it to work looking a that small block of code that's not doing a lot just calling a engine function.

Your talking to someone who doesnt have a clue about this part of coding ya know =p


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 10  Next



Quick Tools

Search for:
Jump to:  

© 2002-2010 Gas Powered Games Corp. All Rights Reserved. Gas Powered Games is the exclusive trademark of Gas Powered Games Corp.
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
 
Home| Games | Company | News & Press | Support
  Terms of Use   |    Copyright Information   |    Privacy Policy