Command & Conquer Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to forum index 
[Login] Login 
Ion Cannon Beam Shader  XML
Forum Index » Tiberium Maps and Modding
Author Message
Dopex
Peacekeeper

Joined: 11/11/08 10:35:37 PM
Messages: 316
Location: Germany, Bavaria
Offline

Is the shader included in the Mod SDK? If yes which shader is it?

I tried out the DefaultW3D.fx shader which is used for lights but some objects like tiberium shine throug the beam unchanged.
Golan2781
Peacekeeper

Joined: 11/4/08 11:17:16 AM
Messages: 394
Offline

Check if you properly set the "Enable Static Sorting" to "Sort=1".

Most WeaponFX objects use the DefaultW3D.fx shader, however if you are using an un-animated texture, I'd suggest trying the MuzzleFlash.fx shader.

Never bring paper to a rock fight.
ModDB Profile
TWA - Modeling
TSR - Coding, Animations
CommieDog
Peacekeeper

Joined: 11/4/08 11:36:44 AM
Messages: 282
Location: Alaska
Offline

As a matter of fact, the Ion Cannon uses DefaultW3D.fx as its shader. Here's the full code.

C&C 4: Making Generals look like orthodox C&C
[WWW] [MSN]
Dopex
Peacekeeper

Joined: 11/11/08 10:35:37 PM
Messages: 316
Location: Germany, Bavaria
Offline

Hi

"Enable Static Sorting" to "Sort=1" did it thx once more golan!

Ah ok it also uses the defauldw3d.fx, thx for the information. But for what i want to do its not realy good.
Is there a dx9 shader wich let a surface glow, so i can use a cylinder for the beam?

Another thing is that i cant let the beam grow. I want a thin beam to become a big one but the animation does not work.
A animation which let the beam move around works.
Golan2781
Peacekeeper

Joined: 11/4/08 11:17:16 AM
Messages: 394
Offline

You can make things "glow" as in having them additive blended, like the original ion cannon and most muzzle flashes. Actual light blooming cannot be rendered in real time other than by the regular background bloom shader. You should however be able to simulate this with regular additive blending by drawing coronas, halos and the bloom manually on a dummy texture.

W3X animations only support translation (i.e. movement), rotation and visibility. If you want to make an object grow, you will have to use a WWSkin to animate it per vertex.

Never bring paper to a rock fight.
ModDB Profile
TWA - Modeling
TSR - Coding, Animations
Dopex
Peacekeeper

Joined: 11/11/08 10:35:37 PM
Messages: 316
Location: Germany, Bavaria
Offline

Hmm, its not working with spacewraps too. Again i can move it but the groth is not working... da mn!
Harrrr
Fanatic

Joined: 4/14/09 4:27:54 AM
Messages: 1542
Offline

Dopex wrote:Hmm, its not working with spacewraps too. Again i can move it but the groth is not working... da mn!


As Golan mentioned CnC3 doesn't read changes in scale for an animation. Only translate or rotate. Use the WWskin spacewapr and keyframe the vet translation not scale.

http://i678.photobucket.com/albums/vv149/Nickolas256/HailCommanderTsig-1.jpg
Dopex
Peacekeeper

Joined: 11/11/08 10:35:37 PM
Messages: 316
Location: Germany, Bavaria
Offline

I know move, rotate and scale, but what is translation?
Harrrr
Fanatic

Joined: 4/14/09 4:27:54 AM
Messages: 1542
Offline

translate = move
sorry about the confusion...I'm use to Maya not 3ds Max -_-

You must move the keyframe the x,y,z movement of the verts in WWSkin.

http://i678.photobucket.com/albums/vv149/Nickolas256/HailCommanderTsig-1.jpg
Dopex
Peacekeeper

Joined: 11/11/08 10:35:37 PM
Messages: 316
Location: Germany, Bavaria
Offline

Woow it realy works but i need a bone for every single vertex then. Very circuitous!

Thx a lot you guys!

 
Forum Index » Tiberium Maps and Modding
Go to:   
Powered by JForum 2.1.8 © JForum Team