Post your Irrlicht gameplay video here

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Re: Post your Irrlicht gameplay video here

Post by greenya »

No shaders, that is something which i'm looking forward to learn, but in this example - no shaders. Indeed, it works with both software renderers and Direct3D8 only, don't know why Direct3D9 not works :? , somehow it renders about a half of the screen tiles and crashes with texture locking. (and of cause it doesn't work with OpenGL at all, cause it is not thread-safe).

There are 10 threads in this demo (9 of them dynamically starts and exists (or aborts)):

+ main thread where actually created device and running it
  1. - here we call Generate() any time we want to regenerate fractal view, it aborts 1+8 threads if needed, calculates new fractal window for each tile, marks each tile as "not ready" and start new tile manager thread;
    - here we call DrawAll() for fractal, it draws all tiles which are ready);
+ tile manager thread (watches for tile generator threads, when there is free one - loads it with next tile to generate);
+ 8 single tile generator threads (each one generates a small tile: locks texture, generates, ready to be aborted anytime and unlock texture at "finally" "try-catch"s part /* this is important */);

On my i7 it loads CPU on 100% while generating tiles. Each tile is 64x64 texture. Tiles created once and sorted in the way: who is closer to the center of the screen - goes first /* after this invention, fractal browsing became much more comfortable (before this, i generated all from left to right and from top to bottom - quite boring) */. All the calculation is done using "double" type, it gives a bit more ability to zoom-in in comparison to "float". Also I don't clear the background in driver.BeginScene(), that adds some smooth and also some traces when you move.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Post your Irrlicht gameplay video here

Post by hybrid »

Could you use another soundtrack, youtube won't play this in Germany :-(
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Re: Post your Irrlicht gameplay video here

Post by greenya »

Yeah, didn't noticed that before.
Changed the track for last two videos...
Well, now video has a bit another mood, but fractal generation still multi-threaded 8)
Mel
Competition winner
Posts: 2293
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Post your Irrlicht gameplay video here

Post by Mel »

Looks very nice :)

f** off shaders and video cards! :lol:
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Post your Irrlicht gameplay video here

Post by hendu »

They did fractals in shaders on dx8 already, going back to cpu now feels a bit backwards :P
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Re: Post your Irrlicht gameplay video here

Post by greenya »

Well, i like multi-threading a lot. I feel like i can use all the power of modern cpu, which is impossible using single thread and you don't see any speed up on very fast cpus. Good about Mandelbrot set is that it is very easy to implement parallel computing, since each single pixel gets calculated separately and even the order doesn't matter. But yes, i believe in shaders it is not hard to implement at all, all the algorithm consists of loops and simple math... the only thing is to pass into shader set of arguments.

P.S.: maybe someday i will do it on shaders :)
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Post your Irrlicht gameplay video here

Post by REDDemon »

I like fractals :) *thumbs up*
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Re: Post your Irrlicht gameplay video here

Post by greenya »

One more small video using Irrlicht Lime:
http://www.youtube.com/watch?v=wNsVmyvJsQM
An implementation of simplified A* pathfinding algorithm.
Granyte
Posts: 849
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Post your Irrlicht gameplay video here

Post by Granyte »

Here we go an entire procedural galaxy generated on the fly

http://www.youtube.com/watch?v=wbNGoUSjY6I

the current star count should be around 250 billion
Mel
Competition winner
Posts: 2293
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Post your Irrlicht gameplay video here

Post by Mel »

Nice... but the Kenny G. music XDDDD
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Granyte
Posts: 849
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Post your Irrlicht gameplay video here

Post by Granyte »

i just could not resist putting it in background XD
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Post your Irrlicht gameplay video here

Post by hendu »

Hey, don't flak Guru Josh, that's good music :P
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Re: Post your Irrlicht gameplay video here

Post by greenya »

Generating eye-catching stuff with Irrlicht Lime:
http://www.youtube.com/watch?v=CH_F7nl-38Y
Mel
Competition winner
Posts: 2293
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Post your Irrlicht gameplay video here

Post by Mel »

Your music... *reads comments*... Is very nice... :lol:

Very cool effects :)
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Re: Post your Irrlicht gameplay video here

Post by greenya »

So, Mel, did you understand what you see and why you see what you see (what the generation pattern for the movement) ? :o)
Post Reply