Live data from Hacker News

WebGL Terrain Flyover Demo

zephyrosanemos.com

21–30 of 121 posts

Re: WebGL Terrain Flyover Demo

#21
post #16

Very cool. Are you using occlusion queries for the lens flare sprite? This something I implemented recently in my engine. Eventually I want to do something like this... http://john-chapman-graphics.blogspot.com/2013/02/pseudo-len...

Thank you! I didn't have time to implement image-space occlusion queries, plus I wasn't sure of the level of support they have on mobile hardware (not that this demo will run on anything mobile for the time being :)). I'm shooting a grid of rays through the terrain instead (see relevant screenshots), using various techniques to accelerate that.

The result is used for modulating the intensity of both the lens flares layer and the glare layer.

Nice article!

Re: WebGL Terrain Flyover Demo

#22
post #9
post #6

Looks nice but runs at awfully slow 4-5 fps on my Ubuntu 64bit system. Is Radeon HD 4200 to weak for WebGL or is there something you need to configure?

I think it's an issue with hardware acceleration on Linux :(

JustFYI, I'm getting an excellent 40fps-70fps. Thinkpad E420 (intel GPU) running 64bit Linux Mint 14

$ uname -a Linux XX 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Re: WebGL Terrain Flyover Demo

#23
post #19
post #16

Very cool. Are you using occlusion queries for the lens flare sprite? This something I implemented recently in my engine. Eventually I want to do something like this... http://john-chapman-graphics.blogspot.com/2013/02/pseudo-len...

> lens flare is ubiquitous in photography, hence its absence in a computer generated images can be conspicuous wait, what? Lens flare is not common in photography.

Maybe he meant videography. A game engine is more like a virtual video camera anyways (depending on who you ask...some people think it should be more like a person's eye, with no lens/camera artifacts).

Re: WebGL Terrain Flyover Demo

#24
post #14

Simply delightful. I spent a good amount of time flying through the terrain attempting to avoid the mountains. Thank you!

You can accelerate by pressing the down arrow key and even overwhelm the tile prefetcher by pressing the 'O' key and accelerating even further (this is not a very publicized fact due to bandwidth concerns :)).

Thanks for the kind words!

Re: WebGL Terrain Flyover Demo

#25
post #6

Looks nice but runs at awfully slow 4-5 fps on my Ubuntu 64bit system. Is Radeon HD 4200 to weak for WebGL or is there something you need to configure?

I'm getting 40fps on a 2012 Macbook Air using Chrome so I doubt its a lack of GPU power, more likely an issue with drivers and/or the compositor.

Re: WebGL Terrain Flyover Demo

#27
post #6

Looks nice but runs at awfully slow 4-5 fps on my Ubuntu 64bit system. Is Radeon HD 4200 to weak for WebGL or is there something you need to configure?

Runs pretty well on my Ubuntu 12.10 32bit laptop FWIW. Took me a while to get the drivers right but now most WebGL is snappy.

Re: WebGL Terrain Flyover Demo

#28
Cool demo. What caught my attention was this line in the description:

>The terrain is procedural, generated offline by a Delphi program (Delphi is a modern version of Pascal).

Nowadays I very rarely see new projects use Object Pascal or Delphi. This is somewhat disappointing since I think it really is a fine language that could be a viable alternative to C++ and Java due to its combination of high performance and clean syntax [1]. But then again, C# is very popular and it is pretty much the new Delphi.

Does anyone here use Object Pascal in their current projects?

[1] At least in theory. I'm not necessarily talking about the particulars of the Borland/CodeGear/Embarcadero implementation since Anders Hejlsberg left for Microsoft, which were not always perfect.

Re: WebGL Terrain Flyover Demo

#30
post #22
post #9

Earlier quoted context omitted.

I think it's an issue with hardware acceleration on Linux :(

JustFYI, I'm getting an excellent 40fps-70fps. Thinkpad E420 (intel GPU) running 64bit Linux Mint 14 $ uname -a Linux XX 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Did you install specific drivers for it? I'm using a Thinkpad T420 with xubuntu and i only got 12-13 fps in Chrome 24.0.1312.52.

edit: Ok, I figured it out, it's because I used an external 1920*y display, if I resize the window it gets faster.

Post reply on HN