Irrlicht and SilverLining SDK Sky and Cloud Integration?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
cooljayman
Posts: 22
Joined: Wed Mar 05, 2008 8:25 am

Irrlicht and SilverLining SDK Sky and Cloud Integration?

Post by cooljayman »

Hi, I was wondering if anyone has seen Silverlining sky and cloud renderer SDK. as I'm new to irrlicht Im not certain how difficult it would be to integrate this into irrlicht.

http://www.sundog-soft.com/

Cheers.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

That looks pretty cool, and from [utl=http://www.sundog-soft.com/Application% ... ing%20.htm]this[/url] page it doesn't look hard to implement, just set it up after the device has been created then after beginScene and before drawAll call beginFrame, then call drawAll, then call endFrame, then endScene and i guess it should work.

I wonder whether there would be difficulties with skyboxes or draw order of things, but i'm sure they're taken that into account when designing it.

I presume you're aware that it costs $1500 to use and the evaluation version only lets your game run for 2 minutes before forcing it to exit?
Image Image Image
cooljayman
Posts: 22
Joined: Wed Mar 05, 2008 8:25 am

Post by cooljayman »

Thanks JP, the thing is I already tried to implement it, and it compiles perfectly, and did exactly what you said, but on the atm->Initialize it seems to crash, Im not sure why. However from the first look it does seem fairly trivial to implement with Irrlicht. I would be great if someone else could have a go and see if we can get this going.

One more thing, in its documentation it says:
"By default, SilverLining also requires that you pass D3DPRESENTFLAG_LOCKABLE_BACKBUFFER in the D3DPRESENT_PARAMETERS that you pass into CreateDevice"
I'm not sure how to do this with Irrlicht, could this be the problem?

Cheers
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

cooljayman wrote:
"By default, SilverLining also requires that you pass D3DPRESENTFLAG_LOCKABLE_BACKBUFFER in the D3DPRESENT_PARAMETERS that you pass into CreateDevice"
I'm not sure how to do this with Irrlicht, could this be the problem?
Could be. It looks like you'll have to rebuild Irrlicht yourself and shoehorn that into CD3D9Driver::initDriver(). Are you OK with building it?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
cooljayman
Posts: 22
Joined: Wed Mar 05, 2008 8:25 am

Post by cooljayman »

Could be. It looks like you'll have to rebuild Irrlicht yourself and shoehorn that into CD3D9Driver::initDriver(). Are you OK with building it?
Thanks for the tip rogerborg, I'm fairly new to Irrlicht and haven't rebuild it yet. Also how exactly can I change InitDriver() to enable LOCKABLE_BACKBUFFER? It would be much appreciated if someone can show me how to do this.
cooljayman
Posts: 22
Joined: Wed Mar 05, 2008 8:25 am

Post by cooljayman »

Ok, I think I figured out where I need to make the change. I need to add the following to C3D9Driver.cpp

Code: Select all

ZeroMemory(&present, sizeof(present));

//This line just after ZeroMemory
present.Flags  = D3DPRESENTFLAG_LOCKABLE_BACKBUFFER;


I'm trying to rebuild irrlicht but have a some errors as follows


Code: Select all

1>c:\production\irrlich\irrlicht-1.4\source\irrlicht\CD3D9Texture.h(13) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory
1>CD3D9ShaderMaterialRenderer.cpp
1>c:\production\irrlich\irrlicht-1.4\source\irrlicht\CD3D9ShaderMaterialRenderer.h(12) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory
1>CD3D9ParallaxMapRenderer.cpp
1>c:\production\irrlich\irrlicht-1.4\source\irrlicht\CD3D9ParallaxMapRenderer.h(12) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory
1>Compiling...
1>CD3D9NormalMapRenderer.cpp
1>c:\production\irrlich\irrlicht-1.4\source\irrlicht\CD3D9NormalMapRenderer.h(12) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory
1>CD3D9HLSLMaterialRenderer.cpp
1>c:\production\irrlich\irrlicht-1.4\source\irrlicht\CD3D9ShaderMaterialRenderer.h(12) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory
1>CD3D9Driver.cpp
1>c:\production\irrlich\irrlicht-1.4\source\irrlicht\CD3D9Driver.h(19) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory


c:\production\irrlich\irrlicht-1.4\source\irrlicht\CD3D8Texture.h(13) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
1>CD3D8ShaderMaterialRenderer.cpp
1>c:\production\irrlich\irrlicht-1.4\source\irrlicht\CD3D8ShaderMaterialRenderer.h(12) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
1>CD3D8ParallaxMapRenderer.cpp
1>c:\production\irrlich\irrlicht-1.4\source\irrlicht\CD3D8ParallaxMapRenderer.h(12) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
1>CD3D8NormalMapRenderer.cpp
1>c:\production\irrlich\irrlicht-1.4\source\irrlicht\CD3D8NormalMapRenderer.h(12) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
1>CD3D8Driver.cpp
1>c:\production\irrlich\irrlicht-1.4\source\irrlicht\CD3D8Driver.h(25) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
Is it looking for direct3d sdk?

I just need to make a new irrlicht.dll where I can set the lockable buffer
night_hawk
Posts: 153
Joined: Mon Mar 03, 2008 8:42 am
Location: Suceava - Romania
Contact:

Post by night_hawk »

You will need to have the DirectX SDK installed and properly set up in your IDE :D
cooljayman
Posts: 22
Joined: Wed Mar 05, 2008 8:25 am

Post by cooljayman »

which version of directX SDK? link?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

There should be a flag somewhere in the irrlicht headers allowing you to not use the DX stuff (if you're happy just using OpenGL), no idea where it would be though!
Image Image Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You can disable it in IrrCompileConfig.h, DirectX8 is already disabled by default. Just comment out the DX9 define.
The DX SDK is easily found at microsoft by using google or directly going to microsoft.com
doqkhanh
Posts: 158
Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan
Contact:

Post by doqkhanh »

cooljayman wrote:which version of directX SDK? link?
DirectX SDK - March 2008
http://go.microsoft.com/fwlink/?LinkID= ... lcid=0x409

Try search yourself :shock:
Post Reply