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.

Shadow Mapping Example for OpenGL

Postby mongoose7 » Wed Aug 05, 2015 10:15 am

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.
mongoose7
 
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Shadow Mapping Example for OpenGL

Postby BirdaoGwra » Sun Jan 31, 2016 11:23 am

What version of irrlicht did you used? It seems like 1.8.1 is missing some functions?
BirdaoGwra
 
Posts: 11
Joined: Sat Jan 30, 2016 5:47 am

Re: Shadow Mapping Example for OpenGL

Postby mongoose7 » Sun Jan 31, 2016 4:53 pm

You defined IRRLICHT18?

What is the linker output?
mongoose7
 
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Shadow Mapping Example for OpenGL

Postby BirdaoGwra » Mon Feb 01, 2016 4:20 pm

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.
BirdaoGwra
 
Posts: 11
Joined: Sat Jan 30, 2016 5:47 am

Re: Shadow Mapping Example for OpenGL

Postby mongoose7 » Tue Feb 02, 2016 2:25 am

I believe I used 1.8.1. However the trunk version I have (4988) has it renamed to 'setCurrentRenderPass'.
mongoose7
 
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Shadow Mapping Example for OpenGL

Postby BirdaoGwra » Tue Feb 02, 2016 6:13 am

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?
BirdaoGwra
 
Posts: 11
Joined: Sat Jan 30, 2016 5:47 am

Re: Shadow Mapping Example for OpenGL

Postby CuteAlien » Tue Feb 02, 2016 9:47 am

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.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8365
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Shadow Mapping Example for OpenGL

Postby BirdaoGwra » Tue Feb 02, 2016 2:19 pm

Thank you, will download and compile it.
BirdaoGwra
 
Posts: 11
Joined: Sat Jan 30, 2016 5:47 am

Re: Shadow Mapping Example for OpenGL

Postby mongoose7 » Wed Feb 03, 2016 3:52 am

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.
mongoose7
 
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Shadow Mapping Example for OpenGL

Postby BirdaoGwra » Wed Feb 03, 2016 4:28 am

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 -
cpp Code: Select all
setCurrentRenderPass()

Image
BirdaoGwra
 
Posts: 11
Joined: Sat Jan 30, 2016 5:47 am


Return to Code Snippets

Who is online

Users browsing this forum: No registered users and 1 guest