Shadow Mapping Example for OpenGL

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Shadow Mapping Example for OpenGL

Post by mongoose7 »

Here it is.

https://www.dropbox.com/s/rvaquzhg7u2s6pb/SMF.zip?dl=0

The example draws one solid cube and three transparent ones. If compiling for 1.8.1 you will need -DIRRLICHT18.

Image

Thanks to BlindSide for XEffects.
BirdaoGwra
Posts: 11
Joined: Sat Jan 30, 2016 5:47 am

Re: Shadow Mapping Example for OpenGL

Post by BirdaoGwra »

What version of irrlicht did you used? It seems like 1.8.1 is missing some functions?
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Shadow Mapping Example for OpenGL

Post by mongoose7 »

You defined IRRLICHT18?

What is the linker output?
BirdaoGwra
Posts: 11
Joined: Sat Jan 30, 2016 5:47 am

Re: Shadow Mapping Example for OpenGL

Post by BirdaoGwra »

If I define I get this error -
smf.cpp:697:9: error: 'class irr::scene::ISceneManager' has no member named 'setCurrentRendertime'
If I don't, I am getting bunch of error.
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Shadow Mapping Example for OpenGL

Post by mongoose7 »

I believe I used 1.8.1. However the trunk version I have (4988) has it renamed to 'setCurrentRenderPass'.
BirdaoGwra
Posts: 11
Joined: Sat Jan 30, 2016 5:47 am

Re: Shadow Mapping Example for OpenGL

Post by BirdaoGwra »

I never browsed irrlicht svn so no idea where to find it. Could you kindly provide me the link please. Or, is this function available in 1.8.3?
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Shadow Mapping Example for OpenGL

Post by CuteAlien »

You find the svn adddress here: http://sourceforge.net/p/irrlicht/code/HEAD/tree/
You need a svn client (subversion on Linux or TortoiseSvn on Windows for example).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
BirdaoGwra
Posts: 11
Joined: Sat Jan 30, 2016 5:47 am

Re: Shadow Mapping Example for OpenGL

Post by BirdaoGwra »

Thank you, will download and compile it.
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Shadow Mapping Example for OpenGL

Post by mongoose7 »

Are you using 1.8.3? Why don't you just look in ISceneManager.h and see if it has been changed to setCurrentRenderPass there.
BirdaoGwra
Posts: 11
Joined: Sat Jan 30, 2016 5:47 am

Re: Shadow Mapping Example for OpenGL

Post by BirdaoGwra »

No, I am using 1.8.1. I asked because, if that function is added in 1.8.3 then I will download that version since I did not know the irrlicht svn location. I have downloaded from svn. I will built it today.

EDIT: I think it was renamed to -

Code: Select all

setCurrentRenderPass()
Image
Post Reply