Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 14,661 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
? about using FX #268701
05/30/09 18:19
05/30/09 18:19
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline OP
Member
Jaeger  Offline OP
Member
J

Joined: May 2009
Posts: 258
Chicago
I got the camera shake .fx from the Wiki, and I want to use it shake the camera when I fire my tank's guns. I want it to shake rather hard when the big 75mm gun is fired, and just slightly rattle when the machine guns are fired. I couldn't really find a clear explanation of how to implement this into my project.

If you would, please give me a decent explanation of how you would go about using a .fx like this, and I will try it. Then we can go from there, but I'll probably be able to do it easily with a little info. Thanks!

Re: ? about using FX [Re: Jaeger] #268758
05/31/09 00:41
05/31/09 00:41
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Code:
//somewhere at the top of main.c
MATERIAL* ScreenShaking_mat =	{	effect = "shake.fx";	}
VIEW* camShake = { material = ScreenShaking_mat; flags = CHILD|PROCESS_TARGET; }

//just after level load in main() in main.c
   ...
   level_load("tryintankin.wmb");
   ScreenShaking_mat.skill1 = ScreenShaking_mat.skill2 = 0;
   camera.stage = camShake; // enable postprocessing for the camera view
   wait(2);
   ...

//in your fire_weapons() function  (same sort of thin in fire_turrmg too)
   ...
   effect(effect_gunfire,88, muzzle, temp);
   ScreenShaking_mat.skill1 = floatv(5);		//duration of shake_cycles
   ScreenShaking_mat.skill2 = floatv(0.001);	//intensity of camera move
   wait(-0.5);
   ScreenShaking_mat.skill1 = ScreenShaking_mat.skill2 = 0; //and shaking
   wait(-4);
   ...

and if you can find a really "tame" pair of numbers, you can have it running
whenever engine_state = 1 .... laugh


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: ? about using FX [Re: EvilSOB] #268759
05/31/09 00:59
05/31/09 00:59
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline OP
Member
Jaeger  Offline OP
Member
J

Joined: May 2009
Posts: 258
Chicago
Working on it now! Appreciate it!

Re: ? about using FX [Re: EvilSOB] #269130
06/01/09 22:22
06/01/09 22:22
Joined: Apr 2009
Posts: 15
Algeria
Y
Y200Corp Offline
Banned / Warez
Y200Corp  Offline
Banned / Warez
Y

Joined: Apr 2009
Posts: 15
Algeria
thanks i like this effect but when i start it it say me unknow camera.stage unknow and the flags child and processstart unknow and where can i find shaake.fx
can you please help me i have a7 not a7.7

Re: ? about using FX [Re: Y200Corp] #270643
06/09/09 07:54
06/09/09 07:54
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline OP
Member
Jaeger  Offline OP
Member
J

Joined: May 2009
Posts: 258
Chicago
You must be using an older version of A7. A7, and A7.7 are BOTH A7 though. They are just different versions. What version do you have?

Re: ? about using FX [Re: Jaeger] #271134
06/11/09 12:47
06/11/09 12:47
Joined: Apr 2009
Posts: 15
Algeria
Y
Y200Corp Offline
Banned / Warez
Y200Corp  Offline
Banned / Warez
Y

Joined: Apr 2009
Posts: 15
Algeria
thanks for replaying me jaeger
i have the version pro of 3dgame studio 7.05 (A7)
1999/2007
can you help me no effect work with me (shader,blur......)

Re: ? about using FX [Re: Y200Corp] #271156
06/11/09 15:41
06/11/09 15:41
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Well, see ya!! *HINT ABOUT WAREZ*


Moderated by  Blink, Hummel, Superku 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1