Page 1 of 1

Questions about rain

Posted: Thu Oct 14, 2010 5:46 pm
by hutty
I have 2 questions related to bzflages partical engine.

1 When giving rain a texture (like bullets instead of raindrops) am I limited with the textures that come with bz? or can I use external textures from other places on the internet.

2 Is there anyway to make rain have a speed of 0 (in other words not moving (using speed 0 makes it go insanely fast)) I want the raindrops to spawn and then stay stationary?

hutty

Re: Questions about rain

Posted: Thu Oct 14, 2010 6:13 pm
by mrapple
An answer to question number 2.... Use _rainSpeed and _rainSpeedMod *I think* to adjust the rain speed.

Re: Questions about rain

Posted: Fri Oct 15, 2010 1:26 am
by optic delusion
Apple and linux can use downloaded textures for rain and puddle texture. Windows clients cannot. This is more of a bug than a feature, it's kinda an accident that it works at all.

I think the slowest you can set _rainSpeed and _rainSpeedMod is 0.0001. BZFlag ignores anything beyond four decimal places. This is true everywhere in bzflag map files. I'm not sure what a setting of zero will do.

Re: Questions about rain

Posted: Fri Oct 15, 2010 2:37 am
by hutty
thanks for the info,
too bad win clients cant
I was going to put still rain on the ground textured as grass.

Re: Questions about rain

Posted: Fri Oct 15, 2010 4:55 pm
by Runic
Why not just use a textured mesh instead

You could then use any texture you want and it would be stationary unless you add drawinfo's angvel

or if you just want a different ground texture you could just add a GroundMaterial to your map file.

Re: Questions about rain

Posted: Fri Oct 15, 2010 5:18 pm
by hutty
Why not just use a textured mesh instead
how?
or if you just want a different ground texture you could just add a GroundMaterial to your map file.
yes, but I wanted 3d grass that poofed up from the ground, not a 2d texture.

Re: Questions about rain

Posted: Fri Oct 15, 2010 7:01 pm
by blast
huttymuncher wrote:
Why not just use a textured mesh instead
how?
or if you just want a different ground texture you could just add a GroundMaterial to your map file.
yes, but I wanted 3d grass that poofed up from the ground, not a 2d texture.
If you are intending to make 3D grass, that would be a textured mesh. Yet you don't know how to make a textured mesh? :?

Re: Questions about rain

Posted: Sat Oct 16, 2010 1:31 am
by hutty
I thought he meant using small meshes as the rain drops (can that be done?)

as for using a mesh as grass, wouldn't that be very very very resource killing?
Yet you don't know how to make a textured mesh?
yes I do know how to make a textured mesh (in wings and in code) I am, however, not very good at it.

Re: Questions about rain

Posted: Sun Oct 17, 2010 1:52 pm
by optic delusion
make it drawinfo, and all the problems are solved.

Re: Questions about rain

Posted: Mon Oct 18, 2010 5:36 pm
by hutty
drawinfo?????
how?
why?

all I know about drawinfo is spinning objects and LOD