Sprite effect needed

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
MolokoTheMole
Posts: 109
Joined: Tue Jan 09, 2007 1:18 pm

Sprite effect needed

Post by MolokoTheMole »

I've asked for help before but I couldn't manage to do it.
What I need is a sprite effect using normal mapping. The effect can be explained and seen in this sample:

http://creators.xna.com/Headlines/devel ... ample.aspx

It uses Xna, if you don't want to install it, here's an avi I made of it:

effect uses Xvid codec

So I want this implemented in Irrlicht. If you provide me with a complete solution for this, I'm willing to pay money for it.
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

how much money?

I'm guessing you don't have enough.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Is that simply a normal-mapped billboard sprite?
It should be pretty easy to edit CBillboardSceneNode.cpp to use the EVT_TANGENTS vertex type and use the built-in bump/parallax map shader to get this effect. In fact, we should probably add a setVertexType method to IBillboardSceneNode for this purpose (and for lightmaps/detailmaps of course)
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
MolokoTheMole
Posts: 109
Joined: Tue Jan 09, 2007 1:18 pm

Post by MolokoTheMole »

how much money?
If you can prove you can do it, we'll talk about how much. I'm serious about this so don't worry.

bitplane:
I forgot to mention, I can't use EVT_TANGENTS cause I dynamically change the vertices and from what I know the tangents would need to be recalculated everytime.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

how do you change the vertices? is a billboard not appropriate? calculating the tangent and binormal isn't hard, just use the code from the mesh manipulator.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
MolokoTheMole
Posts: 109
Joined: Tue Jan 09, 2007 1:18 pm

Post by MolokoTheMole »

I got it working, thanks. Tangents aren't hard at all since it is 2D.
My next problem is proper alpha channel for the sprite and the bump map, any tips?
MolokoTheMole
Posts: 109
Joined: Tue Jan 09, 2007 1:18 pm

Post by MolokoTheMole »

I got alpha channel working.

Now what I'm struggling is rotating the sprite. The bump map doesn't work at all with rotations on xy plane.
Post Reply