DanFessler
|
|
« Reply #27360 on: July 20, 2014, 12:33:05 AM » |
|
Randomly Generated Clouds! Explain yourself, yo!
|
|
|
Logged
|
|
|
|
Thomas Finch
|
|
« Reply #27361 on: July 20, 2014, 12:41:00 AM » |
|
@Thomas Finch: Good stuff! I guess you've used logic that says two adjacent tiles cannot be the same? Some of them come out quite rectangular though, those look a bit weird.
Nope! That's not how I did it. Yeah, it still needs a tiny bit of tweaking, but at this point 90% of the clouds look great to me, so I'm happy for now. Explain yourself, yo!
Okay! Each cloud is made of a random number of individual 'poofs' that were drawn by my artist. In total there are about 80 or so poofs (7 layers each). Here is a small sample: http://imgur.com/3kUfHCfThe poofs are all programmed into position using a 2D Array, then a couple loops draw the 7th column of every poof in the cloud formation. Then they draw the 6th column of all poofs, then the 5th and so on. The later something is drawn, the more on top it appear. So everything from the 7th column appears on the bottom layer, and the earlier columns appear higher. In fact, I was bored, so I decided to make a gif of how the cloud is drawn: EDIT: Something I completely forgot to mention! When a cloud is created it draws all of those layers to a SURFACE, then I convert the surface into a sprite the size of the cloud. So every step, the only work the game is doing is drawing the new sprite. The game does not have to draw each individual layer of every poof every step.
|
|
« Last Edit: July 20, 2014, 10:05:47 AM by Thomas Finch »
|
Logged
|
|
|
|
surt
|
|
« Reply #27362 on: July 20, 2014, 12:52:24 AM » |
|
Surely heightmap per "poof" plus z-buffer would be easier?
|
|
|
Logged
|
|
|
|
JobLeonard
|
|
« Reply #27363 on: July 20, 2014, 01:48:21 AM » |
|
Interesting method! More like a painter layering strokes.
|
|
|
Logged
|
|
|
|
Cranky
|
|
« Reply #27364 on: July 20, 2014, 02:55:59 AM » |
|
Okay! Each cloud is made of a random number of individual 'poofs' that were drawn by my artist. In total there are about 80 or so poofs (7 layers each). Here is a small sample: http://imgur.com/3kUfHCfThe poofs are all programmed into position using a 2D Array, then a couple loops draw the 7th column of every poof in the cloud formation. Then they draw the 6th column of all poofs, then the 5th and so on. The later something is drawn, the more on top it appear. So everything from the 7th column appears on the bottom layer, and the earlier columns appear higher. In fact, I was bored, so I decided to make a gif of how the cloud is drawn: In case your engine supports it: You can just use normal sprites for the poofs and you can achieve the same effect in 2 passes: first draw the poofs in solid black (for the silhouettes), then change srcblend to srccolor, destblend to destcolor and blendop to blendop_max (this chooses the max of srccolor and destcolor) and draw all the poofs again in their own color. Here is a quick test pic I did using your asset: This way darker colors won't be drawn over lighter colors and you achieve the same effect. You can also do this in reverse by doing blendop_min. The black silhouettes are needed just in case the background is lighter than the clouds you are trying to draw.
|
|
|
Logged
|
|
|
|
Raku
|
|
« Reply #27365 on: July 20, 2014, 03:41:21 AM » |
|
Those generated clouds are undoubtedly nice, but I'm really interested in that moon in the background and the whole background too. That's some nice dithering
|
|
|
Logged
|
|
|
|
joeyspacerocks
|
|
« Reply #27366 on: July 20, 2014, 09:52:00 AM » |
|
Zombie Monster isn't impressed by the Organ Support Machine ...
|
|
|
Logged
|
|
|
|
Thomas Finch
|
|
« Reply #27367 on: July 20, 2014, 10:04:15 AM » |
|
Surely heightmap per "poof" plus z-buffer would be easier?
In case your engine supports it: You can just use normal sprites for the poofs and you can achieve the same effect in 2 passes: first draw the poofs in solid black (for the silhouettes), then change srcblend to srccolor, destblend to destcolor and blendop to blendop_max (this chooses the max of srccolor and destcolor) and draw all the poofs again in their own color.
This way darker colors won't be drawn over lighter colors and you achieve the same effect. You can also do this in reverse by doing blendop_min. The black silhouettes are needed just in case the background is lighter than the clouds you are trying to draw.
Thank you for the advice guys but there is something I completely forgot to mention! When a cloud is created it draws all of those layers to a SURFACE, then I convert the surface into a sprite the size of the cloud. So every step, the only work the game is doing is drawing the new sprite. The game does not have to draw each individual layer of every poof every step. As such, your methods may still improve the creation code, but the difference will be negligible either way, because the creation code is already fast. I'll keep your advice in mind when I'm doing a performance pass later though. Interesting method! More like a painter layering strokes.
Those generated clouds are undoubtedly nice, but I'm really interested in that moon in the background and the whole background too. That's some nice dithering Thanks guys! I'm really proud of my artist.
|
|
|
Logged
|
|
|
|
Oleg Klishin
|
|
« Reply #27368 on: July 20, 2014, 12:02:59 PM » |
|
Piece I made for a space-themed competition on .pixel community on vk.com. I'm happy to tell that I took the first place with it.
|
|
|
Logged
|
|
|
|
Raku
|
|
« Reply #27369 on: July 20, 2014, 03:34:09 PM » |
|
Piece I made for a space-themed competition on .pixel community on vk.com. I'm happy to tell that I took the first place with it.
and you deserve it, holy cow. I can't get enough pixelized space scenes where the stars are blue, it's so nice! This whole scene is really remeniscent of the map screen in Starfox 2
|
|
|
Logged
|
|
|
|
Oleg Klishin
|
|
« Reply #27370 on: July 20, 2014, 03:42:42 PM » |
|
and you deserve it, holy cow. I can't get enough pixelized space scenes where the stars are blue, it's so nice! This whole scene is really remeniscent of the map screen in Starfox 2
Thanks a lot. Well, I googled some space pixels for refs, but never ran into Starfox screenshots. It really resembles map screen you are right. Sadly I never played Starfox myself.
|
|
|
Logged
|
|
|
|
|
SolarLune
|
|
« Reply #27372 on: July 20, 2014, 10:31:35 PM » |
|
Piece I made for a space-themed competition on .pixel community on vk.com. I'm happy to tell that I took the first place with it.
This is awesome, indeed. Great, great colors.
|
|
|
Logged
|
|
|
|
Raku
|
|
« Reply #27373 on: July 20, 2014, 11:49:10 PM » |
|
little gun man
|
|
|
Logged
|
|
|
|
Oleg Klishin
|
|
« Reply #27374 on: July 21, 2014, 01:32:56 AM » |
|
Thamk you all for the feedback, I think I exceeded my own expectations with this one.
|
|
|
Logged
|
|
|
|
SolarLune
|
|
« Reply #27375 on: July 21, 2014, 11:11:01 AM » |
|
little gun man
That's pretty cool, but it's a bit tough to read. Maybe you should separate his limbs out more-so from his body to make it easier to see his pose and individual elements.
|
|
|
Logged
|
|
|
|
JobLeonard
|
|
« Reply #27376 on: July 21, 2014, 11:59:52 AM » |
|
Hi everyone! I've been working on this for an art test for a game. Was looking for any feedback maybe. I picture this being some sort of dungeon and the creature being this boar skull with an ax and a poison gas aura around him! I like the look of it, but the walking animation is a bit odd: first he pushes himself forward with his left arm (right from our point of view), then he lifts up the axe handle. My gut feeling says this should happen at (almost) the same time, not sequentially. Barring that weird split the rest of the animation looks good to me.
|
|
« Last Edit: July 21, 2014, 09:47:12 PM by JobLeonard »
|
Logged
|
|
|
|
framk
Level 2
I don't know anything
|
|
« Reply #27377 on: July 21, 2014, 12:49:15 PM » |
|
It actually makes sense. I'm assuming the gameobject would be moving during the part where the arm slides back, making it appear stationary in a specific position. It's hard to explain, but to me the cycle makes total sense.
|
|
|
Logged
|
|
|
|
Blambo
Guest
|
|
« Reply #27378 on: July 21, 2014, 01:01:13 PM » |
|
ye the right arms the one pushing the body forward
|
|
|
Logged
|
|
|
|
Miguelito
|
|
« Reply #27379 on: July 21, 2014, 04:12:35 PM » |
|
Although I'm not finding any time to do private stuff at the moment, I really wanted to do a style test for a possible private project. Sometime in the future. I think you can even see veeeeeeeeery subtle art indications that I started playing Persona 4 Golden if you know what to look for.
|
|
|
Logged
|
(← new art twitter)
|
|
|
|