Search found 41 matches

by c.h.r.i.s
Sun Feb 24, 2008 1:25 pm
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: Irrlicth-Newton Demonstration with Irrlicht 1.4, Newton 1.53
Replies: 23
Views: 15864

hi! I checked out the code from gbutcher. I copyed it to Dev C++ (4.9.9.2) and compiled...i started the program and recognized the wood texture error...but this is no problem ... console says, that physicstest.bsp was loaded but i cant see the level... the only thing i can see are two boxes. one is ...
by c.h.r.i.s
Wed Apr 25, 2007 10:52 am
Forum: Beginners Help
Topic: convert System::String^ to PWSTR?
Replies: 1
Views: 323

convert System::String^ to PWSTR?

Hi! There is a function that will read input from the console: System::String^ mystring System::Console::ReadLine(); And i have another function that requires a PWSTR as input. I have googled around but i can find no solution how to convert String to PWSTR. I need this because i want to develop a p2...
by c.h.r.i.s
Mon Mar 19, 2007 4:03 pm
Forum: Beginners Help
Topic: memory problem?
Replies: 5
Views: 396

hm..ok...here is the code: (i know that i have postes this code already in other topics...but i hope it will help other people too ;-) ) At first i have createt a struct: struct world { irr::IrrlichtDevice* device; irr::gui::IGUIEnvironment* guienv;//playergui ISceneManager* smgr; IVideoDriver* driv...
by c.h.r.i.s
Mon Mar 19, 2007 3:46 pm
Forum: Beginners Help
Topic: Irrlicht & C++ Builder
Replies: 1
Views: 219

by c.h.r.i.s
Mon Mar 19, 2007 3:36 pm
Forum: Beginners Help
Topic: memory problem?
Replies: 5
Views: 396

memory problem?

Hi! Iam using Microsofts Visual c++. I have createt a windows forms application with a simple button. If i klick the button irrlicht wil create a window and load the world. When i run the application and open the windows task manager i can see that my application uses 21,532k of Memory. And if i cli...
by c.h.r.i.s
Mon Mar 19, 2007 3:07 pm
Forum: Beginners Help
Topic: copy a pointer to eventreceiver?
Replies: 10
Views: 398

WOW. the solution for this problem is very simple. I dont have to define, call the eventreceiver, and copy pointer to it from init_world(). I have to do this in the function that takes the main loop! Example: init_world(world myworld) { //create world, define variables, load device, load world, etc ...
by c.h.r.i.s
Mon Mar 19, 2007 1:41 pm
Forum: Beginners Help
Topic: copy a pointer to eventreceiver?
Replies: 10
Views: 398

Hm. Okay. That means i cant use the event receiver in that way. Is there a way to derectly ask for events in the main loop? For example: while(device->run) { if(EGET_BUTTON_CLICKED) { if(id==123) {...} } if(KeyInput.Key==KEY_KEY_C) {...} } is that possible?
by c.h.r.i.s
Sun Mar 18, 2007 2:12 pm
Forum: Beginners Help
Topic: copy a pointer to eventreceiver?
Replies: 10
Views: 398

HI! Its still the same error. And i know why: world myBeautifulWorld; is already a pointer (world *myBeautifulWorld;) Thats why world *myBeautifulWorld is defined in the header of a function in my script. And i need to give this pointer to the eventreceiver class from this function. Error occures at...
by c.h.r.i.s
Sun Mar 18, 2007 11:28 am
Forum: Beginners Help
Topic: copy a pointer to eventreceiver?
Replies: 10
Views: 398

Hi! if i use "receiver.myworld=&myworld;" instead of "receiver.myworld=myworld;" compiler says: error C2440: '=' : cannot convert from 'world **' to 'world *'
by c.h.r.i.s
Sun Mar 18, 2007 10:56 am
Forum: Beginners Help
Topic: copy a pointer to eventreceiver?
Replies: 10
Views: 398

copy a pointer to eventreceiver?

Hi! I need to give a pointer to the eventreceiver class. I tried this: class MyEventReceiver : public IEventReceiver { public: world *myworld;//my pointer storage virtual bool OnEvent(SEvent event) { } }; void bla() { world myworld;//struct of everysthing MyEventReceiver receiver; myworld->device->s...
by c.h.r.i.s
Sat Mar 17, 2007 1:44 pm
Forum: Beginners Help
Topic: camera rotation problem (model post fixed)
Replies: 9
Views: 432

Hi! I think "X < -70 or X > 190" is not the problem. All works fine if i try it. (x<-5000 and x > 5000). I think the problem is another. Is there another function that will change properties of "node"? And what do you mean with "mirrors himself"? Do you see the model tw...
by c.h.r.i.s
Sat Mar 17, 2007 12:46 pm
Forum: Beginners Help
Topic: camera rotation problem (model post fixed)
Replies: 9
Views: 432

Hi! can you post the code in here?
by c.h.r.i.s
Sat Mar 17, 2007 12:44 pm
Forum: Beginners Help
Topic: SceneManager->Clear() crashes!
Replies: 6
Views: 1118

Hi! I can not understant your question. Why you want to hide all objects? Yust lay the menu over the scene. Or yust deactivate the camera node. I think your problem is that you have maybe still any pointers, that are pointing to scenenodes that will be erased, if you call clear();

Code?
by c.h.r.i.s
Sat Mar 17, 2007 12:34 pm
Forum: Beginners Help
Topic: irrlicht world struct
Replies: 5
Views: 336

OK! Thanks a lot! This will work: void init_world(world *myworld) { //... } void run_world(world *myworld) { //... } void destroy_world(world *myworld) { //... } world theworld; init_world(&theworld); run_world(&theworld); destroy_world(&theworld); But i have still one problem: I need to...
by c.h.r.i.s
Sat Mar 17, 2007 10:30 am
Forum: Beginners Help
Topic: irrlicht world struct
Replies: 5
Views: 336

irrlicht world struct

Hi! I have made a world struct: struct world { irr::IrrlichtDevice* device; irr::gui::IGUIEnvironment* guienv; ISceneManager* smgr; IVideoDriver* driver; irr::newton::IWorld* p_world; irr::newton::IBody* fairy_body; irr::scene::CCameraRPGSceneNode* mycam; irr::scene::ITriangleSelector* selector; irr...