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

Postby Nadro » Wed Dec 19, 2007 5:27 pm

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.
NBK Game Studio - Official Site:
http://www.nbkgamestudio.pl/
Nadro
 
Posts: 1000
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Postby Aleyer » Thu Dec 20, 2007 5:49 pm

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

Postby Nadro » Thu Dec 20, 2007 10:27 pm

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")
NBK Game Studio - Official Site:
http://www.nbkgamestudio.pl/
Nadro
 
Posts: 1000
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Postby Aleyer » Fri Dec 21, 2007 8:11 am

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

Postby Nadro » Fri Dec 21, 2007 12:53 pm

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:)
NBK Game Studio - Official Site:
http://www.nbkgamestudio.pl/
Nadro
 
Posts: 1000
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Postby Aleyer » Fri Dec 21, 2007 9:19 pm

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

Postby Steel Style » Mon Dec 24, 2007 9:54 pm

Does Cg work with AnimatedMeshSceneNode I mean does the model still animated ?
Steel Style
 
Posts: 168
Joined: Sun Feb 04, 2007 3:30 pm
Location: France

Postby Nadro » Tue Dec 25, 2007 3:22 pm

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:)
NBK Game Studio - Official Site:
http://www.nbkgamestudio.pl/
Nadro
 
Posts: 1000
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Postby Nadro » Thu Dec 27, 2007 6:27 pm

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.
NBK Game Studio - Official Site:
http://www.nbkgamestudio.pl/
Nadro
 
Posts: 1000
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Postby Steel Style » Sun Dec 30, 2007 1:36 pm

Cg won't work with my animated mesh they are show as animate. They seem static.
Steel Style
 
Posts: 168
Joined: Sun Feb 04, 2007 3:30 pm
Location: France

Postby Nadro » Sun Dec 30, 2007 7:16 pm

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.
NBK Game Studio - Official Site:
http://www.nbkgamestudio.pl/
Nadro
 
Posts: 1000
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Postby Aleyer » Sun Dec 30, 2007 9:41 pm

What about me, poor VS 7.1 user? Is the project for it included?
Aleyer
 
Posts: 17
Joined: Thu Dec 14, 2006 9:03 pm

Postby Nadro » Sun Dec 30, 2007 11:01 pm

No, it is included Code::Blocks project :) but You can easy configure VS7.1 project with IrrCg examples :)
NBK Game Studio - Official Site:
http://www.nbkgamestudio.pl/
Nadro
 
Posts: 1000
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Postby Aleyer » Thu Jan 03, 2008 1:18 am

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

Postby sp00n » Thu Jan 03, 2008 4:15 pm

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

PreviousNext

Return to Project Announcements

Who is online

Users browsing this forum: No registered users and 0 guests