Some game effects, how can make it.

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Some game effects, how can make it.

Post by etcaptor »

Hi all,
I start this topic to discuss, how can implement some modern game techniques in Irrlicht game. Some ideas are welcome.

For example I saw in Doom 3 smoke and vapour effects and tried to make some similar with Irrlicht. That is particles right?
But when I 've trying smoke effect includes more then 3000 particles with small size I got very small FPS. Yes My PC runs on 800 mhz :wink:

Have someone made any good smoke and vapour effect with Irrlicht? Some screenshoots are welcome.
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Doom 3's smoke isn't done with particles, it's done using shaders.

Remember that Particles are just textured square billboards, so you essentially putting 3000 billboards * 2 triangles each = 6000 triangles * 3 vertices per triangle = 18000 vertices in a row for rendering.

When I do smoke and fire, I use fewer larger, more transparent particles. About 30 for a small campfire. The particles then need a lot of overlapping to really be visible and produce a decent effect.
Crud, how do I do this again?
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

@saigumi, thanks for reply.
I will search on the forum any topics for using of Irrlicht shaders. They still are on development stage, but maybe someone wrote some useful exampless.
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Moving clouds

Post by etcaptor »

Hi all,
I saw nice moving clouds effect in Torque.
Any ideas how can make some similar with Irrlicht?
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

Got a picture? We could work it from that.
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

I have not. Yesterday I saw this in game which was created from my friend. He uses Torque. He told, that clouds are made with several textures, but he use prepared inline engines scripts and can't explayn me well.

Will be very interest if we can implement good moving clouds in irrlicht.
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

Well, you could use some transparent images that move in the sky over each other. That is how smoke is done sometimes, they did it that way in Full Spec Warrior if you've played that.
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Thanks, but can you tell me what kind of node for these images must be used. Billboard?
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

Hmm, couldn't a TextureAnimator work for this? Animate every skyboxtexture with a few (10-20-100?) caustics textures of clouds (animations split up in separate files). If it then gets played after eachother you would see a smooth movement. I'll try this in the near future.
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Maybe I saw something like this.
Bal, when you finish with experiments, please put some screenshots here :)
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Hi, seems nobody is going to make games :wink: . I just wonder, why here nobody was presents your problems.

Well, the answer about moving clouds can be reached here
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=4724

Also with appropriate resizing of sky box can be reached nice fog effect for the sky.
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Here are some screenshots for example:

Image

Image

Image

You can playing with this to get better results
dawasw
Posts: 357
Joined: Tue Aug 10, 2004 4:39 pm
Location: Poland

Post by dawasw »

How to make moving clouds, any code please?
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

1. At first you must change one parameter in CSkyBoxSceneNode.cpp - see here how
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=4724

2. Ater that you must recompile irrlicht engine.

3. So, create of some sky box /just copy source from tehdemo if you are lazy/

4. Create animator for rotation with createRotationAnimator function and attach this animator to your SkyBoxSceneNode.

That is. If you have any difficulty with that, I can write some code about.

Here is another screenshot without fog:

Image

I use scaling for skybox 10*X, 3*Y, 10*Z and rotation by Y axis.
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Another idea - /clouds layers/:

Using of many sky boxes with different sizes. All internal sky boxes must have transparent flags. Also it's possible to add rotation animator for each box.

Here is screenshot with two animated skyboxes:

Image
Post Reply