Search found 28 matches
- Tue Aug 19, 2008 9:27 am
- Forum: Beginners Help
- Topic: Managed to get FX Shaders to work in Irrlicht......
- Replies: 3
- Views: 313
.fx file: float4x4 View : WorldViewProjection; struct VS_INPUT { float4 Position : POSITION0; }; struct VS_OUTPUT { float4 Position : POSITION0; }; VS_OUTPUT vs_main( VS_INPUT Input ) { VS_OUTPUT Output; Output.Position = mul(Input.Position,View); return( Output ); } float4 ps_main() : COLOR0 { retu...
- Mon Aug 18, 2008 6:44 pm
- Forum: Beginners Help
- Topic: Managed to get FX Shaders to work in Irrlicht......
- Replies: 3
- Views: 313
- Fri Aug 15, 2008 5:41 pm
- Forum: Advanced Help
- Topic: Shaders how do i use it ?
- Replies: 7
- Views: 986
- Fri Aug 15, 2008 4:27 am
- Forum: Advanced Help
- Topic: Shaders how do i use it ?
- Replies: 7
- Views: 986
- Fri Aug 15, 2008 4:24 am
- Forum: Advanced Help
- Topic: Shaders how do i use it ?
- Replies: 7
- Views: 986
- Wed Aug 13, 2008 1:26 am
- Forum: Beginners Help
- Topic: Managed to get FX Shaders to work in Irrlicht......
- Replies: 3
- Views: 313
Managed to get FX Shaders to work in Irrlicht......
As the title says......problem is i had to use Direct3D Matrix Function to set it up, so the model is stuck to the camera when using Irrlicht's FPS camera, so i don't know........anyways, here's how you'd set it up... #include "Main_Game.h" #include "VD.h" #include <Cg/Cg.h> #inc...
- Tue Aug 12, 2008 8:05 pm
- Forum: Project Announcements
- Topic: irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)
- Replies: 227
- Views: 113740
Ok, i managed to load the material into another project and it didn't give me any problems about that but for some reason, the Pixel Shader Color isn't being set. for some reason, the .xml file isn't being loaded.... I put it in a folder with the effect from Render monkey.....and nothing....Damn it....
- Tue Aug 12, 2008 4:50 pm
- Forum: Project Announcements
- Topic: irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)
- Replies: 227
- Views: 113740
The effect is in the same folder as the xml, so i don't know. Unless i have to make 3 matrices in my shader file as i had to do that in another file i used that i got to work with DirectX like this: float4x4 View : View; float4x4 Projection : Projection; float4x4 World : World; that's the 3 matrices...
- Tue Aug 12, 2008 4:22 pm
- Forum: Project Announcements
- Topic: irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)
- Replies: 227
- Views: 113740
I just tried to use pure DirectX with Irrlicht to load the shader and it worked, problem is that if i use Scene manager->draw all, it'll render all the meshes with that shader. another problem is since i'm using DirectX matrices it locks the mesh to the camera, so basically, with the FPS camera, you...
- Tue Aug 12, 2008 2:18 pm
- Forum: Project Announcements
- Topic: irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)
- Replies: 227
- Views: 113740
- Tue Aug 12, 2008 5:11 am
- Forum: Project Announcements
- Topic: irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)
- Replies: 227
- Views: 113740
Ok, i got it to compile with everything how ever something strange happens, The app tries to run but then it gets an access violation. it points to this line: strlen.asm: mov eax,dword ptr [ecx] ; read 4 bytes My code to load the material: GPU = new IrrCg::ICgProgrammingServices(this->Device); if(GP...
- Mon Aug 11, 2008 8:00 pm
- Forum: Code Snippets
- Topic: Play avi's on BillBoardNode w/ help of opencv lib
- Replies: 13
- Views: 12052
- Mon Aug 11, 2008 5:47 pm
- Forum: Project Announcements
- Topic: irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)
- Replies: 227
- Views: 113740
- Mon Aug 11, 2008 4:10 pm
- Forum: Project Announcements
- Topic: irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)
- Replies: 227
- Views: 113740
Thanks, I got these Link errors: 1>LIBCMT.lib(invarg.obj) : error LNK2005: __initp_misc_invarg already defined in LIBCMTD.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in LIBCMTD.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __set_invalid_param...
- Sun Aug 10, 2008 11:40 pm
- Forum: Project Announcements
- Topic: irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)
- Replies: 227
- Views: 113740
Ok, i'm not sure I totally understand this but you said that if i were to load an .fx file it would work? because the code from render monkey is different then Cg. for example Vertex Shader: float4x4 matViewProjection; struct VS_INPUT { float4 Position : POSITION0; }; struct VS_OUTPUT { float4 Posit...