irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)
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.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Unfortunately got these errors:
Using irrlicht 1.4, irrcg 0.5.1, cg 1.5, vs 7.1.
after adding
got rid of 2 more 2019 errors, but these 2 remained
What should I do?
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
after adding
Code: Select all
#pragma comment (lib,"irrlicht.lib")
#pragma comment (lib,"cg.lib")
What should I do?
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")
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
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:)
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
-
- Posts: 168
- Joined: Sun Feb 04, 2007 3:30 pm
- Location: France
Yes, of course This work with Animated Mesh:) IrrCg 0.5 and higher It's 100% compatibile with all Irrlicht features:)Steel Style wrote:Does Cg work with AnimatedMeshSceneNode I mean does the model still animated ?
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
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.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
-
- Posts: 168
- Joined: Sun Feb 04, 2007 3:30 pm
- Location: France
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.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
No, it is included Code::Blocks project but You can easy configure VS7.1 project with IrrCg examples
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
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?
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.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?