NxOgre 0.6 - The private SVN repository is now public!

betajaen

07-03-2007 18:49:03

So then...
So, I've decided to open up my Pandora's box, the SVN repository of NxOgre. The code is at least 2-3 months ahead of what your working with right now, so a lot have changed.

This code has no warranty, it'll probably explode your computer and comes with no tutorials. If you're a newbie, close this thread and go download Go RC3.

Enough talking..Gimmie!

You can checkout SVN via the SVN command.
svn co http://latest.nxogre.org/nxogre/


If you hate DOS, you can use TortoiseSVN and checkout NxOgre using the URL above. Don't use a website crawler, because that is really weird.

Requirements
The minimal requirements for this are:

- PhysX 2.7.0
- Eihort (Dagon is known to work, with a slight modification - you'll see when you compile).
- A sense of humor.

In the future
In the upcoming days, I will be posting the link to the 1.0 code of NxOgre, which works with Windows AND Linux - out of the box.



Post all comments, bugs, patches, questions related to this release in THIS thread only. If you post anywhere else. I will delete that thread.

betajaen

07-03-2007 18:52:15

Revision 2 (Really Revision 17).

- Ignore notes.txt - Character controller does work, and 90% of the shapes have been ported to the new shape code.

- params<whatever> now can be reduced to a string. i.e. createBody(... , "myNode: nodeName")

- Shapes System completely and totally gutted and redone. There are probably some things missing.

- Terrain shape working!

- Wheel Shapes working. I'll some code about this in a few days.

and so on.

joi

07-03-2007 19:09:54

Thats really great! Thanks a bunch, came in the right time. We will be using it heavily on our studio.

Does that also means you will be using that trunk for active development (not-so sparse commits) ?

betajaen

07-03-2007 19:26:55

Usually once I've done something with NxOgre it gets updated to the SVN. Unless it doesn't compile or sets the town on fire, then I don't bother.

betajaen

08-03-2007 10:56:44

Okay some code to get some of the new features working:

Heightmaps
mScene->createStaticBody("terrain", "", new heightfieldShape("terraincm.png", 4096,4096,64,513,513));

4096,4096 - Width/Length of the heightmap in metres
64 - Max height of the height map
513,513 - Size of the texture.

You should use this with the standard Ogre terrain system.

Wheels

wheelSet mWheels;
body* mCube;

myCube = mScene->createBody("myCube","cube.1m.mesh",new cubeShape(Vector3(1,1,3)),100.0f,Vector3(2048,80,2048), "scale:1 1 3");

myCube->mActor->setCMassOffsetLocalPosition(NxVec3(0,-1,0));


myWheels = wheelSet::createFourWheelSet(myCube, Vector3(-1,-0.1f,1.25f), Vector3(-0.75f,-0.1f,-1.25f), 2.5f);

myWheels.addEntities("wheel50cmx10cmx50cm.mesh");



wheelSet::createFourWheelSet(myCube, Vector3(-1,-0.1f,1.25f), Vector3(-0.75f,-0.1f,-1.25f), 2.5f);


Attach four wheels to myCube. Front Left at (-1,0.1f,1.25f) and Back Left at (-0.75, -0.1f, -1.25f). Front Right and Back Right will use the same coordinates but changes the sign on the X axis. 2.5f is the radius.

Currently the code is hard coded, so the front wheels steer only.


myWheels = myWheels.addEntities("wheel50cmx10cmx50cm.mesh");


Add a entity "wheel50cmx10cmx50cm.mesh" to each wheel.

To operate your new car, you can use a variation of this:


float kph = myCube->mActor->getLinearVelocity().magnitude() * 3.6;

// show kph on an overlay or even use BetaCairo re-draw the speedometer needle.


if (isKeyDown(X)) {

myWheels.turn(Degree(1));

}

else if (isKeyDown(NEG_X)) {

myWheels.turn(Degree(-1));

}



if (isKeyDown(Z)) {

myWheels.setMotorTorque(75);

}

else if (isKeyDown(NEG_Z)) {

myWheels.setMotorTorque(-75);

}

else {

myWheels.setMotorTorque(0);

}


There is a bug with the vertical position of the wheels at the moment, they appear to hover in the air whilst on the ground. This should be fixed sometime in the future. The wheel code will change in the future so don't get so comfy!

joi

08-03-2007 14:13:10

Im getting a minor error in the post-build. No tutorial folder is in the trunk. Besides that everything compiled allright.

copy "$(TargetPath)" "$(NXOGRE_DIR)\tutorials\"

betajaen

08-03-2007 14:26:25

Yep. There's no tutorials or tutorial directory with the SVN. So you can safely ignore that error. Although if you wanted to; you can use the tutorials from RC3 in there. They should work perfectly.

STfreak

09-03-2007 01:00:26

I received the message, "It goes ms.x.rel, OIS has changed since RC3.", but when I changed the mouse state to ms.x.rel it gave me another error. What do I need to change to use the tutorial?

devachan

09-03-2007 01:19:58


wheelSet mWheels;
body* mCube;

myCube = mScene->createBody("myCube","cube.1m.mesh",new cubeShape(Vector3(1,1,3)),100.0f,Vector3(2048,80,2048), "scale:1 1 3");

myCube->mActor->setCMassOffsetLocalPosition(NxVec3(0,-1,0));


myWheels = wheelSet::createFourWheelSet(myCube, Vector3(-1,-0.1f,1.25f), Vector3(-0.75f,-0.1f,-1.25f), 2.5f);

myWheels.addEntities("wheel50cmx10cmx50cm.mesh");


:shock: that simple!!

joi

09-03-2007 12:50:44

A quick question: how can you modify the wheelshape NxWheelShapeDesc once it has been created. I tried altering values from the desc of the actor but it didnt work, only works before the creation (createShape), but to do that i have to modify nxOgre code.

betajaen

09-03-2007 14:04:44

You can cast the shape generated into a NxWheelShape then modify it that way.

STfreak

10-03-2007 17:54:41

I still am unable to compile the tutorials, I'm not even thinking of vehicles, just a box spawn like in tutorial one. I'm still not sure what "It goes ms.x.rel, OIS has changed since RC3." wants me to change. Could you help me out?

betajaen

10-03-2007 18:30:21

Apologies, when I wrote that I was very busy.

What I mean is. In the file tutorialApplicationEihort.h, you'll find some lines that go: return ms.relX, return ms.relY and return ms.relZ.

You should change them to ms.X.rel, ms.Y.rel and ms.Z.rel.

danharibo

10-03-2007 19:59:34

------ Build started: Project: nxOgre, Configuration: Debug Win32 ------
Compiling...
nxOgre_world.cpp
c:\programing\nxogre\source\nxogre_world.cpp(35) : fatal error C1083: Cannot open include file: 'nxOgre_graph.h': No such file or directory
nxOgre_util_stream.cpp
nxOgre_userallocator.cpp
c:\programing\nxogre\source\nxogre_userallocator.cpp(88) : error C2653: 'UserAllocator' : is not a class or namespace name
c:\programing\nxogre\source\nxogre_userallocator.cpp(88) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\programing\nxogre\source\nxogre_userallocator.cpp(89) : error C2550: 'UserAllocator' : constructor initializer lists are only allowed on constructor definitions
c:\programing\nxogre\source\nxogre_userallocator.cpp(90) : error C2065: 'mMemBlockList' : undeclared identifier
c:\programing\nxogre\source\nxogre_userallocator.cpp(96) : error C2065: 'mMemBlockListSize' : undeclared identifier
c:\programing\nxogre\source\nxogre_userallocator.cpp(97) : error C2065: 'mMemBlockFirstFree' : undeclared identifier
c:\programing\nxogre\source\nxogre_userallocator.cpp(98) : error C2065: 'mMemBlockUsed' : undeclared identifier
c:\programing\nxogre\source\nxogre_userallocator.cpp(100) : warning C4508: 'UserAllocator' : function should return a value; 'void' return type assumed
c:\programing\nxogre\source\nxogre_userallocator.cpp(102) : error C2653: 'UserAllocator' : is not a class or namespace name
c:\programing\nxogre\source\nxogre_userallocator.cpp(102) : fatal error C1903: unable to recover from previous error(s); stopping compilation
nxOgre_trigger.cpp
c:\programing\nxogre\source\nxogre_trigger.cpp(26) : fatal error C1083: Cannot open include file: 'nxOgre_shape_primitive.h': No such file or directory
nxOgre_textstream.cpp
c:\programing\nxogre\source\nxogre_textstream.cpp(95) : error C2653: 'NxStringHelper' : is not a class or namespace name
c:\programing\nxogre\source\nxogre_textstream.cpp(95) : error C3861: 'Pose_toString': identifier not found
c:\programing\nxogre\source\nxogre_textstream.cpp(108) : error C2653: 'NxStringHelper' : is not a class or namespace name
c:\programing\nxogre\source\nxogre_textstream.cpp(108) : error C3861: 'Pose_toString': identifier not found
c:\programing\nxogre\source\nxogre_textstream.cpp(374) : error C2653: 'NxStringHelper' : is not a class or namespace name
c:\programing\nxogre\source\nxogre_textstream.cpp(374) : error C3861: 'Pose_fromString': identifier not found
c:\programing\nxogre\source\nxogre_textstream.cpp(408) : error C2653: 'NxStringHelper' : is not a class or namespace name
c:\programing\nxogre\source\nxogre_textstream.cpp(408) : error C3861: 'Pose_fromString': identifier not found
nxOgre_string.cpp
nxOgre_staticGeometryBody.cpp
nxOgre_statemachine.cpp
nxOgre_stage.cpp
c:\programing\nxogre\source\nxogre_stage.cpp(26) : fatal error C1083: Cannot open include file: 'nxOgre_shape_primitive.h': No such file or directory
nxOgre_shape_wheel.cpp
c:\programing\nxogre\source\nxogre_shape_wheel.cpp(23) : fatal error C1083: Cannot open include file: 'nxOgre_shape_wheel.h': No such file or directory
nxOgre_shape_soft.cpp
c:\programing\nxogre\source\nxogre_shape_soft.cpp(23) : fatal error C1083: Cannot open include file: 'nxOgre_shape_soft.h': No such file or directory
nxOgre_shape_primitive.cpp
c:\programing\nxogre\source\nxogre_shape_primitive.cpp(23) : fatal error C1083: Cannot open include file: 'nxOgre_shape_primitive.h': No such file or directory
nxOgre_shape_mesh.cpp
c:\programing\nxogre\source\nxogre_shape_mesh.cpp(22) : fatal error C1083: Cannot open include file: 'nxOgre_shape_mesh.h': No such file or directory
nxOgre_shape_convex.cpp
c:\programing\nxogre\source\nxogre_shape_convex.cpp(23) : fatal error C1083: Cannot open include file: 'nxOgre_shape_convex.h': No such file or directory
nxOgre_shape_compound.cpp
c:\programing\nxogre\source\nxogre_shape_compound.cpp(23) : fatal error C1083: Cannot open include file: 'nxOgre_shape_compound.h': No such file or directory
nxOgre_shape.cpp
c:\programing\nxogre\source\nxogre_shape.cpp(23) : fatal error C1083: Cannot open include file: 'nxOgre_shape_primitive.h': No such file or directory
nxOgre_serialiser.cpp
Build log was saved at "file://C:\OgreSDK\NxOgre\compiler\NxOgre.VC8\Debug\obj\BuildLog.htm"
nxOgre - 27 error(s), 1 warning(s)
LOL pwnd, Help?

betajaen

10-03-2007 20:33:26

A little pwned.

When you downloaded the SVN, which I assume to another directory. Did you change the NxOgre environment variable to this directory, and closed and reopened Visual studio?

STfreak

10-03-2007 21:04:30

I did, I'm not sure about danharibo. Once I get these tutorials compiled I won't have another problem for a long time.

danharibo

10-03-2007 22:21:18

------ Build started: Project: nxOgre, Configuration: Debug Win32 ------
Compiling...
nxOgre_world.cpp
c:\programing\nxogre\include\nxogre_world.h(317) : error C2143: syntax error : missing ';' before '*'
c:\programing\nxogre\include\nxogre_world.h(317) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\programing\nxogre\include\nxogre_world.h(317) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\programing\nxogre\include\nxogre_world.h(318) : error C2143: syntax error : missing ';' before '*'
c:\programing\nxogre\include\nxogre_world.h(318) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\programing\nxogre\include\nxogre_world.h(318) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\programing\nxogre\source\nxogre_world.cpp(159) : error C2065: 'mControllerAllocator' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(159) : error C2061: syntax error : identifier 'ControllerManagerAllocator'
c:\programing\nxogre\source\nxogre_world.cpp(161) : error C2065: 'mControlMgr' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(161) : error C3861: 'NxCreateControllerManager': identifier not found
c:\programing\nxogre\source\nxogre_world.cpp(233) : error C2541: 'delete' : cannot delete objects that are not pointers
c:\programing\nxogre\source\nxogre_world.cpp(348) : error C2065: 'NX_VISUALIZE_FLUID_PACKET_DATA' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(354) : error C2065: 'NX_VISUALIZE_CLOTH_TEARABLE_VERTICES' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(355) : error C2065: 'NX_VISUALIZE_CLOTH_TEARING' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(356) : error C2065: 'NX_VISUALIZE_CLOTH_ATTACHMENT' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(357) : error C2065: 'NX_VISUALIZE_SOFTBODY_MESH' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(358) : error C2065: 'NX_VISUALIZE_SOFTBODY_COLLISIONS' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(359) : error C2065: 'NX_VISUALIZE_SOFTBODY_WORKPACKETS' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(360) : error C2065: 'NX_VISUALIZE_SOFTBODY_SLEEP' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(361) : error C2065: 'NX_VISUALIZE_SOFTBODY_TEARABLE_VERTICES' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(362) : error C2065: 'NX_VISUALIZE_SOFTBODY_TEARING' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(363) : error C2065: 'NX_VISUALIZE_SOFTBODY_ATTACHMENT' : undeclared identifier
c:\programing\nxogre\source\nxogre_world.cpp(884) : error C2039: 'getNbSoftBodies' : is not a member of 'NxScene'
c:\program files\ageia technologies\ageia physx sdk\v2.6.2\sdks\physics\include\nxscene.h(233) : see declaration of 'NxScene'
nxOgre_util_stream.cpp
nxOgre_userallocator.cpp
Build log was saved at "file://C:\programing\NxOgre\compiler\NxOgre.VC8\Debug\obj\BuildLog.htm"
nxOgre - 23 error(s), 0 warning(s)
Noes D:

betajaen

10-03-2007 22:30:29

You should be using PhysX 2.7.0

STfreak

11-03-2007 13:18:39

I am using PhysX 2.7.0 can you please tell me what "It goes ms.x.rel, OIS has changed since RC3." means? The tutorials have no driving code I presume and I have looked through some help topics and others to find the error. Should I just wait for .9 or can you compile this on VB2005C++?

betajaen

11-03-2007 13:45:47

Apologies, when I wrote that I was very busy.

What I mean is. In the file tutorialApplicationEihort.h, you'll find some lines that go: return ms.relX, return ms.relY and return ms.relZ.

You should change them to ms.X.rel, ms.Y.rel and ms.Z.rel.


:)

STfreak

12-03-2007 01:26:37

Ok, thanks :) I made the changes but it still seems to be giving me a smaller error. I understand some of it, but not all of it, what exactly does it want?

1>------ Rebuild All started: Project: 102.Sphere and Torque, Configuration: Release Win32 ------
1>Deleting intermediate and output files for project '102.Sphere and Torque', configuration 'Release|Win32'
1>Compiling...
1>102.cpp
1>c:\dev\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(655) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\dev\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(655) : error C2143: syntax error : missing ';' before '.'
1>c:\dev\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(656) : error C2228: left of '.Z' must have class/struct/union
1> type is 'const int'
1>c:\dev\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(656) : error C2228: left of '.rel' must have class/struct/union
1>..\102.cpp(177) : error C2065: 'SET_TERM_HANDLER' : undeclared identifier
1>Build log was saved at "file://c:\dev\NxOgre\tutorials\NxTutorials\VC8\Release\BuildLog.htm"
1>102.Sphere and Torque - 5 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

betajaen

12-03-2007 11:01:26

I think you missed a ms.relz and the SET_TERM_HANDLER line needs to be removed completely, but don't make it an empty line as it'll ruin the macro.

For each of those errors just double click on them, and VS will bring you straight there.

STfreak

14-03-2007 00:24:34

hmmmm, the code looks like this:

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

bool keyReleased( const KeyEvent &arg ) {
//mGUI->injectKey(mKeyboard->getAsString((OIS::KeyCode) arg.text), mPointer->getLeft(), mPointer->getTop());
return true;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

float getRMouseX() {
const MouseState &ms = mMouse->getMouseState();
return ms.X.rel;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

float getRMouseY() {

const MouseState &ms = mMouse->getMouseState();
return ms.Y.rel;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

float getRMouseZ() {

const ms.x.rel &ms = mMouse->getms.x.rel();
return ms.Z.rel;
}

//////////////////////////////////////////////////////
but it still gives me the error, and there doesn't seem to be a SET_TERM_HANDLER in the file (tutorialApplicationEihort.h) is SET_TERM in tutorial app...Eihort.h?

betajaen

14-03-2007 09:51:34

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

float getRMouseZ() {

const MouseState &ms = mMouse->getMouseState();
return ms.Z.rel;
}

////////////////////////////////////////////////////// but it still gives me the error, and there doesn't seem to be a SET_TERM_HANDLER in the file (tutorialApplicationEihort.h) is SET_TERM in tutorial app...Eihort.h?


Fixed and It's in tutorial.h

Ridhan

14-03-2007 17:58:07

I don't want to create a thread for a simple question...

I want to know how's the current situation with the character controller, if it's working and if it0s possible to change the walk/run speeds. Also, I'd find useful if one can retrieve the character State, to play animations on an Entity based on the current state of the character.

ProtoZoo

16-03-2007 17:32:54

I tried to create a trigger like I did in the earlier 0.4 version but got an error in the log file.

"Supplied NxActorDesc is not valid. createActor returns NULL."

Is there a new way to create them or are the callback triggers not supported in the 0.6 version?

Thanks a lot! :D

is01sjjj

20-03-2007 23:10:32



You can checkout SVN via the SVN command.
svn co http://latest.nxogre.org/nxogre/


If you hate DOS, you can use TortoiseSVN and checkout NxOgre using the URL above. Don't use a website crawler, because that is really weird.


I download TortoiseSVN to get nxogre, but it seems to need account and password to login?

betajaen

20-03-2007 23:16:16

I just tried it and it was fine. If it does it again, try clicking okay or cancel. Or make something up and see what happens.

Else worst comes to worst, you can run a website grabber program at that link - Only once though ;)

is01sjjj

20-03-2007 23:32:19

thank you for so quick reply :P
I am not familiar with TortoiseSVN, I just Create a folder named NxOgre, then right click it select create new repository, it's ok now.
Then right click the folder select import, enter ULR:http://latest.nxogre.org/nxogre/. So it calls for account and password. If press ok, nothing change , needs acc and password too.

betajaen

20-03-2007 23:35:40

Ahh. It goes like this:

- New Folder
- File, SVN, SVN Checkout
- Change the URL to "http://latest.nxogre.org/nxogre/";
- Click okay

;)

is01sjjj

20-03-2007 23:48:00

Have got it! Thank you :wink:
I guess i need to compile nxogre to a lib and dll, need I?And i do not have VC8, maybe i need create a VC7.1 project to compile it.

betajaen

21-03-2007 00:03:47

Nope, You can edit the vcproj and change the version to 7.1

jchmack

22-03-2007 08:20:47

ok im trying to port my game to Eihort and 0.6. I have it down to 3 errors:

///////////////////////////////////////////////////////////////////////////////////

Program Entry.cpp
1>...Level.h(16) : error C2664: 'nxOgre::meshShape::meshShape(Ogre::String,nxOgre::params<collisionmodel>)' : cannot convert parameter 2 from 'nxOgre::scene *' to 'nxOgre::params<collisionmodel>'
1> No constructor could take the source type, or constructor overload resolution was ambiguous


mbody = mScene->createStaticBody("Level.mesh","Level.mesh",new meshShape("Level.mesh",mScene),Vector3(0,0,0));


i changed it to this:
mbody = mScene->createStaticBody("Level.mesh","Level.mesh",new meshShape("Level.mesh"),Vector3(0,0,0));
and it compiles but i want to make sure this is a proper use.

//////////////////////////////////////////////////////////////////////////////////


1>.\Program Entry.cpp(6) : error C2065: 'SET_TERM_HANDLER' : undeclared identifier


int main(int argc, char *argv[])
{
SET_TERM_HANDLER;
try
{
.....


/////////////////////////////////////////////////////////////////////////////////
finaly if i comment out the SET_TERM_HANDLER i get 114 of these linker errors:

1>GameCharacter.obj : error LNK2005: "protected: bool __thiscall BetaGUI::Window::check(unsigned int,unsigned int,bool)" (?check@Window@BetaGUI@@IAE_NII_N@Z) already defined in Program Entry.obj
1>GameCharacter.obj : error LNK2005: "protected: bool __thiscall BetaGUI::Window::checkKey(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int,unsigned int)" (?checkKey@Window@BetaGUI@@IAE_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@II@Z) already defined in Program Entry.obj
1>GameCharacter.obj : error LNK2005: "public: __thiscall BetaGUI::TextInput::TextInput(class Ogre::Vector4,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int,class BetaGUI::Window *)" (??0TextInput@BetaGUI@@QAE@VVector4@Ogre@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@1IPAVWindow@1@@Z) already defined in Program Entry.obj

all of them are about the same as these

///////////////////////////////////////////////////////////////////////////////////

well thanks in advance for any help you guys have to give =)

jchmack

23-03-2007 15:51:06

hmm sorry to sound impatient but its been like a day and im still not getting it. Where is SET_TERM_HANDLER normally defined?

betajaen

23-03-2007 15:52:59

It's not. Take it out.

There have been a few posts and threads about making the tutorials work properly with Eihort.

jchmack

23-03-2007 16:04:50

It's not. Take it out.

There have been a few posts and threads about making the tutorials work properly with Eihort.


wow 1 minute that was fast lol. But im not exactly just doing the tutorials im trying to port my existing app. Im following tutorialApplicationEihort.h almost to a key. It compiles fine but i still get link errors. I just remembered you wanted all the post about 0.6 here so i figured there wouldn't be any other threads about this.

but it seems do be redefining beta gui over and over again:

1>GameCharacter.obj : error LNK2005: "protected: bool __thiscall BetaGUI::Window::check(unsigned int,unsigned int,bool)" (?check@Window@BetaGUI@@IAE_NII_N@Z) already defined in Program Entry.obj

i tried putting
#ifndef BetaGui
#define BetaGui

//beta Gui code from tutorialApplicationEihort.h here

#endif

but its still doing it.

Bah im just going to try to seperate it into its own cpp

jchmack

23-03-2007 16:33:47

lol it works i should have read this part:

/// This code is not meant to be readable, if you base your future source on this, I will laugh at you.

Ridhan

26-03-2007 18:49:50

ahh I can't get it :? !

I'm trying to download from tortoise and it keep me asking for user:pass

Here's what I've got...

betajaen

26-03-2007 19:05:29

That's because your using TortoiseCVS rather than TortoiseSVN.

Once you installed it, follow these instructions:

- New Folder
- File, SVN, SVN Checkout
- Change the URL to "http://latest.nxogre.org/nxogre/";
- Click okay

;)

Ridhan

26-03-2007 19:09:40

Arghhh, and I did installed the svn first. What was I thinking :oops:

Ridhan

27-03-2007 20:41:28

---EDIT---

Nevermind, I've got it working right know. It still crashes though, but it not related with the GUI I think.

--------------


Hi again :roll:

I ported my application to 0.6 (that included an upgrade form PhysX and I took the oportunity of upgrading to Eihort too).

I just had 1 problem though. I was using a modified version BetaGUI, the one written by valtovar, but know it's imcompatible because it uses headers from Dagon that doesn't exist anymore.
So I decided to change it to the BetaGUI you were going to use, this BetaGUI-Bullet, which I found to be very similar to valtovar's BetaGUI in the functionality it offers.
However, I'm complete clueless about how to implement it. First I tried to do it like it was the original betagui, but the onButtonPress function now takes two arguments, and beside that, it's already overriden!

I read that you were going to use this GUI for the new tutorials, I hope you can help me implementin it.

Thanks in advance :D

druida

19-04-2007 06:24:53

i need some help here...

trying to build the tutorial 1 and i get this error:

------ Build started: Project: 101.Cube on a Plane, Configuration: Release Win32 ------
Compiling...
101.cpp
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(1174) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(290) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(290) : error C2664: 'void Ogre::Camera::setPosition(const Ogre::Vector3 &)' : cannot convert parameter 1 from 'OIS::Vector3' to 'const Ogre::Vector3 &'
Reason: cannot convert from 'OIS::Vector3' to 'const Ogre::Vector3'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(291) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(291) : error C2664: 'void Ogre::Camera::lookAt(const Ogre::Vector3 &)' : cannot convert parameter 1 from 'OIS::Vector3' to 'const Ogre::Vector3 &'
Reason: cannot convert from 'OIS::Vector3' to 'const Ogre::Vector3'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(358) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(358) : error C2664: 'SimpleTutorialEihort::CreateEntNode' : cannot convert parameter 2 from 'OIS::Vector3' to 'Ogre::Vector3'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(359) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(359) : error C2664: 'SimpleTutorialEihort::CreateEntNode' : cannot convert parameter 2 from 'OIS::Vector3' to 'Ogre::Vector3'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(383) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(383) : error C2664: 'void Ogre::Light::setPosition(const Ogre::Vector3 &)' : cannot convert parameter 1 from 'OIS::Vector3' to 'const Ogre::Vector3 &'
Reason: cannot convert from 'OIS::Vector3' to 'const Ogre::Vector3'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(718) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(718) : error C2039: 'UNIT_Y' : is not a member of 'OIS::Vector3'
c:\ogresdk\include\ois\OISPrereqs.h(200) : see declaration of 'OIS::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(718) : error C2065: 'UNIT_Y' : undeclared identifier
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(724) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(724) : error C2039: 'UNIT_Z' : is not a member of 'OIS::Vector3'
c:\ogresdk\include\ois\OISPrereqs.h(200) : see declaration of 'OIS::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(724) : error C2065: 'UNIT_Z' : undeclared identifier
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(873) : error C2664: 'Ogre::Camera::moveRelative' : cannot convert parameter 1 from 'OIS::Vector3' to 'const Ogre::Vector3 &'
Reason: cannot convert from 'OIS::Vector3' to 'const Ogre::Vector3'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(880) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(880) : error C2039: 'ZERO' : is not a member of 'OIS::Vector3'
c:\ogresdk\include\ois\OISPrereqs.h(200) : see declaration of 'OIS::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(880) : error C2065: 'ZERO' : undeclared identifier
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(979) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(979) : error C2440: 'initializing' : cannot convert from 'Ogre::Vector3' to 'OIS::Vector3'
No constructor could take the source type, or constructor overload resolution was ambiguous
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(981) : error C2664: 'void Ogre::Node::setPosition(const Ogre::Vector3 &)' : cannot convert parameter 1 from 'OIS::Vector3' to 'const Ogre::Vector3 &'
Reason: cannot convert from 'OIS::Vector3' to 'const Ogre::Vector3'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(1046) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(1046) : error C2039: 'ZERO' : is not a member of 'OIS::Vector3'
c:\ogresdk\include\ois\OISPrereqs.h(200) : see declaration of 'OIS::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(1046) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(1046) : error C2039: 'ZERO' : is not a member of 'OIS::Vector3'
c:\ogresdk\include\ois\OISPrereqs.h(200) : see declaration of 'OIS::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(1092) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(1096) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(1096) : error C2440: 'initializing' : cannot convert from 'Ogre::Vector3' to 'OIS::Vector3'
No constructor could take the source type, or constructor overload resolution was ambiguous
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(1097) : error C2676: binary '*=' : 'OIS::Vector3' does not define this operator or a conversion to a type acceptable to the predefined operator
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(1098) : error C2676: binary '-=' : 'OIS::Vector3' does not define this operator or a conversion to a type acceptable to the predefined operator
c:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialApplicationEihort.h(1099) : error C2664: 'nxOgre::body::addForceAtPos' : cannot convert parameter 1 from 'OIS::Vector3' to 'Ogre::Vector3'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
..\101.cpp(92) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
..\101.cpp(93) : error C2872: 'Vector3' : ambiguous symbol
could be 'c:\ogresdk\include\ois\OISPrereqs.h(200) : OIS::Vector3'
or 'c:\ogresdk\include\OgreVector3.h(47) : Ogre::Vector3'
..\101.cpp(93) : error C2039: 'UNIT_Y' : is not a member of 'OIS::Vector3'
c:\ogresdk\include\ois\OISPrereqs.h(200) : see declaration of 'OIS::Vector3'
..\101.cpp(94) : error C2665: 'nxOgre::pose::pose' : none of the 8 overloads could convert all the argument types
c:\ogresdk\nxogre\include\nxOgre_pose.h(43): could be 'nxOgre::pose::pose(Ogre::Vector3,Ogre::Quaternion)'
c:\ogresdk\nxogre\include\nxOgre_pose.h(48): or 'nxOgre::pose::pose(NxVec3,NxQuat)'
while trying to match the argument list '(OIS::Vector3)'
Build log was saved at "file://c:\OgreSDK\NxOgre\tutorials\NxTutorials\VC8\Release\BuildLog.htm"
101.Cube on a Plane - 38 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Any ideas?

luis

19-04-2007 10:11:19

it is a name collision... do you have two lines like this?
using namespace OIS;
using namespace Ogre;

try commenting 'using namespace OIS' and use the scope resolution operator for the OIS classes.

ghiboz

17-05-2007 09:37:38


Wheels

wheelSet mWheels;
body* mCube;

myCube = mScene->createBody("myCube","cube.1m.mesh",new cubeShape(Vector3(1,1,3)),100.0f,Vector3(2048,80,2048), "scale:1 1 3");

myCube->mActor->setCMassOffsetLocalPosition(NxVec3(0,-1,0));


myWheels = wheelSet::createFourWheelSet(myCube, Vector3(-1,-0.1f,1.25f), Vector3(-0.75f,-0.1f,-1.25f), 2.5f);

myWheels.addEntities("wheel50cmx10cmx50cm.mesh");



I downloaded the 0.6 from svn, compiled all ok!
i have the error 'cause seems that createBody haven't the last parameter as string:

nxOgre::body *nxOgre::scene::createBody(Ogre::String,Ogre::String,nxOgre::shape *,Ogre::Real,nxOgre::params<rigidbody>,nxOgre::pose)' : cannot convert parameter 5 from 'Ogre::Vector3' to 'nxOgre::params<rigidbody>'

and a question...
where i can download the wheel50cmx10cmx50cm.mesh??

thanks

Xed

17-05-2007 16:54:31

wheel50cmx10cmx50cm.mesh

You can make it by yourself or simple to use cube.1m.mesh

but if you want wheel mesh i can advise something like this
turbosquid.com or http://members.lycos.co.uk/nickm48/wheels.htm

Ultracoder2005

10-06-2007 19:40:33

1>------ Build started: Project: nxOgre, Configuration: Debug Win32 ------
1>Compiling...
1>nxOgre_world.cpp
1>c:\ogresdk\nxogre\source\nxogre_world.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_util_stream.cpp
1>c:\ogresdk\nxogre\source\nxogre_util_stream.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_userallocator.cpp
1>c:\ogresdk\nxogre\source\nxogre_userallocator.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_trigger.cpp
1>c:\ogresdk\nxogre\source\nxogre_trigger.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_textstream.cpp
1>c:\ogresdk\nxogre\source\nxogre_textstream.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_string.cpp
1>c:\ogresdk\nxogre\source\nxogre_string.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_staticGeometryBody.cpp
1>c:\ogresdk\nxogre\source\nxogre_staticgeometrybody.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_statemachine.cpp
1>c:\ogresdk\nxogre\source\nxogre_statemachine.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_stage.cpp
1>c:\ogresdk\nxogre\source\nxogre_stage.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_shape_wheel.cpp
1>c:\ogresdk\nxogre\source\nxogre_shape_wheel.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_shape_soft.cpp
1>c:\ogresdk\nxogre\source\nxogre_shape_soft.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_shape_primitive.cpp
1>c:\ogresdk\nxogre\source\nxogre_shape_primitive.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_shape_mesh.cpp
1>c:\ogresdk\nxogre\source\nxogre_shape_mesh.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_shape_convex.cpp
1>c:\ogresdk\nxogre\source\nxogre_shape_convex.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_shape_compound.cpp
1>c:\ogresdk\nxogre\source\nxogre_shape_compound.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_shape.cpp
1>c:\ogresdk\nxogre\source\nxogre_shape.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_serialiser.cpp
1>c:\ogresdk\nxogre\source\nxogre_serialiser.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_serialisable.cpp
1>c:\ogresdk\nxogre\source\nxogre_serialisable.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_scene_blueprint.cpp
1>c:\ogresdk\nxogre\source\nxogre_scene_blueprint.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_scene.cpp
1>c:\ogresdk\nxogre\source\nxogre_scene.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>Generating Code...
1>Compiling...
1>nxOgre_resourceStream.cpp
1>c:\ogresdk\nxogre\source\nxogre_resourcestream.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_raycaster.cpp
1>c:\ogresdk\nxogre\source\nxogre_raycaster.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_pose.cpp
1>c:\ogresdk\nxogre\source\nxogre_pose.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_particleSystem.cpp
1>c:\ogresdk\nxogre\source\nxogre_particlesystem.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_particleEmitter.cpp
1>c:\ogresdk\nxogre\source\nxogre_particleemitter.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_particleBehaviour.cpp
1>c:\ogresdk\nxogre\source\nxogre_particlebehaviour.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_particleAttractor.cpp
1>c:\ogresdk\nxogre\source\nxogre_particleattractor.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_particle.cpp
1>c:\ogresdk\nxogre\source\nxogre_particle.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_params.cpp
1>c:\ogresdk\nxogre\source\nxogre_params.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_material.cpp
1>c:\ogresdk\nxogre\source\nxogre_material.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_joint.cpp
1>c:\ogresdk\nxogre\source\nxogre_joint.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_iterators.cpp
1>c:\ogresdk\nxogre\source\nxogre_iterators.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_intersection.cpp
1>c:\ogresdk\nxogre\source\nxogre_intersection.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_helpers.cpp
1>c:\ogresdk\nxogre\source\nxogre_helpers.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_group.cpp
1>c:\ogresdk\nxogre\source\nxogre_group.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_graph.cpp
1>c:\ogresdk\nxogre\source\nxogre_graph.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_fluid.cpp
1>c:\ogresdk\nxogre\source\nxogre_fluid.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_error.cpp
1>c:\ogresdk\nxogre\source\nxogre_error.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_debugoverlay.cpp
1>c:\ogresdk\nxogre\source\nxogre_debugoverlay.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_debugnode.cpp
1>c:\ogresdk\nxogre\source\nxogre_debugnode.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>Generating Code...
1>Compiling...
1>nxOgre_controllable.cpp
1>c:\ogresdk\nxogre\source\nxogre_controllable.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_contactreporter.cpp
1>c:\ogresdk\nxogre\source\nxogre_contactreporter.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_cloth.cpp
1>c:\ogresdk\nxogre\source\nxogre_cloth.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_character.cpp
1>c:\ogresdk\nxogre\source\nxogre_character.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_body_blueprint.cpp
1>c:\ogresdk\nxogre\source\nxogre_body_blueprint.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_body.cpp
1>c:\ogresdk\nxogre\source\nxogre_body.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>nxOgre_bodies.cpp
1>c:\ogresdk\nxogre\source\nxogre_bodies.cpp : fatal error C1033: cannot open program database 'c:\compiler\nxogre.vc8\debug\obj\vc80.pdb'
1>Generating Code...
1>Project : warning PRJ0018 : The following environment variables were not found:
1>$(NXOGRE_DIR)
1>$(PHYSX_DIR)
1>Build log was saved at "file://c:\OgreSDK\NxOgre\compiler\compiler\NxOgre.VC8\Debug\obj\BuildLog.htm"
1>nxOgre - 47 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
D: This is bad. I also tried it with release too. It won't work!

betajaen

10-06-2007 19:56:03

You don't have the environmental variables setup. Check on the NxOgre.org install page on how to do it.

Ultracoder2005

10-06-2007 23:15:18

Ok, now I get this.

1>------ Build started: Project: nxOgre, Configuration: Release Win32 ------
1>Linking...
1>LINK : fatal error LNK1181: cannot open input file 'OgreMain.lib'
1>Build log was saved at "file://C:\dev\NxOgre\compiler\NxOgre.VC8\Release\obj\BuildLog.htm"
1>nxOgre - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
This can't be good.

betajaen

10-06-2007 23:48:20

Didn't compile Ogre, or the OGRE_HOME environmental variable isn't setup.

Promo

30-06-2007 17:14:30

Ok, now I get this.

1>------ Build started: Project: nxOgre, Configuration: Release Win32 ------
1>Linking...
1>LINK : fatal error LNK1181: cannot open input file 'OgreMain.lib'
1>Build log was saved at "file://C:\dev\NxOgre\compiler\NxOgre.VC8\Release\obj\BuildLog.htm"
1>nxOgre - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
This can't be good.



You probably just have to perform a small change in your project properties:

Open your project in VS then click: Project -> Properties -> Configuration Properties -> Linker -> Input


to quickly solve the problem just replace OgreMain.lib in "Additional Libraries" with the full path to that file (provided you have compiled Ogre before), e.g.: C:\dev\ogrenew\lib\OgreMain.lib


The reason for this error is that the path to the compiled OgreMain.lib file is outside the scope of the previously set environment variables (see OGRE_HOME)



see you and sorry for the late reply

AnTeevY

05-11-2007 19:30:10

Call me stupid, but I can't find the NxOgre.lib :( There is NO LIBS-folder in my NxOgre folder... I know I missed something stupid, so please tell me what it is! :D

alienskull

05-11-2007 19:57:17

it should be in:

\NxOgre\lib

I'm wondering, have you compiled it?

AnTeevY

05-11-2007 20:34:38

Ah, I have to compile it first? Damn, I got CodeBlocks on Vista, and there's only the CB Project File for Linux which doesn't work (I adjusted all the paths). I tried to create a new OGRE project and include all the necessary files, but I need the libs, too.

betajaen

05-11-2007 21:04:53

Why do you have to cause me pain by using this travesty? Use 0.9.

AnTeevY

05-11-2007 21:33:21

Sorry? I used TortoiseSVN to download NxOgre 0.9 (?) from http://latest.nxogre.org/nxogre3/ .

betajaen

05-11-2007 21:45:18

But you posted in the 0.6 thread? They're totally different pieces of code.

AnTeevY

06-11-2007 07:30:10

oooooops, sorry, I was sure I replied to the other thread... could you help me anyway? I think this isn't 0.6 or 0.9 specific. How can I build NxOgre with CB under Vista?

I always get the error in NxMath.h: "`_asm' was not declared in this scope"...

Romep

10-02-2008 12:34:25

I tried to create a trigger like I did in the earlier 0.4 version but got an error in the log file.

"Supplied NxActorDesc is not valid. createActor returns NULL."

Is there a new way to create them or are the callback triggers not supported in the 0.6 version?

Thanks a lot! :D


I have the same error. How did u solve it?