Game Development Community

Interiors leak Precipitation

by Ronald J Nelson · in Torque Game Engine · 09/08/2007 (6:52 pm) · 11 replies

I thought at first this was my code or Interiors created with Constructor's latest versions, but its not. The Interiors do not keep out weather effects like precipitation, lighting, or wind blown fog.

I have tested this with stock TGE as well as my own version. I simply used the rain functions from the demo to test this.

Oh yeah one more thing, it is only interiors this is a problem with. I added VehicleObjectType to the preciptaion code as one of its collision mask types and the vehicle blocks it just fine.

What I have seen is that only some surfaces block the precipitation. When testing this in the Stronghold mission, only the Tower's floor registered the collisions.

#1
09/08/2007 (7:14 pm)
This might be a new problem. I'm using version 1.4 of Torque with lighting kit and Hammer to create my DIF's and weather/precipitation effects are correctly blocked.
#2
09/08/2007 (10:05 pm)
Further testing shows that it is indeed registering the collision with the interior, what is going wrong is that it still renders past the collision point.

@Tim - You are soooo right! They made a ton of changes to the code for preciptation. What I suspect is that it is still performing a couple of the drop sequence loops past the point of impact.
#3
09/08/2007 (11:22 pm)
Certainly a collision related issue with Constructor.
#4
09/09/2007 (5:12 am)
It's not Constructor alone. I'm having similar problems with .dif's built in cshop, using TGE 1.5.2. I didn't have this problem with earlier builds.
#5
09/09/2007 (7:23 am)
Well I have been looking through the precipitation code. Most changes are to organize, increase performance, and clean up the code. However, there are significant differences in the renderSplash and wrapDrop functions.

I am going to try a few things with them.
#6
09/09/2007 (9:11 am)
Have you looked at this resource? Ken Finney wrote it a long time ago and it works. I haven't tested it in 1.5.2 yet, but it did work in 1.5.0
#7
09/09/2007 (11:33 am)
Well it has nothing to do with the precipitation code. It seems that it is something to do with collision with interiors. Not sure what though.

I cofirmed this by reverting the code back to 1.4.2 for Precipitation. No change.
#8
09/09/2007 (11:43 am)
Mike what value did you use for the stillFalling variable?
#9
09/09/2007 (1:04 pm)
I didn't change anything that was already there. I tested it, then 1.5.2 came along and I've forgotten about integrating it.
#10
09/09/2007 (5:47 pm)
Earlier I thought it was Constructor or CShop, I was totally wrong. I have tried with a couple of other applications and the same thing happens. Additionally I decided to look beneath the terrain while its raining.

It passes through there as well.

Also, I checked the tower again, I was tricked. They have an upper section that is leaking and since lower roof is down further than where the extra frames stop, I wasn't seeing the leaks. It is code somehow after all.

However, it is blocking the wind gusts. So I am really confused.
#11
09/29/2007 (12:47 pm)
OK I have discussed this with Matt Fairfax and he said it has to do with adding portals. Since my building doesn't have them I guess I will have to give it a shot to see if it helps.

It would be nice to know where this is in code though, I would like to modify it. I have been looking, with no luck.