billboards and grass.Two sided lighting?

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
janw
Posts: 13
Joined: Wed Aug 11, 2010 2:23 pm

billboards and grass.Two sided lighting?

Post by janw »

I have used a billboard scene node for the grass in my game. This looks OK thought when I disable the lighting of the grass. The problem starts when I set EMF_LIGHTING to true. This is because the billboard reflects the light only from one side. Whenever the source of the light is in front of the camera, the side of the billboard which is facing the camera is black (the light is behind the billboard). How can I solve this? Is there any way to reflect the light on two sides of the billboard?
hbraun
Posts: 28
Joined: Tue Dec 16, 2008 7:33 pm
Location: Porto Alegre, Brazil
Contact:

Post by hbraun »

Edit:
Hi..I am not sure, but try disabling back face culling on material properties.

Cheers,

Braun

Sorry, I think I do not understood your problem, you are facing normal problems?
janw
Posts: 13
Joined: Wed Aug 11, 2010 2:23 pm

Post by janw »

Hi hbroun, I have tried it already - no change. Any other ideas?

just to show what I mean:

- the source of light is behind the camera

http://s1210.photobucket.com/albums/cc4 ... behind.jpg

- the source of the light in front of the camera

http://s1210.photobucket.com/albums/cc4 ... tfront.jpg
hbraun
Posts: 28
Joined: Tue Dec 16, 2008 7:33 pm
Location: Porto Alegre, Brazil
Contact:

Post by hbraun »

Nice screenshot :)

Maybe you should try a second material, like lightmap or normal for light calculation, I believe using only 4 vertex isnt enough hehe...
Post Reply