Search found 28 matches

by Gman3344
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...
by Gman3344
Mon Aug 18, 2008 6:44 pm
Forum: Beginners Help
Topic: Managed to get FX Shaders to work in Irrlicht......
Replies: 3
Views: 313

It's amazing no one responded yet to this......I tried to convert between matrices and that didn't good so well.
by Gman3344
Fri Aug 15, 2008 5:41 pm
Forum: Advanced Help
Topic: Shaders how do i use it ?
Replies: 7
Views: 986

yeah got those damn debug messages
by Gman3344
Fri Aug 15, 2008 4:27 am
Forum: Advanced Help
Topic: Shaders how do i use it ?
Replies: 7
Views: 986

"If you want i could make you a toon shader and show you how to use it"
by Gman3344
Fri Aug 15, 2008 4:24 am
Forum: Advanced Help
Topic: Shaders how do i use it ?
Replies: 7
Views: 986

that's assembly........if you want i can make a toon shader for you and how to use it in Irrlicht, I've been learning how to write shaders, so I could try to make it for you.
by Gman3344
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...
by Gman3344
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....
by Gman3344
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...
by Gman3344
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...
by Gman3344
Tue Aug 12, 2008 2:18 pm
Forum: Project Announcements
Topic: irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)
Replies: 227
Views: 113740

Copied and pasted the material and still get access violation......wonder why? damn it. I'm using Irrlicht because of everything it has, other wise i'd have to program all the features of Irrlicht my self, just wish i knew why this was happening..
by Gman3344
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...
by Gman3344
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

you should try to make it so you can render the video to a render targer then it would be able to be textured on a mesh such as a tv screen.
by Gman3344
Mon Aug 11, 2008 5:47 pm
Forum: Project Announcements
Topic: irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)
Replies: 227
Views: 113740

Well, i'm using the Debug DLL and i'm already excluding the libs, now i got these link errors: 1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library 1>Havok2.obj : warning LNK4217: locally defined symbol _printf imported in function "void __cd...
by Gman3344
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...
by Gman3344
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...