irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Post 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.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Aleyer
Posts: 17
Joined: Thu Dec 14, 2006 9:03 pm

Post 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?
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Post 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")
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Aleyer
Posts: 17
Joined: Thu Dec 14, 2006 9:03 pm

Post 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.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Post 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:)
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Aleyer
Posts: 17
Joined: Thu Dec 14, 2006 9:03 pm

Post 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..
Steel Style
Posts: 168
Joined: Sun Feb 04, 2007 3:30 pm
Location: France

Post by Steel Style »

Does Cg work with AnimatedMeshSceneNode I mean does the model still animated ?
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Post 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:)
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Post 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.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Steel Style
Posts: 168
Joined: Sun Feb 04, 2007 3:30 pm
Location: France

Post by Steel Style »

Cg won't work with my animated mesh they are show as animate. They seem static.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Post 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.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Aleyer
Posts: 17
Joined: Thu Dec 14, 2006 9:03 pm

Post by Aleyer »

What about me, poor VS 7.1 user? Is the project for it included?
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Post by Nadro »

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
Aleyer
Posts: 17
Joined: Thu Dec 14, 2006 9:03 pm

Post 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?
sp00n
Posts: 114
Joined: Wed Sep 13, 2006 9:39 am

Post 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.
Post Reply