Page 10 of 56

XEffects Reloaded + Irrlicht 1.5

Posted: Thu Jan 15, 2009 9:57 pm
by porcus
Hello,

today I tried to use XEffects Reloaded with Irrlicht 1.5 but I get only
a black screen and some error messages:
createRenderTargetTexture is deprecated, use addRenderTargetTexture instead
FBO missing an image attachment
FBO error
FBO incomplete
createRenderTargetTexture is deprecated, use addRenderTargetTexture instead
FBO missing an image attachment
FBO error
FBO incomplete
createRenderTargetTexture is deprecated, use addRenderTargetTexture instead
FBO missing an image attachment
FBO error
FBO incomplete
createRenderTargetTexture is deprecated, use addRenderTargetTexture instead
FBO missing an image attachment
FBO error
FBO incomplete
The binaries are working. This error appears only if I try
to use it with Irrlicht 1.5 .

Can anybody help me?

Posted: Fri Jan 16, 2009 12:15 am
by FuzzYspo0N
You would need to give more then that for help. The first error is simply a warning,to rename a function in the code. And the fbo error appears to be coming from your graphics card capability thingy.

What card is it,what pc and what os? Which driver were you using ? Directx or opengl?

All these things help see the problem.

Posted: Fri Jan 16, 2009 2:38 am
by BlindSide
Does this happen even when using a shadow map AND screenRTT resolution of only 512x512? (With a window size that's bigger than 512x512 of course).

Posted: Fri Jan 16, 2009 9:34 pm
by porcus
EDIT: That's very strange, I didn't change anything but suddenly it works.
I dont't know why but it works and so I'm satisfied :D :D :D

Posted: Sat Jan 17, 2009 3:16 am
by skumar
createRenderTarget is depricated and from 1.5 its addRenderTarget() so edit the code for this...

-

Posted: Sat Jan 17, 2009 8:49 pm
by 9YkKsvXM
-

Posted: Sat Jan 17, 2009 9:16 pm
by porcus
Hi,

Today I played a little bit around and I tried to use a node without any
shadows and ligting on it, while the rest of the scene has shadows and
lighting. The problem is, that the one node, which should be without shadow
and lighting, is now transparent :?: and lighting is applied although I never
added the node via addShadowToNode.

Here's a screenshot:
Image

Posted: Sun Jan 18, 2009 3:45 am
by BlindSide
porcus wrote:Hi,

Today I played a little bit around and I tried to use a node without any
shadows and ligting on it, while the rest of the scene has shadows and
lighting. The problem is, that the one node, which should be without shadow
and lighting, is now transparent :?: and lighting is applied although I never
added the node via addShadowToNode.

Here's a screenshot:
Image
You have to add it using addShadowToNode using ESM_NONE. This will add it but not make it cast or receive shadows.

Posted: Sun Jan 18, 2009 3:46 am
by BlindSide
Nate_D wrote:Having slight problems getting this to compile...

I have tried using irrlicht versions

1.3.1
1.4.2
1.5

i get several errors from my compiler saying...

'class irr::videoSMaterial' has no member named 'getTexture'
'class irr::videoSMaterial' has no member named 'TextureLayer'
'class irr::videoSMaterial' has no member named 'setTexture'

all of the header files are included, and cpp files are part of the project, any ideas why i might be getting this error?
It looks like you are accidentally typing irr::videoSMaterial instead of irr::video::SMaterial. Find those occurances and replace them.

Posted: Sun Jan 18, 2009 5:09 pm
by 9YkKsvXM
-

Posted: Mon Jan 19, 2009 8:00 pm
by porcus
You have to add it using addShadowToNode using ESM_NONE. This will add it but not make it cast or receive shadows.
There's nothing called ESM_NONE. There's only ESM_BOTH, ESM_CAST
and ESM_RECEIVE available. Of course I could use ESM_RECEIVE
but I don't want to have any shadows on that node. Only on the rest of
the scene.

Posted: Mon Jan 19, 2009 9:01 pm
by sudi
well then either use ESM_CAST so it only casts a shadow or simply don't add the scenenode to xeffects.......

Posted: Tue Jan 20, 2009 2:03 am
by BlindSide
porcus wrote:
You have to add it using addShadowToNode using ESM_NONE. This will add it but not make it cast or receive shadows.
There's nothing called ESM_NONE. There's only ESM_BOTH, ESM_CAST
and ESM_RECEIVE available. Of course I could use ESM_RECEIVE
but I don't want to have any shadows on that node. Only on the rest of
the scene.
Haha you're absolutely right, there is no ESM_NONE. I'll have to remember to add this in the next release. I'm afraid ESM_CAST is the only solution right now, but it will still cast shadows on the rest of the scene. It will not be trivial to add this yourself in the meantime, first add ESM_NONE to the enums, then look for the places where it checks for ESM_CAST (To disable shadowing on the node) and where it checks for ESM_RECEIVE (To stop the node from casting shadows), then make it check for both ESM_CAST or ESM_NONE (Or ESM_RECEIVE or ESM_NONE).
Nate_D wrote:I accidentally typed that into the forum wrong, i checked and they all say what they are supposed to. I am just trying to compile the first example that comes with xeffects reloaded, but then it finds all of those errors in the code... when I open the SMaterial file, it shows all three of those functions existing but for some reason it is not calling them...
It looks like you are still using the header files for Irrlicht 1.3.1, as these functions were added around 1.4 and later.

Cheers

Posted: Fri Jan 23, 2009 1:42 am
by 9YkKsvXM
-

Posted: Fri Jan 23, 2009 3:21 am
by BlindSide
Theres no reason I can think of why it would crash. Make sure you are using the correct dll/libs etc for everything. Telling me it crashes at runtime doesn't really help, try using the debugger to find the specific line of code it chokes on.

Also, getVendorInfo() is part of Irrlicht 1.5, so I'm not sure what error you encountered there?