baking programaticaly

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
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

baking programaticaly

Post by pera »

is it possible to bake shadows on texture using irrlicht api?

edit: more explanation, i have level created and loaded in irrlicht. directional light is added to the scene, now that level is finished, i realized that static models like houses and trees are not casting shadow on the grass. i don't want to add volume shadows because they are too demanding, but i want to bake shadows onto landscape and have this texture saved.
codetiger
Posts: 103
Joined: Wed May 02, 2012 9:24 am
Location: Chennai, India
Contact:

Re: baking programaticaly

Post by codetiger »

You can generate shadow maps for static objects once and use it in all frames.
IrrNaCl - Irrlicht Port for Google Chrome Native Client - Demo

Iyan 3D - Make your own 3d animation using your iOS Device
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Re: baking programaticaly

Post by pera »

how?
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Re: baking programaticaly

Post by greenya »

You talk about 2 different things: pera asks how to generate this type of textures and codetiger says that it is possible to use.
Well, yes you can use lightmaps.
And no, there is no automatically generating of them build-in Irrlicht. You can write your own algorithm to write image and use it as a texture. Or you can use 3rd party applications for that. But answering on your direct question: is it possible to bake shadows on texture using irrlicht api? -- No.
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Re: baking programaticaly

Post by pera »

how do i generate shadow maps for static objects once and use it in all frames?
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Re: baking programaticaly

Post by greenya »

IrrEdit ( http://www.ambiera.com/irredit/ ) can generate lightmaps.
Post Reply