Search found 22 matches

by cooljayman
Sun Mar 23, 2008 3:01 am
Forum: Advanced Help
Topic: SSAO help
Replies: 17
Views: 4967

jinquan that looks great! could you post the source please(not just the shader)?:) How are you doing the passes for your depth/normal map? I'm having trouble working out how to arrange the quad rendering. Thanks in advance
by cooljayman
Wed Mar 19, 2008 1:16 pm
Forum: Advanced Help
Topic: Can't Compile to shader target PS3.0
Replies: 2
Views: 334

Can't Compile to shader target PS3.0

Can Irrlicht compile PS3.0 target? Im getting an error 'unrecognized compiler target ps_3_0' but ps_2_0 works.
by cooljayman
Mon Mar 17, 2008 9:38 am
Forum: Advanced Help
Topic: Setting a timer vertexshader constant?
Replies: 3
Views: 431

Setting a timer vertexshader constant?

Im trying to set a Timer value as a vertexShader Constant, OnSetConstants: u32 currtime = device->getTimer()->getTime(); services->setVertexShaderConstant("Timer", reinterpret_cast<f32*>(&currtime), 1); But the time going into the shader is not getting updated? What am I doing wrong?
by cooljayman
Sun Mar 16, 2008 6:09 am
Forum: Advanced Help
Topic: Help! Rendering Depthmap shader?
Replies: 0
Views: 300

Help! Rendering Depthmap shader?

I'm trying to render a depth map based on code from the following site, p.s. They are implementing shadow map, but at this stage I'm just interested in rendering the depth map alone. http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series3/Shadow_map.php here is the shader code that Im using, the fra...
by cooljayman
Sat Mar 15, 2008 3:10 pm
Forum: Advanced Help
Topic: Can't Set Vertex Shader Constant?
Replies: 7
Views: 952

Thanks blindside, that was it..
by cooljayman
Sat Mar 15, 2008 12:06 pm
Forum: Advanced Help
Topic: Can't Set Vertex Shader Constant?
Replies: 7
Views: 952

It's in the vertex shader, this is straight out from the shaders demo. I can't see what im doing differently, here is the rest of the hlsl code, it doesn't do anything at the moment. float4x4 mWorldViewProj; struct VS_OUTPUT { float4 Pos: POSITION; float2 texCoord: TEXCOORD0; }; VS_OUTPUT vertexMain...
by cooljayman
Sat Mar 15, 2008 11:24 am
Forum: Advanced Help
Topic: Can't Set Vertex Shader Constant?
Replies: 7
Views: 952

Can't Set Vertex Shader Constant?

Im trying to set mWorldViewProj as a Shader Constant like below but getting an error on the console window saying 'HLSL variable to set not found "mWorldViewProj" Available variables are:'. virtual void OnSetConstants(video::IMaterialRendererServices* services, irr::s32 userData) { video::...
by cooljayman
Fri Mar 14, 2008 11:05 am
Forum: Advanced Help
Topic: Postprocessing with Shaders?
Replies: 0
Views: 372

Postprocessing with Shaders?

Im trying to get a basic framework setup to test post processing fx with HLSL. Im using the code from the link below. http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=9857&postdays=0&postorder=asc&start=0 Everything compiles ok and I managed to render a quad with the scene in it's ...
by cooljayman
Fri Mar 14, 2008 7:58 am
Forum: Advanced Help
Topic: Irrlicht and Shaders?
Replies: 2
Views: 431

Thanks heaps BlindSide, looking at it now, but only getting a black screen, when I move back I see the rendered quad but its not attached to the fps camera, shouldn't the vertex shader be rendering the quad on the screen?
by cooljayman
Fri Mar 14, 2008 7:45 am
Forum: Advanced Help
Topic: My SceneNode for filter post processing shaders
Replies: 36
Views: 13038

Hi, Im using irrlich 1.4. Tryin this out but only getting a black screen?? Do I need the dxx multisize rendertarget patch for this to work? I have set the render target to 512,512 but still black screen. Lastly Im getting the following error main.cpp(112) : error C2039: 'OnPreRender' : is not a memb...
by cooljayman
Fri Mar 14, 2008 2:04 am
Forum: Advanced Help
Topic: Irrlicht and Shaders?
Replies: 2
Views: 431

Irrlicht and Shaders?

I have a few questions about shaders and irrlicht? How is it possible to do multiple passes? How can I do post effects?(Not sure how to set up the shader to do ts thing on a renderdertarget). Is there support for .fx files?
by cooljayman
Wed Mar 12, 2008 9:11 am
Forum: Beginners Help
Topic: Material Colours?
Replies: 1
Views: 161

Material Colours?

Simple question. What is the exact syntax to change a materials colors like ambient, diffuse, specular ect.? Tried this

Code: Select all

node->setMaterialFlag(video::SMaterial::AmbientColor, false);
but this does not allow me to pass color information??
by cooljayman
Wed Mar 12, 2008 8:13 am
Forum: Advanced Help
Topic: Irrlicht and SilverLining SDK Sky and Cloud Integration?
Replies: 10
Views: 914

which version of directX SDK? link?
by cooljayman
Wed Mar 12, 2008 3:48 am
Forum: Advanced Help
Topic: Irrlicht and SilverLining SDK Sky and Cloud Integration?
Replies: 10
Views: 914

Ok, I think I figured out where I need to make the change. I need to add the following to C3D9Driver.cpp 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 1...
by cooljayman
Wed Mar 12, 2008 1:27 am
Forum: Advanced Help
Topic: Irrlicht and SilverLining SDK Sky and Cloud Integration?
Replies: 10
Views: 914

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_BACKBUFF...