Game Development Community

Snow

by mb · in Torque Game Engine · 09/30/2006 (9:39 am) · 2 replies

I've been messing around with snow effects but I cant get the texture to show up. All I get is a bunch of blocks that fall from the sky. The way it falls looks like snow falling, but its just white blocks.

I have an evironment.cs in server folder that has this:

//-------------------- SNOW -----------------------------------------------------
datablock PrecipitationData(Snow)
{
type = 1;
materialList = "~/data/environment/snow";
sizeX = 30;
sizeY = 30;

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;
};

and i exec it in game.cs

and a snow.png that I made in photoshop which is transparent and I used the round paintbrush that feathers out the sides. so its basically a dot that fades out. I also have snow.dml saved in the same folder as my texture which just contains 'snow'.

Can someone help me with this?
and/or tell me where I can get a good snow texture?

btw: I also download superpng to see if it made a difference and it didnt. I've tried changing the texture several times and it never changes.

#1
09/30/2006 (9:45 am)
Nevermind: as usual right I try for hours to get it working, then post a question then right after I find the solution.

dropTexture = "~/data/environment/snow";

in place of

materialList = "~/data/environment/snow";
#2
09/30/2006 (9:53 am)
Screenshots? :O)