Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Scooby_Doo on April 19, 2007, 05:13:47 am

Title: PCS gun normal problem
Post by: Scooby_Doo on April 19, 2007, 05:13:47 am
Does PCS (the one with gun normal support) actually show you the correct normal for the gun?  On my computer it's always showing straight forward.
Title: Re: PCS gun normal problem
Post by: Nuke on April 20, 2007, 03:14:49 am
ive never used pcs's ship viewer for anything more that colision debug. the thing is the normals dont need to be normalized, iirc, the engine will do it for you. just find the spot you want to converge to, and subtract the gunpoint vector from it. if you want it normalized just get the square root of  x*x+y*y+z*z and devide you vector by the result.
Title: Re: PCS gun normal problem
Post by: Scooby_Doo on April 20, 2007, 05:11:57 am
Oh, I didn't realize modelviewer support normals besides (0,0,1). That'll make my life a bit easier.
Title: Re: PCS gun normal problem
Post by: takashi on April 20, 2007, 03:24:02 pm
use modelview for setting normals. its about the only thing its good for other than seeing how it will look ingame.
Title: Re: PCS gun normal problem
Post by: Scooby_Doo on April 20, 2007, 03:41:50 pm
use modelview for setting normals. its about the only thing its good for other than seeing how it will look ingame.

Actually set them in PCS, choose them in modelview.
Title: Re: PCS gun normal problem
Post by: takashi on April 20, 2007, 06:31:10 pm
whatever works.
Title: Re: PCS gun normal problem
Post by: Kazan on April 21, 2007, 08:00:36 am
0,0,1 WAS the only possible correct normal for a while
Title: Re: PCS gun normal problem
Post by: takashi on April 21, 2007, 04:56:04 pm
odd. i always use 0.1, 0, 100 and -0.1, 0, 100.
Title: Re: PCS gun normal problem
Post by: Bobboau on April 22, 2007, 11:14:15 pm
well it doesn't matter cause the game ignored what was in the file until just recently and even then you have to tell it not to ignore it.
Title: Re: PCS gun normal problem
Post by: Nuke on April 23, 2007, 04:05:14 am
hey bob, any chance you cant make weapon models respect the gun normals? id like to do some experimentation with sidefire. where guns and missiles are flank mounted too allow circle and shoot manuvers for gunboats and heavy bombers. scripted sidefire indicators would also help pilots place their ordinance on target without having to look out the side window (to avoid an unexpected collision with a large pointy beam canon).
Title: Re: PCS gun normal problem
Post by: Bobboau on April 23, 2007, 06:17:22 am
there is a ships flag I believe.