BleakProspects
|
|
« Reply #60 on: September 02, 2012, 08:33:09 PM » |
|
Added sand and started experimenting with shore foam.
|
|
|
Logged
|
|
|
|
Swaggermuffin
Level 1
|
|
« Reply #61 on: September 02, 2012, 08:37:18 PM » |
|
Added sand and started experimenting with shore foam.
And the world was made more beautiful for it. I really want to see all of this in motion.
|
|
|
Logged
|
|
|
|
Tueman
|
|
« Reply #62 on: September 03, 2012, 06:37:44 AM » |
|
O_o It looks so amazing...
|
|
|
Logged
|
|
|
|
emacs
|
|
« Reply #63 on: September 03, 2012, 12:48:34 PM » |
|
Looks great, I'll definitely be keeping an eye on this.
|
|
|
Logged
|
|
|
|
zalzane
|
|
« Reply #64 on: September 03, 2012, 12:51:51 PM » |
|
y'know if I didnt know any better, I'd think you had already completed the game and were only now publishing the devlogs on a regular interval to drum up interest in your game.
|
|
|
Logged
|
|
|
|
Quarry
|
|
« Reply #65 on: September 03, 2012, 01:19:07 PM » |
|
That's so
|
|
|
Logged
|
|
|
|
zalzane
|
|
« Reply #66 on: September 03, 2012, 01:26:46 PM » |
|
Yeah, but it makes excellent sense from a business perspective.
|
|
|
Logged
|
|
|
|
errik
|
|
« Reply #67 on: September 04, 2012, 07:19:36 AM » |
|
Just found this and gotta say it looks very nice Keep up the good work!
|
|
|
Logged
|
|
|
|
Pineapple
|
|
« Reply #68 on: September 04, 2012, 09:40:28 AM » |
|
I love you
|
|
|
Logged
|
|
|
|
BleakProspects
|
|
« Reply #69 on: September 04, 2012, 03:56:08 PM » |
|
When the total water level is just one unit high, it now draws a puddle instead of filling the entire square with water (this is done by the shader): As a side note, my performance is now horrible. I get like 5 FPS in debug mode, and ~40 FPS in Release mode (was previously getting >60 on both). The water shader requires me to render the scene 4 times in total. I need to optimize, but I will also provide options to disable portions or all of the water shader for people with worse video cards.
|
|
|
Logged
|
|
|
|
Tueman
|
|
« Reply #70 on: September 04, 2012, 04:21:51 PM » |
|
Looking good as always!
|
|
|
Logged
|
|
|
|
Quarry
|
|
« Reply #71 on: September 04, 2012, 04:36:54 PM » |
|
Shaders are really not required, just keep the half transparent water texture
|
|
|
Logged
|
|
|
|
emacs
|
|
« Reply #72 on: September 06, 2012, 03:56:57 PM » |
|
That puddle is a nice touch, but if it hurts performance that much, perhaps you could instead change it to a 2D overlay or something.
|
|
|
Logged
|
|
|
|
Chris Pavia
Guest
|
|
« Reply #73 on: September 06, 2012, 06:05:53 PM » |
|
Shaders are like the One Ring, once you've used them they are impossible to resist.
|
|
|
Logged
|
|
|
|
BleakProspects
|
|
« Reply #74 on: September 07, 2012, 02:04:25 PM » |
|
3D water simulation was confusing me a bit, and I was running into bugs with other aspects of the engine, like chunk boundaries -- and I couldn't separate bugs from implementation problems. So, I made this little 2D test bed thing to develop water flow algorithms: http://www.openprocessing.org/sketch/69146Soon, this sort of algorithm will be in the game. Not quite yet happy with it, as water on the surface flies around like crazy, and there isn't yet a pressure model.
|
|
|
Logged
|
|
|
|
Kinasin
|
|
« Reply #75 on: September 07, 2012, 05:38:12 PM » |
|
Looks fucking sick
|
|
|
Logged
|
|
|
|
Dementor561
|
|
« Reply #76 on: September 07, 2012, 07:10:03 PM » |
|
This looks fantastic I wish I could play it.
|
|
|
Logged
|
|
|
|
BleakProspects
|
|
« Reply #77 on: September 07, 2012, 07:47:35 PM » |
|
Got some kind of dynamic water thing working which seems semi-reasonable. I will post a video of it tomorrow.
Also spent a lot of time profiling. Turns out water rendering isn't hugely expensive. What's hugely expensive is rendering all the little sprites (dwarves + trees) 3 times for the reflections and refractions. Why would that be? Well, there were two major problems: first, I was accidentally frustrum culling for every single entity one at a time instead of in batch using the octree. Second, my frustrum culling wasn't actually doing anything, so sprites were getting rendered even when invisible. Those two things were taking up about 40 percent of the performance. Third, resetting the sprites' color is much more expensive than I thought (have to send a new VBO to the graphics card for that), which took up about 25 percent of the performance per frame.
So all in all I was spending like 65% of my time doing unnecessary things to render trees! Removing those gives me a huge performance boost. In release mode I usually get 60 FPS now again, but in debug mode it's still around 40. Pretty acceptable.
I will have to come up with a more clever way of doing lighting of things -- I will probably implement a shader which takes the light as a parameter for the simple sprite objects. This will also make day/night lighting much easier, as I can pass in a parameter for the time of day. (Pretty sure that's how notch does it anyway)
|
|
|
Logged
|
|
|
|
BleakProspects
|
|
« Reply #78 on: September 07, 2012, 09:15:04 PM » |
|
The beginnings of dynamic day/night lighting using a custom pixel shader:
|
|
|
Logged
|
|
|
|
SolarLune
|
|
« Reply #79 on: September 07, 2012, 11:56:35 PM » |
|
Nice. Good-looking effect. Maybe more of a blue tint for night-time would look nice. Otherwise, keep it up!
|
|
|
Logged
|
|
|
|
|