Depth of Field ...

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Wow! What a complex shader, nice work sio2! :D
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

hey sio2 your demo works fine :)

but when trying to run this in my split screen (i commented out startscene, endscene and guidraw) with this code i get a black scree:

Code: Select all

    //Splitscreen Render
    dimension2d<s32> screensize = driver->getScreenSize();
    driver->beginScene(true, true, SColor(255, 100, 200, 100));
    smgr->setActiveCamera(p1.camera);
    driver->setViewPort(rect<s32>(0, 0, screensize.Width, screensize.Height/2));
    hdr->render();
    smgr->setActiveCamera(p2.camera);
    driver->setViewPort(rect<s32>(0, screensize.Height/2, screensize.Width, screensize.Height));
    hdr->render();
    guienv->drawAll();
    driver->endScene();
greets,
halan

ps: again the demo works and posttools version was black too so ithink its my fault :oops:
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

update: i added a light and now the scene is visible but the viewport is ignored

any ideas?

greets;
Halan
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Have you run it via PIX to see what's going on?

ISTR That a DX9 API SetRenderTarget() call resets the viewport...
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

what is PIX? :oops:

well ive been messing around with the code for a bit tried just to add setViewPort after each setRenderTarget() but if i do that only the second cam is rendered on a quarter of the screen... ive really no idea how to acieve this

greets,
halan

btw: im using posttools class atm because his blur looks someway smoother
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

PIX is a 3D debugger that comes with the DirectX SDK.
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

well how should i test splitscreen with it?
Sickboy
Posts: 2
Joined: Wed Aug 08, 2007 7:45 am

Post by Sickboy »

Hi Sio. When i try to run your demo with directx9.0c i get the error messages:
Could not load shader function D3DXAssembleShader from dll, shader disabled: d3dx9_31.dll

and

Could not load shader function D3DXCompileShader from dll, shader disabled: d3x9_31.dll

My System is XP-Pro Service Pack2. My graphics card a ATI mobility radeon x700.

I have the same result with an XP-Pro and a ATI X800GTO.
With both setups i just see the level as a cube from the outside.

Any idea what is wrong ??
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You need at least the dx9 dll with version 31, or newer. Or you have to recompile Irrlicht using an older DirectX SDK. The dlls are only backward compatible (well, at least they refuse to work in the other direction). This only affects d3dx functions, which are right now only the shader compilers.
Sickboy
Posts: 2
Joined: Wed Aug 08, 2007 7:45 am

Post by Sickboy »

where can i get this never dx 9 version ? At Microsoft the latest package is dx 9.0c which i have already installed :?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

No, that's only the major release number. You have to grab the lastest SDK which has a quarterly update scheme or so.
Ico
Posts: 289
Joined: Tue Aug 22, 2006 11:35 pm

Post by Ico »

www.dll-files.com has most of those DirectX files in single downloads - far better than downloading the whole SDK each time. :)

http://www.dll-files.com/search.php?s=d3dx_
Belajar
Posts: 15
Joined: Mon Nov 15, 2010 3:50 am

Post by Belajar »

the download link is not working anymore
Post Reply