NxOgre Tutorials

radsun

20-08-2008 10:24:18

Hi there,
i started to writing toutorials for NxOgre.
I'll try to write one a day :D

Here's come th first tutorial:
Simple Sample
That's what you can find in it:
* 1 What do you need
* 2 Compiling NxOgre
* 3 Creating new project
* 4 Initializing nxogre
* 5 Simple box on floor
* 6 Source code

Link to tut: http://www.ogre3d.org/wiki/index.php/Nx ... ple_Sample
Link to category: http://www.ogre3d.org/wiki/index.php/Ca ... _Tutorials

:)

betajaen

20-08-2008 10:27:05

It's quite nice; but you should put the classic one-line to create a body code in there, best before you explain NodeRenderable and Actor params. Otherwise it will confuse people when they see it done otherwise.

radsun

20-08-2008 10:31:31

Classic? you mean that:
Actor* mActor = mScene->createActor("Spot", new Cube(1.0f), Vector3(0, 2, 0), "mass: 10");
:?:

I'll change it, it's better and shorter :wink:

xadh00m

20-08-2008 12:26:47

Hey thanks for your work on this! :P

radsun

20-08-2008 19:03:46

What do you think about it now betajen?

I hate theory but the first tutorial is almost only theory. Next will be more practical :roll:

betajaen

20-08-2008 19:13:24

I dunno. It's more there, and you are teaching some new things. But there are some things need to be fixed.

- You are copying some things directly from the guide. Which I don't mind, but you have to rewrite what you copied, or better still use the guide as inspiration and write your own.
- Some parts are quite complicated and hard to read; i.e. describing what the params.
- Some of your C++ code could be simplified and cleaned up.
- You need a proof-reader/editor that a natural English speaker to clean it up. i.e. bodys => bodies, u = you.

Take it as constructive criticism. I know how hard it is to write documentation, and even I have help with it.

radsun

20-08-2008 19:37:15

I dunno. It's more there, and you are teaching some new things. But there are some things need to be fixed.

- You are copying some things directly from the guide. Which I don't mind, but you have to rewrite what you copied, or better still use the guide as inspiration and write your own.
- Some parts are quite complicated and hard to read; i.e. describing what the params.

:roll: that's right i just copyed a part about physx params :oops:
i have no idea how to write it myself. You made it to complicated, in physx some things are easyer, some not.
- Some of your C++ code could be simplified and cleaned up.
give me a line of my code that can be writen more simply.
I know that source code in wiki looks very poor(all code is black) but originaly it's look much better
-[You need a proof-reader/editor that a natural English speaker to clean it up. i.e. bodys => bodies, u = you.
sorry but im not from england, but anyway you using even more waird words like dunno :D

Wiki is a open source, maybe someone reading this will write it better.

mcaden

21-08-2008 05:45:23

There's a difference between a professional writing and something you'd write on a forum, IM, or e-mail.

The wiki should be something that is professional, easy-to-read, and grammatically correct.

I tried to fix it. It's the best I can do without rewriting the whole thing. I didn't mess with the last, larger bits of code.

radsun

21-08-2008 08:31:55

There's a difference between a professional writing and something you'd write on a forum, IM, or e-mail.
I know that but my writing style is a bit chaotic :twisted:

Anyway, thanks for your hard work reading it :roll:

I'll keep writing new toutorials ;)

ramar

24-08-2008 11:54:12

There is an error at the end of the SimpleSampleApplication::CreateScene


mNxScene->createActor(new Terrain(

unclepauly

28-08-2008 19:47:17

i think its a good tutorial, thanks !

i used OgreNewt as a wrapper around the Newton physics library in a game i made last year. im going to re-do the game now with NxOgre because Newton has a major bug that i cannot work around. and this tutorial was a perfect starting point.

cheers !

maroxe

28-08-2008 20:13:26

thanks a lot for your tutorials, i's really helpfull ;)

Jallen

01-09-2008 12:51:06

This is really useful, thanks.

One little thing which isn't great.
ExampleApplication.h - It's possibly the most annoying file i've ever come across and it took me a while to find tutorials which didn't use it, thanks to Nullsquared's softshadow demo.

Xenomorph

06-03-2009 22:41:15

Hi everybody!
I tried this tutorial and I compiled it with no errors. Then I ran it and i only had a black screen. So I thought I might have done a little mistake somewhere. So I copied the complete provided source code into my program and I had the same result (no compile errors but only a black screen after running). Does anybody know what I could have done wrong.
Any help would be appreciated.
Thanks in advance!

Oh, btw, I had to include the NxOgreStatic_d.lib instead of the NxOgre_d.lib, because after compiling NxOgre the NxOgre_d.lib did not exist. Only the NxOgreStatic_d.lib existed. Could that be the reason why it didn't run? If yes, what do I do?

gmz1982

11-03-2009 16:23:41

The NxOgre_d.lib will be created if you choose "Debug" from the solution target instead of "Debug_static". ( drop-down list up high in the middle :) )

Indecom

29-06-2009 09:01:31

i ended up copying the files from sdk into NXOGRE_DIR/lib and /include respectively and renamed NxOgre_debug.lib to make things easier for future projects, and that worked, but i'm still getting these 2 errors:

c:\users\chris\documents\visual studio 2008\projects\nxogre test\nxogre test 1\nxogre test 1\definition.h(106) : error C2664: 'NxOgre::World::World(NxOgre::WorldPrototype *)' : cannot convert parameter 1 from 'const char [30]' to 'NxOgre::WorldPrototype *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\users\chris\documents\visual studio 2008\projects\nxogre test\nxogre test 1\nxogre test 1\definition.h(113) : error C2661: 'NxOgre::World::createScene' : no overloaded function takes 3 arguments


I dont know what i can do to fix it, it happens when i follow the NxOgre Simple Sample tutorial on the wiki, copied it exactly and it still gives me that. not sure what to do really

prchakal

12-11-2009 13:09:01

i get the same problem, how you solve?

spacegaier

12-11-2009 16:50:39

Because the tutorials you followed (this strange Simple Sample thingy) was written for an old and outdated NxOgre version. Have a look at the NxOgre portal and follow my tutorials there.

Shinigami

07-12-2009 16:43:24

Hi:

I been following the first tutorial, when I compile the project he doesn't have any bug's but in runtime there is this error that is driving me crazy:


OGRE EXCEPTION(4:ItemIdentityException): An object of type 'Entity' with name '-Entity' already exists. SceneManager::createMovableObject at f:\codingextra\ogre\shoggoth_vc9\ogre\ogremain\src\ogrescenemanager.cpp (line 6136)


I manage to pinpoint the error to this line of code:
mCube2 = mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Vec3(0, 20, 0), "cube.1m.mesh");

Is in the second create cube line,(above) I suppose I have to give to the new shape a unique name but I don't know how do that.

Is there a way to do that????

I would appreciate any help.

Shinigami out.....