Page 4 of 16

Posted: Wed Dec 19, 2007 5:27 pm
by Nadro
I done version 0.5.1 of IrrCg. In this version I add support for Linux. In archive I put library file and precompiled examples binaries for Linux.

Posted: Thu Dec 20, 2007 5:49 pm
by Aleyer
Unfortunately got these errors:

Code: Select all

01.HelloWorld error LNK2019: unresolved external symbol "class IrrCg::CG_CListner * __cdecl IrrCg::CreateCgInterface(class irr::IrrlichtDevice *)" (?CreateCgInterface@IrrCg@@YAPAVCG_CListner@1@PAVIrrlichtDevice@irr@@@Z) referenced in function _main

01.HelloWorld error LNK2019: unresolved external symbol "int __cdecl IrrCg::addCgShaderMaterialFromFiles(class IrrCg::CG_CListner *,enum CGenum,char const *,char const *,char const *,char const *,char const *,char const *,char const *,char const *,class IrrCg::ICgShaderConstantSetCallBack *,enum irr::video::E_MATERIAL_TYPE)" (?addCgShaderMaterialFromFiles@IrrCg@@YAHPAVCG_CListner@1@W4CGenum@@PBD2222222PAVICgShaderConstantSetCallBack@1@W4E_MATERIAL_TYPE@video@irr@@@Z) referenced in function _main

01.HelloWorld fatal error LNK1120: 2 unresolved externals

01.HelloWorld warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
Using irrlicht 1.4, irrcg 0.5.1, cg 1.5, vs 7.1.

after adding

Code: Select all

#pragma comment (lib,"irrlicht.lib")
#pragma comment (lib,"cg.lib")
got rid of 2 more 2019 errors, but these 2 remained
What should I do?

Posted: Thu Dec 20, 2007 10:27 pm
by Nadro
You have to add link to IrrCg, cgD3D9 and cgGL library files.

Code: Select all

#pragma comment (lib,"IrrCg.lib")
#pragma comment (lib,"cgD3D9.lib")
#pragma comment (lib,"cgGL.lib")

Posted: Fri Dec 21, 2007 8:11 am
by Aleyer
Well, I tried it, but adding cgD3D9 and cgGL doesn't change the number of errors, and adding irrcg.lib increases number of linking errors up to 10.

Posted: Fri Dec 21, 2007 12:53 pm
by Nadro
So... this is problem with Your VS 7.1 Project. You can use Code::Blocks project for compile and options for Your project. In next version I add project for Visual Studio:)

Posted: Fri Dec 21, 2007 9:19 pm
by Aleyer
Help me please) I've got too little experience in programming in VS, unfortunately. But somehow I want to make a small animated movie before the 2008 comes... Hope not to face too many problems in coding, but here is the first. And without shaders scene will look rather ugly..

Posted: Mon Dec 24, 2007 9:54 pm
by Steel Style
Does Cg work with AnimatedMeshSceneNode I mean does the model still animated ?

Posted: Tue Dec 25, 2007 3:22 pm
by Nadro
Steel Style wrote:Does Cg work with AnimatedMeshSceneNode I mean does the model still animated ?
Yes, of course :) This work with Animated Mesh:) IrrCg 0.5 and higher It's 100% compatibile with all Irrlicht features:)

Posted: Thu Dec 27, 2007 6:27 pm
by Nadro
IrrCg work properly only with Irrlicht 1.4 and older, so I will add library update system. I will release library update if currently libraries will be not work with newest Irrlicht SVN Revision. I released first update for newest Irrlicht revision from SVN. Download link is in first post.

Posted: Sun Dec 30, 2007 1:36 pm
by Steel Style
Cg won't work with my animated mesh they are show as animate. They seem static.

Posted: Sun Dec 30, 2007 7:16 pm
by Nadro
Cg is shader - material, so it can't disable animation in Your models. I use it in my game (for animated models) and works fine :) What You create shader? Are you using new metod for apply shader per Irrlicht material? Only this new method form IrrCg 0.5 work good and easy with Irrlicht rendering structure (also with animation) but in all version You can use it with animated mesh, but You need update Irrlicht rendering structure.

Posted: Sun Dec 30, 2007 9:41 pm
by Aleyer
What about me, poor VS 7.1 user? Is the project for it included?

Posted: Sun Dec 30, 2007 11:01 pm
by Nadro
No, it is included Code::Blocks project :) but You can easy configure VS7.1 project with IrrCg examples :)

Posted: Thu Jan 03, 2008 1:18 am
by Aleyer
I wouldn't ask for a VS 7.1 project if I managed to make the example link and build. What changes am I to apply to standart irrlicht example project to be able to use IrrCg? The problem is the mentioned above linker errors.
I included all the needed .h and linked all the .lib in the main.cpp, added the folders containing Cg's and IrrCg's .h, .dll and .lib files to the corresponding directories lists in VS settings.
What have I not done?

Posted: Thu Jan 03, 2008 4:15 pm
by sp00n
Aleyer wrote: I included all the needed .h and linked all the .lib in the main.cpp, added the folders containing Cg's and IrrCg's .h, .dll and .lib files to the corresponding directories lists in VS settings.
What have I not done?
Did you add all .cpp files to your project? (if you have an "unresolved" linker errors, add all .cpp files where functions named in errors presents, it may help to resolve this problem.