Search found 19 matches

by Methuselah
Sat Jun 25, 2011 6:05 am
Forum: Beginners Help
Topic: Reference counter question
Replies: 3
Views: 467

Thanks, I hadn't noticed that both destructors were virtual. I guess it makes sense though.
Anyway, admins - feel free to send my brainfart topic to the nether.
by Methuselah
Sat Jun 25, 2011 3:10 am
Forum: Beginners Help
Topic: Reference counter question
Replies: 3
Views: 467

Reference counter question

I was poking around the source and noticed something about the reference counter. The line that actually destroys the object in the drop function is in IReferenceCounter, which most classes inherit from. But does "delete this;" in the context of an IReferenceCounter object delete any memor...
by Methuselah
Sun Dec 23, 2007 11:48 am
Forum: Beginners Help
Topic: Problem with draw2DImage
Replies: 6
Views: 354

This is most of the source. I've haven't included the classes but they only have the definitions of the variables and function prototypes. The project is barely beginning and I wanted to start with a basic GUI of my own. In terms of "not working" - I mean I get the "Do you want to sen...
by Methuselah
Sat Dec 22, 2007 8:44 pm
Forum: Beginners Help
Topic: Problem with draw2DImage
Replies: 6
Views: 354

Well, I tried that and it did not work. I also tried to have the Button objects created directly from the addButton function and then deleted by the destructor of the GUI object, but that did not work as well.
by Methuselah
Fri Dec 21, 2007 7:47 pm
Forum: Beginners Help
Topic: Problem with draw2DImage
Replies: 6
Views: 354

Prep GUI mygui; //the main gui object Button button(driver->getTexture("irrlichtlogo.jpg"),NULL,NULL,core::position2d<s32>(10,10)); //creates a button mygui.addButton(&button);//adds the button to the gui Main Loop while (device->run() && driver) { u32 time = device->getTimer()...
by Methuselah
Fri Dec 21, 2007 6:45 pm
Forum: Beginners Help
Topic: Problem with draw2DImage
Replies: 6
Views: 354

Problem with draw2DImage

I was trying to create my own gui and decided to have all the elements in the gui drawn by the main gui object, so there is a simple function that calls draw2DImage with each element's ITexture*. The problem is that once that is in a separate function it no longer works. It works fine when the actua...
by Methuselah
Thu Jan 04, 2007 8:19 pm
Forum: Beginners Help
Topic: Turning toward coordinates
Replies: 1
Views: 139

Turning toward coordinates

How can I turn a mesh toward certain coordinates?
by Methuselah
Mon Jan 01, 2007 6:19 pm
Forum: Beginners Help
Topic: Transparency (alpha channel) ?
Replies: 1
Views: 297

Transparency (alpha channel) ?

How can I use alpha channel transparency with textures?
The 'textures' part is optional, I am trying to draw a 2d image with transparent edges
by Methuselah
Sat Dec 30, 2006 8:39 pm
Forum: Beginners Help
Topic: Moving the camera
Replies: 3
Views: 289

Because it is a RTS
by Methuselah
Sat Dec 30, 2006 8:12 pm
Forum: Beginners Help
Topic: Moving the camera
Replies: 3
Views: 289

Moving the camera

I am testing some camera movement and I could not get it to work so I just copied the code from the movement tutorial and that did not work either. Here is the class class CameraMovement : public IEventReceiver { public: -------virtual bool OnEvent(SEvent event) -------{ --------------if (camera != ...
by Methuselah
Tue Dec 26, 2006 5:02 pm
Forum: Beginners Help
Topic: Spaceship movement
Replies: 1
Views: 195

Spaceship movement

I'm trying to create a freelancer-like movement
This is what I've come up with:
Image

Do you have an idea how to do this?
There are a lot of vectors in it
by Methuselah
Sat Dec 23, 2006 7:10 pm
Forum: Beginners Help
Topic: Rotation in degrees
Replies: 2
Views: 220

Rotation in degrees

The getRotation() function returns a vector3df.
How can I get the rotation in degrees (radians is fine too)?
by Methuselah
Fri Dec 22, 2006 10:12 pm
Forum: Beginners Help
Topic: See-through model problem
Replies: 2
Views: 217

See-through model problem

I have a sort of hard to explain problem. I have a model that I load in irrlicht. The problem is that when I view it, the parts behind other parts appear in front of them... something like a screwed up zbuffer camera some object; other object ->................|.....................| ..................
by Methuselah
Fri Dec 22, 2006 11:27 am
Forum: Beginners Help
Topic: Stars background
Replies: 1
Views: 247

Stars background

How do you set an image (texture) to be the background of the entire scene?
I mean, if you have a space simulation, you would like to have some stars in the background.
by Methuselah
Fri Dec 22, 2006 11:25 am
Forum: Beginners Help
Topic: protect my models
Replies: 50
Views: 4424

You can create your own model files. Of course this means you would have to import them on your own, for which you need to know a lot about how irrlicht works. You will also be able to use some kind of encryption too. The other problem, except for manual import, you will need to write either a 3D mo...