XEffects - Reloaded - New Release (V 1.4)

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Ah ok, so the one at home STILL has problems but not on the ray tracing one, where as the ones at school have problems with all of them. The suggestion to use 512x512 should still apply to the ones at school in order to get the ray tracing example to run.

For the rest can you try search/replace ECF_G16R16F and ECF_G32R32F to ECF_A16B16G16R16F and ECF_A32B32G32R32F in EffectHandler.cpp?

Cheers
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

ok thanks, i have to leave right now so i'll try it tomorrow and get back to you.
multum in parvo
Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

Thanks Blindside everything seems to be working now :D
multum in parvo
Escen
Competition winner
Posts: 167
Joined: Sun Jul 19, 2009 11:27 am
Location: the Netherlands
Contact:

Post by Escen »

Thanks BlindSide, Looks awesome I'm Very Happy. :)

But I have one question...

I'm also using CGrassPatchSceneNodes and those are not showing.

How can I make theme alive again?
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post by Mel »

Adler1337 wrote:I've passed much larger values to my graphics card and it worked fine before, but anyways i tried 512 and it still errors.
I got something similar using the example for RTT's (example 13) and OpenGL. It could happen, perhaps that the drivers for the videocard are a bit outdated?

DX went fine, but OpenGL had exactly that FBO incomplete error, when i updated the drivers, and got OpenGL 3, things went fine :)
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

DX went fine, but OpenGL had exactly that FBO incomplete error, when i updated the drivers, and got OpenGL 3, things went fine
Thanks, i'll check for updated drivers and newer opengl, but everything works when i replaced ECF_G16R16F and ECF_G32R32F to ECF_A16B16G16R16F and ECF_A32B32G32R32F in EffectHandler.cpp
multum in parvo
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Post by 3DModelerMan »

I'm getting nothing but errors trying to run even just the demos. I'm trying to use DX9 because my computer doesn't support GLSL.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

You have an Intel card, 3DModelerMan? They report incorrect VS3.0 for some reason. You can try replace EVST_VS_3_0 with EVST_VS_2_0 in EffectHandler.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

Hi, Blindside.

I've downloaded the 1.3 release and checked the demos. This seem to be really powerfull. I would even propose that XEFFECT be merged with IRRlicht someday, since this add much power to the rendering.

Do you think there is a technique that could render shadow faster? I've got around 900+ FPS in the raytracing reflection example, and it drop below 90 in example 1-2, and around 120 with example 6 (Only 1 mesh). I have the equivalent of a sli setup (NVIDIA 9800GX2)

Will the FPS will drop even more, if I put say 20-30 characters in there? (counting only on shadow processing). From my understanding of the example, you need to define what mesh will produce shadow with the effect handler.

I would like to create medium sized maps with at least 20-30 NPC at the same time. Considering that I will need to add basic AI and other things (particles, input, audio, etc.) to the scene and would like to have at least 60+ FPS; The only thing I'm thinking now could do the trick is the old trick of texture projecting (small blurred circle texture projected at the NPC feet, from a ray collision test with the ground) that could keep the FPS up.

Or is there an alternative to have really fast shadows? (even imprecise, like LOD shadow process, as shadows in the distance are processed longer in time than the shadow that are near the observer)
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Shadow maps in general are mostly effected by the shadow map resolution and not so much the content of the scene. If you add another mesh to Example 6 I think you will find that the frame rate does not drop very much.

Also like you said you could make it so shadows only update at half or a third of the framerate. Currently XEffects renders 1 pass for the light's depth map, another pass for shadow maps, and then another pass for the actual scene which it merges with the shadow map pass.

The old XEffects only had 2 passes because it replaced the node's material type with a shadow map type that did shadows in the same pass but this restricted you from applying any materials you want to the nodes and made it difficult to have multiple lights. The reason example 1 and 2 are so slow is that they use multiple lights and this means many passes, you will need to think about how many lights you have in the map and the resolution if you want good performance.

Cheers
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
xDan
Competition winner
Posts: 673
Joined: Thu Mar 30, 2006 1:23 pm
Location: UK
Contact:

Post by xDan »

as usual, the *screenshots* look nice 8)

But not much works on my graphics card (ATI mobility radeon 9700). The first two kind of work on directx (although still shader compilation errors of some kind). With GL it seems the same as the last XEffects (as in screenshots I posted here)

3-6 don't work in either DX or GL. I guess that is to be expected with my graphics card, but I put the output here anyway: http://xzist.org/temp/xeffects/
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Post by 3DModelerMan »

Okay, now it says that there's too many instruction slots used, and that the maximum for 2_0 is 64.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

Nice job :D
You made it work shadow maps in screenspace i gave up on this but your way is actually pretty cool.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Post by ent1ty »

I'm having a strange bug - the ShadowLight moves when the camera moves/rotates. But only on one axis(i think it's x but not sure). I'm not manipulating with the light after it's creation. It happens with OGL and D3D9 both.
Here is the code used for creating the light, dont know if that helps:

Code: Select all

effect->addShadowLight(SShadowLight(512, vector3df(0, 150, 0), vector3df(0, 0, 0),
		SColor(0, 0, 0, 150), 0.0f, 1000.0f, 50.0f * DEGTORAD));
If this was already solved somewhere in this topic then I'm sorry but i really don't feel like reading through all the 27 pages :)

Oh, and I'm using the newest version.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

@xDan and 3DModellerman: Most effects aren't supported on SM 2.0 cards. The most you'll get is standard shadow mapping without any filtering. If using this in an application I recommend that you have these effects optional and only enable them when the graphics card can run them. xDan if you pay for shipping I can send you my old AGP Geforce 6200 which can run all the effects but its a bit slow and old. :P
Sudi wrote:Nice job :D
You made it work shadow maps in screenspace i gave up on this but your way is actually pretty cool.
No actually I still haven't but I thought about it yesterday, I might run some tests to test the performance vs usual method.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Post Reply