200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 02 Mar 2014 04:40 PM |
| By that I mean more of a showcase, im not actually asking for code examples. I havent seen much weather in roblox, and I am planning on implementing it, so I just wanted to see how good other people have done it. |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 04:49 PM |
Interesting you post this, I'm making weather right now...I'll upload it in a place when rain is done :)
AW MAN THIS ISN'T WHERE I PARKED MY CAR |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 04:51 PM |
| I wouldn't imagine that making rain everywhere on the map would be a good idea. Instead, put it into GUI form or use Local Parts to create the rain around a player. |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 04:51 PM |
| http://www.roblox.com/umg-it-rainz-place?id=22164223 |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 02 Mar 2014 04:54 PM |
@decomp yeah, I was going to do it using GUIs. |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 02 Mar 2014 05:03 PM |
| Im on phone right now, but when I get home I will check out any places. |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 05:04 PM |
| Use a combination of local parts and guis. Have local parts rain around the area of the player, then have images of rain splattering on your face. |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 05:05 PM |
Eww, using GUIs will look really bad unless you do it really well
AW MAN THIS ISN'T WHERE I PARKED MY CAR |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 06:57 AM |
omg why can't I find any rain sounds that loop perfectly?
:(
AW MAN THIS ISN'T WHERE I PARKED MY CAR |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 09:30 AM |
"omg why can't I find any rain sounds that loop perfectly?"
Even if its a perfect loop, roblox sound engine ruins it with a pause inbetween |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 10:40 AM |
| Use the position of the camera to generate rain. Then it will look like it is raining everywhere. |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 10:46 AM |
>Even if its a perfect loop, roblox sound engine ruins it with a pause inbetween
i dont think so, in AntiBoomz0rs rain place he has a perfect loop, but i think he's ignoring my PM asking for the ID :(
AW MAN THIS ISN'T WHERE I PARKED MY CAR |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 03 Mar 2014 01:00 PM |
@OTGTHC Maybe he uses 2 of the same sounds, and starts playing one just before the other ends? That should eliminate any pause, and make a heavier rain sound that isn't jarring. |
|
|
| Report Abuse |
|
|
HaxHelper
|
  |
| Joined: 19 Dec 2009 |
| Total Posts: 1208 |
|
|
| 03 Mar 2014 01:50 PM |
I have a model in my inventory of a sound that loops cleanly that I had some guy upload for me
involves using a script
http://www.roblox.com/Looping-rain-sound-item?id=132559913 |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 02:02 PM |
^
ty bbz
AW MAN THIS ISN'T WHERE I PARKED MY CAR |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2014 12:43 PM |
Well here's my rain, with fail attempt at stopping rain sound when you're in a shelter, and lens flare, even less mathy! http://www.roblox.com/Weather-place?id=67663353
AW MAN THIS ISN'T WHERE I PARKED MY CAR |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 04 Mar 2014 01:16 PM |
@OTGTHC
It looks good, but it's also pretty laggy. Though, it's not like it'd be raining constantly in most situations, so I guess that's fine. |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2014 01:18 PM |
Laggy?
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO :*(
AW MAN THIS ISN'T WHERE I PARKED MY CAR |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 04 Mar 2014 01:28 PM |
| Well, it's not THAT laggy. It's just enough to notice. It also could be just me and my crappy PC. |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 05 Mar 2014 10:40 PM |
Alright, I made rain (I used Hax's loop script too): http://www.roblox.com/--place?id=148142081
It takes about 15secs to load, and it uses 280 recycling parts by respawning a part whenever it gets touched.
Has 5 layers of 1 part each that are added every 0.03seconds to make sure that it always has parts at certain depths (most importantly directly around the player).
Though, the big problem right now is that it will gradually lose parts-per-second, and by about 2mins it will have come down to a shocking 1-3 parts-per-second.. or even worse, NONE. I thought I had fixed it to where it would always have atleast one, but upon testing right before making this post it went to none again. :c
Not really sure how to fix this, though. I'm assuming it's losing track of parts somehow (maybe somehow skipping inserting it into the proper table?), but everything appears to be in order from what I can see, so I'll come back to it tomorrow, and hopefully I can figure out whats wrong with a fresh mind.
ANYWAY... it looks it's best, and what it SHOULD look like, within the first 30seconds, so tell me what you think of it when it's at it's most parts-per-second. :3 |
|
|
| Report Abuse |
|
|
|
| 06 Mar 2014 10:24 AM |
It shouldn't lose parts, that's really weird :O anyhow it looks fine and it doesn't lag at all for me
What about stuff other than rain?
Anyone done much of that? Like clouds, lightning, wind, earthquakes even?
AW MAN THIS ISN'T WHERE I PARKED MY CAR |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 06 Mar 2014 12:28 PM |
@sn0x 1) Clouds were actually brought up to me by my friend when I showed them the rain, and I decided it wasn't really worth the trouble. First of all, I just do not it looking good. Second of all, you would have to have them EVERYWHERE, and CONSTANTLY moving, and just... why? I don't see them being needed.
2) Lightning is interesting, and seems pretty simple to do. But no, I haven't seen it. I don't really know what the point of it would be, though?
3) Wind... yeah, no. Not in Roblox. I just don't see this happening in an efficient and useful way.
4) Earthquakes would just be making every camera tilt rapidly for awhile. Though, again, I don't see the use for this? It would be annoying if it happened randomly. |
|
|
| Report Abuse |
|
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
|
| 06 Mar 2014 01:04 PM |
| Earthquakes would be pretty cool in a brickbattle place or anywhere that has regeneration scripts for the map. Actually make some parts fall down and such. |
|
|
| Report Abuse |
|
|
|
| 06 Mar 2014 02:41 PM |
Hmm, actually clouds could work similarly to rain, just put them in the camera (local) and have them within a radius of like 800 studs, with fog at that much as well. I guess they only need to move when you look at them?
Also, you can find a mesh for clouds
AW MAN THIS ISN'T WHERE I PARKED MY CAR |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 06 Mar 2014 09:42 PM |
http://www.roblox.com/--place?id=148142081
Updated my rain. It now takes less than a second to load 550 parts in most cases, and I now have a PPS (parts-per-second) counter, as well as some extra information below it for debugging. Used is the table full of the parts that are currently visible (being used...), and unused are the parts that aren't being used.
It should stay around 350 PPS indefinitely now with absolutely no effect on performance. If you lag, please let me know! (Really, I do need to know. I'm going to be using this in an actual game)
Basically, I just did a lot of debugging to figure out why it was loosing track of some parts, and thus eventually not showing any parts at all. I now have a balancing act in place so that it checks for parts that do not belong in a table if that table gets too full (>= TotalParts*1.1), and if there are, puts them in the proper table. And if that function is taking too long to process (which means a freeze is about to occur), then it reloads ALL 550 parts, because otherwise things screw up. Though, like I said, the loading of parts is almost instantaneous, and usually not noticeable by the player, so it should be fine. If it isn't fine, let me know.
Oh, and I changed the size of the raindrops and changed their color to Deep Blue. :P |
|
|
| Report Abuse |
|
|