Any way to do proper decaling in irrlicht?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
RapchikProgrammer
Posts: 279
Joined: Fri Dec 24, 2004 6:37 pm

Any way to do proper decaling in irrlicht?

Post by RapchikProgrammer »

Hey, is dere anyway to do proper decaling in irrlicht? I mean there is a decal scene node but all it does is make a quad and apply a texture on it which is useless for curvy objects or even corners of walls! So is there any proper way of using decals?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

I used a billboard in my game, for bullet explosions, intially i had the explosion quite big which meant the billboard would disappear through part of the wall most of the time due to the billboard rotating to face the camera, but then i made it sufficently small so that it didn't get partially hidden by the wall, or it's at least not noticeable.

That's probably not much use to you... But that's all i know!
Image Image Image
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Projected textures
mandrav
Posts: 117
Joined: Sat Aug 27, 2005 8:29 pm
Contact:

Re: Any way to do proper decaling in irrlicht?

Post by mandrav »

RapchikProgrammer wrote:Hey, is dere anyway to do proper decaling in irrlicht?
vitek wrote:Projected textures
I think he asked how to do it in Irrlicht...
esaptonor
Posts: 145
Joined: Sat May 06, 2006 11:59 pm

Post by esaptonor »

I have no idea what this is, could someone perhaps explain how this is achieved so that we can try and implement it in irrlicht?
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

A decal is a texture which is put on top of an already textured mesh without replacing or hiding all of the original texture. So it's usually used to add small changes to the original textures, e.g. for adding bullet holes or add visual hints.
Projected textures can be thought of as slides being projected to the scene. You define the position of the projector and the texture is put visually correct onto arbitrary surfaces. But this requires some calculations and matrix manipulations. Due to the additional informations required it would be probably best to implement it as a TextureProjectorSceneNode.
BTW: Google shoudl bring up very useful links on both topics :wink:
RapchikProgrammer
Posts: 279
Joined: Fri Dec 24, 2004 6:37 pm

Post by RapchikProgrammer »

This is a major feature missing from irrlicht, and i myself aint so good a programmer that i wud be able to implement it with ease, so if any of you irrlicht improvers or niko the head of all the improvers wud lik to do somethin about this it wud be really gr8 for the community
Post Reply