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 .
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?
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.
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:
You have to add it using addShadowToNode using ESM_NONE. This will add it but not make it cast or receive shadows.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
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.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
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.
well then either use ESM_CAST so it only casts a shadow or simply don't add the scenenode to xeffects.......
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.
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
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
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?
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net