Battlezone Universe

Battlezone Universe => Battlezone 2 => Maps and Modding => Topic started by: TheJamsh on February 03, 2009, 02:34:26 PM

Title: issues with 'draw_twirl_trail"
Post by: TheJamsh on February 03, 2009, 02:34:26 PM
this has annoyed me a great deal. im in the middle of writing out a lovely effect for some new pilot weapons, one of these involves a rotating draw_twirl_trail effect drawn directy on the muzzle when the weapon fires (using a flashName render).

my problem is, in 1st person mode, the effect doesnt show. i tried using draw_geom instead, but draw_geom doesnt support rotation, which i REALLY need.

i went in chase and shoulder cam, and the effect shows, but if i zoom in to a certain distance from the effect, its dissapears again. im sure this never used to happen.

anyone know how i can get around it? or how i can set up BZII to draw particles no matter how close to the screen they are?
Title: Re: issues with 'draw_twirl_trail"
Post by: Nielk1 on February 03, 2009, 04:23:23 PM
Quote from: TheJamsh on February 03, 2009, 02:34:26 PM
ti tried using draw_geom instead, but draw_geom doesnt support rotation, which i REALLY need.

Does in 1.3pb4a
Title: Re: issues with 'draw_twirl_trail"
Post by: General BlackDragon on February 03, 2009, 07:29:57 PM
:D use pb4a
Title: Re: issues with 'draw_twirl_trail"
Post by: Steeveeo on February 03, 2009, 09:16:29 PM
Its because the effect is too close to the camera, all particle based effects are culled within 2 meters of the camera. I believe there is a gameprefs line to close that in though. Other than that, you're stuck unless the gun's hardpoint is further from the camera.
Title: Re: issues with 'draw_twirl_trail"
Post by: TheJamsh on February 04, 2009, 09:29:56 AM
cant find anything in the changelog about draw_geom using rotation, and i AM using Pb4a...

surely its just rotationRate right? ill have another look...

as for that gameprefs line, any idea which line it is?

EDIT: HAHA!


[Chunk]
renderBase = "draw_sphere" or "draw_geom"
InitialPitch = 0.0
InitialYaw = 0.0
InitialRoll = 0.0
AddPitch = 0.0
AddYaw = 0.0
AddRoll = 0.0

Title: Re: issues with 'draw_twirl_trail"
Post by: Steeveeo on February 04, 2009, 09:32:26 AM
Something about culldistance, or DoCullBehindCamera or somesuch, look up cull.
Title: Re: issues with 'draw_twirl_trail"
Post by: TheJamsh on February 04, 2009, 06:26:04 PM
nope, no joy... got some things about 'culling' but only lights related
Title: Re: issues with 'draw_twirl_trail"
Post by: Nielk1 on February 04, 2009, 06:46:34 PM
Quote from: TheJamsh on February 04, 2009, 09:29:56 AM

AddPitch = 0.0
AddYaw = 0.0
AddRoll = 0.0


Just use these rotators on a drawgeom...
Title: Re: issues with 'draw_twirl_trail"
Post by: TheJamsh on February 04, 2009, 06:51:46 PM
yeh will do. i wanted smoke and sparks too but i guess i cant now. well i could, but it wont be the same.
Title: Re: issues with 'draw_twirl_trail"
Post by: Nielk1 on February 04, 2009, 07:02:48 PM
The draw geom is for the one shooting the gun and those looking. All other effects are for those looking as those in the cockpit don't want to have a gun that lags whenever they shoot it. So, just continue, and don't forget cool effects like falling shells!