Mouse Click to object

Predat0R

01-07-2006 20:01:21

How to change a position of object on clicking the mouse TO HIM???

p.s. Where I can download tutotials for NxOgre on job with the machine(car)??
I want create car simulator =-)))

betajaen

01-07-2006 20:09:39

I don't understand by you mean by "TO HIM".


As for the car tutorial, it comes with preview 3. Its' one of the tutorials starting with x0. x04 I think.

Predat0R

01-07-2006 20:40:41

Yes, mouse click on it's object !

betajaen

01-07-2006 21:43:14

Right, I think I know what you mean.

You click on an object and you drag it in a direction. Almost tying it to a rope around the mouse pointer and body.

If yes; Then I haven't done it in NxOgre exactly (I've had no reason to), but I know Gangsta has done it so if you peek at the code there it shouldn't be to hard to translate over to NxOgre code.

Predat0R

02-07-2006 08:32:21

Why in examples work only in a mode RELEASE. If to start them in DEBUG that Ogre.log:
10:01:24: Loading library .\RenderSystem_Direct3D9
And the program gives out a error:

"Unhandled exception at 0x01052f20 in nxTutorial101_debug.exe: 0xC0000005: Access violation reading location 0x0000000c."

If to carry out the program "Step Into" that a error in ñëåäóùåé to a line: (tutorialsimple.h)
bool setup (void)
{
mRoot = new Root ();!!!!!!!!!!!!!! (Ln 48

The program passes in a file malloc.c Ln 212. And the program gives out a error:

"Unhandled exception at 0x01052f20 in nxTutorial101_debug.exe: 0xC0000005: Access violation reading location 0x0000000c."

Predat0R

02-07-2006 09:28:47

If I add mWorld->debug(true) after mScene = mWorld->createScene(...)
Nothing varies = (((

betajaen

02-07-2006 10:01:27

Because compiling in debug mode has never worked with NxOgre - ever. This is a well known bug, and if you read the documentation you'd know about this.

Wretched_Wyx

02-07-2006 10:58:25

Boy, you'd have to be rushing to not get NxOgre setup with ease. I got my first simple yet satisfying scene setup within hours... And the only reason it took me that long? I had only messed with Ogre for a few days. Prior to that, I'd only had around 2 weeks experience with C++ total.

There is a readme included with NxOgre. And of you can find documentation on the Ogre Wiki, the NxOgre Wiki, and by using that big beautiful orange button up top- SEARCH. This well known problem has been covered way too many times.

These are fundamentals that apply to everyone, and every problem you may have. Look around, use the search button. If there is no answer to your problem, then post it. If you don't follow this etiquette, people notice and will call you on it. :wink:

Predat0R

02-07-2006 13:38:53

I ask a pardon for my nonsense
It is simply difficult to read your documentation as my native language - Russian =)

betajaen

02-07-2006 14:34:26

There is no need to apologise, just remember there is a search function.

And I'm sure there are plenty of websites on the internet to translate NxOgre.org into Russian for you. It may not be the exact translation but it should help you along a bit.