Game Development Community

Rea,red rain(well, no, its white)

by Ben Ewing · in Torque Game Engine · 09/25/2005 (5:34 pm) · 8 replies

I just put rain o=in my mission verything works fine, except the sound(I think I know what the problem is) and the fact that the raindrops are not the ones I made, they are just white blocks...

#1
09/25/2005 (5:37 pm)
Seems like your not setting up the rain right, its not finding the texture file, so it just uses white. and as for the sound...it might be because of the error due to no texture

Edit: go into the .mis file and give us the code for the rain
#2
09/25/2005 (5:45 pm)
Make sure that you aren't using a dml for the texture. There's a lot of resources about that use dml in the precip block, but that was removed over a year ago.
#3
09/25/2005 (6:21 pm)
In the DML file all we put there is the name of the texture file(prividijng its inthe same place), right?

MissionFile:<
new Precipitation(Precipitation) {
position = "0 0 0";
rotation = "1 0 0 0";
scale = "1 1 1";
dataBlock = "Rain";
percentage = "0.5";
color1 = "0.600000 0.600000 0.600000 0.500000";
color2 = "-1.000000 0.000000 0.000000 1.000000";
color3 = "-1.000000 0.000000 0.000000 1.000000";
offsetSpeed = "0.25";
minVelocity = "0.25";
maxVelocity = "1.5";
maxNumDrops = "2000";
maxRadius = "125";
locked = "true";
};
>

Datablock, Rain:<
datablock PrecipitationData(Rain)
{
type = 1;
materialList = "~/data/fx/Rain/raindrops.dml";
soundProfile = "Rain2D";
sizeX = 0.10;
sizeY = 0.10;

movingBoxPer = 0.35;
divHeightVal = 1.5;
sizeBigBox = 1;
topBoxSpeed = 20;
frontBoxSpeed = 30;
topBoxDrawPer = 0.5;
bottomDrawHeight = 40;
skipIfPer = -0.3;
bottomSpeedPer = 1.0;
frontSpeedPer = 1.5;
frontRadiusPer = 0.5;
};
>
#4
09/26/2005 (4:12 pm)
Im not trying to be rude, but will I ever be awnsered?
#5
09/26/2005 (5:30 pm)
Don't use a .dml file.
#6
09/26/2005 (9:00 pm)
Thanks :)
so in the materialist spot to I put the rain picture?
#7
09/26/2005 (9:50 pm)
Have you looked at the example in the demo?
#8
09/27/2005 (6:42 am)
.....oh,no I havent Lol. Thanks :)