Danilo wrote:Nice example, but the PureBasic implementation of OGRE still has BIG problems.
First test some days ago just crashed your program after moving forward with the cursor key
in Fullscreen mode. Now i tested again:
The Mouse Cursor is not captured in fullscreen mode, so i can not look around.
It works in windowed mode.
I changed OpenControls() to OpenControls(1) to display the GUI. It worked!
After clicking the last UpDown Control (for ScaleV) of the GUI in fullscreen mode,
i got a bluescreen, memory dump, and PC rebootet.
This 3D Engine stuff is still not useable if it crashes everywhere with VC++ isNaN()
runtime errors or if it crashes the whole operating system and reboots.
- Windows 7 x64 Ultimate
- AMD Radeon HD 6950 with 2GB memory
- Intel Core2 Quad CPU Q9450 with 8GB memory
isNaN is a result of not allowed data submitted to the PB-OGRE implementation.
It is annoying that you don't get a Debugger-Message at the right line, but
as long as such checks aren't implemented, you can only search yourself against
this call. It is not a bug, it is more like an IMA because of not checked memory-
calls.

With a little bit of luck you can find the error inside of OGRE.log
or CEGUI.log ... good to check this files always when you have problems.
And i remember i had similar problems at my start. Don't know what i have changed
then ... my used coordinates in my game are always positive, could be related to
that.
Or the MoveXXX-Commands are buggy, i always use LocateXXX for absolut position.
The Mouse-cursor is never captured by CEGUI, you need to submit the coordinates
to CEGUI by calling InputEvent3D(...) and ShowGUI(255, #True) or displaying
your own mousesprite at the current position.
I don't know what is really going wrong, i never had a bluescreen since my
development with PB-OGRE. But it is really hard to get a own created GUI
work. That is really a big problem especially many commands are still
unusable. But Fred knows that and hopefully we get fixes with 4.61.
MFG PMV