Search found 54 matches

by Tanuva
Sat May 05, 2007 6:28 pm
Forum: Beginners Help
Topic: Having the IrrlichtDevice in a main game class
Replies: 8
Views: 377

Having the IrrlichtDevice in a main game class

I should return to c#... I simply want to have the IrrlichtDevice, IVideoDriver and ISceneManager collected in a central class CGame. Trying to do it like this: Extract from the header (constructor): IrrlichtDevice* device; video::IVideoDriver* driver; scene::ISceneManager* smgr; And the correspondi...
by Tanuva
Thu May 03, 2007 5:33 pm
Forum: Beginners Help
Topic: How OpenGl is updated ?
Replies: 4
Views: 354

I think the opengl part comes with your graphics driver, it has (luckily) nothing to do with m$ directx. You might consider installing a new graphics driver, that should help...
by Tanuva
Thu May 03, 2007 5:31 pm
Forum: Beginners Help
Topic: Textures better choice drawn or pic
Replies: 3
Views: 188

Depends on where/how you use it. For a single bloom, a photo would be the better choice - for repeating patterns like grass, a texture would be the method to choose. Why? A texture is (hopefully!) tileable, that means you can put two of them next to each other and cant see the border between them. O...
by Tanuva
Thu May 03, 2007 2:23 pm
Forum: Beginners Help
Topic: How to get a 3D position from 2D screen coordinates
Replies: 4
Views: 309

Arr! I tried that way, but wrote vector2df.x instead of *.X - case sensitiveness can be damn tricky... Thanks! :D
by Tanuva
Thu May 03, 2007 2:07 pm
Forum: Beginners Help
Topic: How to get a 3D position from 2D screen coordinates
Replies: 4
Views: 309

A little variation of the question: How do I get a vector3df from a vector2df? I gonna work with 2d values in my game (2d math - 3d gfx) and the scenenodes want 3d vectors for their positions... Since simply reading the two directional values from the vector2df doesnt work (no methods to access them...
by Tanuva
Wed May 02, 2007 7:57 pm
Forum: Beginners Help
Topic: how to instantiate core::string
Replies: 2
Views: 169

Ha, thats it. Thanks!
by Tanuva
Wed May 02, 2007 7:11 pm
Forum: Beginners Help
Topic: how to instantiate core::string
Replies: 2
Views: 169

how to instantiate core::string

Ive checked the documentation for an irrlicht-specific string class - and I found irr::core::string. But how to I get an instance of that class to use it? These two template parameters confused me. I know how to deal with the template-thing in f.e. dimension2d, but what should I do here to get a str...
by Tanuva
Tue May 01, 2007 7:09 pm
Forum: Beginners Help
Topic: [solved] strange g++ error
Replies: 10
Views: 383

HA! Solved! Thanks to quaak from [#c++.de|Quakenet]. :)
I only had to add the implementation file of the eventreceiver to the compiler call... Stupid, I am! :D
by Tanuva
Tue May 01, 2007 11:20 am
Forum: Beginners Help
Topic: 2-sided texture
Replies: 4
Views: 234

Afaik it does not because polygons only have one upside and only that one is being textured...
by Tanuva
Tue May 01, 2007 10:57 am
Forum: Beginners Help
Topic: Problem with the events
Replies: 19
Views: 609

You create an array for the keys you want the camera to be controlled with. Your EventReceiver stores the pressed key(s) in the array and passes it to the camera then. Now the camera can move itself according to the pressed keys.
by Tanuva
Tue May 01, 2007 10:49 am
Forum: Beginners Help
Topic: [solved] strange g++ error
Replies: 10
Views: 383

ARR! Never change a running program... I wanted to put the EventReceiver in its own header and cpp files - but now g++ produces a really strange error message: /tmp/ccYFfx16.o: In function `CEventReceiver::CEventReceiver()': main.cpp:(.text._ZN14CEventReceiverC1Ev[CEventReceiver::CEventReceiver()]+0...
by Tanuva
Tue May 01, 2007 10:24 am
Forum: Beginners Help
Topic: [solved] strange g++ error
Replies: 10
Views: 383

Hey, I found what was wrong. I tried to link the static library which was generated by default but I needed the shared object - made one and now it magically compiles. ;)
by Tanuva
Mon Apr 30, 2007 4:57 pm
Forum: Beginners Help
Topic: [solved] strange g++ error
Replies: 10
Views: 383

If I leave out that "strange thing" ( ;) ), it produces that undefined reference to createDevice - but which other libraries do I have to link? Isnt Irrlicht all I need? *confused*

I've written simple Irrlicht apps before, but 1.3 seems to have changed a lot...
by Tanuva
Mon Apr 30, 2007 3:56 pm
Forum: Beginners Help
Topic: [solved] strange g++ error
Replies: 10
Views: 383

The long one is this: IrrlichtDevice *device = createDevice(driver, dimension, bpp, bool, bool, bool, eventreceiver, [something strange]); Where I dont get it compiled using this one like you can see above. I'm sure there's also a shorter one... Cant find it at the moment. And no, I'm not linking ag...
by Tanuva
Mon Apr 30, 2007 2:26 pm
Forum: Beginners Help
Topic: [solved] strange g++ error
Replies: 10
Views: 383

I cant use the extended version - if I try to, it says the same... Okay, then I gonna use the simple one. But how can I pass the event receiver to the device this way?