Search found 67 matches

by neil_123
Mon Nov 15, 2010 7:26 pm
Forum: Beginners Help
Topic: Displaying a png frame sequence.
Replies: 17
Views: 1077

Thanks everybody,

For your kind help. I used slavik262's code almost verbatim, and it worked like
a charm.

Best regards
by neil_123
Fri Nov 12, 2010 3:16 pm
Forum: Beginners Help
Topic: Displaying a png frame sequence.
Replies: 17
Views: 1077

So slavik262,

In order to create IImage * from a png or bmp file, I will have to use FreeImage library. Is that right way to go?

Best regards.
by neil_123
Fri Nov 12, 2010 1:40 pm
Forum: Beginners Help
Topic: Displaying a png frame sequence.
Replies: 17
Views: 1077

Thanks slavik262,
Looks like a good instructional material. I am hoping to learn quite a few things from this.
by neil_123
Thu Nov 11, 2010 5:29 pm
Forum: Beginners Help
Topic: Dropping a texture causes segmentation fault.
Replies: 8
Views: 1121

Here is the program, // // // g++ -I/home/laeeq/irrl/irrlicht-1.7.1/include -L/home/laeeq/irrl/irrlicht-1.7.1/lib/Linux tt_2.cc -lIrrlicht -lGL -lXxf86vm -lXext -lX11 // // #include <irrlicht.h> #include <unistd.h> using namespace irr; using namespace core; using namespace scene; using namespace vid...
by neil_123
Thu Nov 11, 2010 12:39 pm
Forum: Beginners Help
Topic: Dropping a texture causes segmentation fault.
Replies: 8
Views: 1121

Thanks slavik262, I replaced the line tex_1->drop(); with this line, driver->removeTexture(tex_1); but this results in segmentation fault right when removeTexture() is called. May be slavik, your technique of copying image to texture is the way to go. Please give me some initial steps or post the co...
by neil_123
Wed Nov 10, 2010 9:19 pm
Forum: Beginners Help
Topic: Dropping a texture causes segmentation fault.
Replies: 8
Views: 1121

Hi Bate, Can you explain what you meant when you said, Yes, Irrlicht loads a texture only once. If I execute following code, ITexture *tex; tex = driver->getTexture("file_1.jpg"); // And then I do tex = driver->getTexture("file_2.jpg"); Where will the pointer tex be pointing in t...
by neil_123
Wed Nov 10, 2010 8:39 pm
Forum: Beginners Help
Topic: Dropping a texture causes segmentation fault.
Replies: 8
Views: 1121

Is it true that, if I do, tex_1 = driver->getTexture("/home/laeeq/multi_media/png_seq/FCAJ_BigWin/FCAJ_BigWin_025.png"); and do this again, tex_1 = driver->getTexture("/home/laeeq/multi_media/png_seq/FCAJ_BigWin/FCAJ_BigWin_025.png"); then this NOT a memory leak? Irrlicht some ho...
by neil_123
Wed Nov 10, 2010 8:31 pm
Forum: Beginners Help
Topic: Dropping a texture causes segmentation fault.
Replies: 8
Views: 1121

Dropping a texture causes segmentation fault.

Hi, I wanted to display an image, and after displaying the image I wanted to free the memory, (so that I can use it to display some other image). Here is what I did, // // // g++ -I/home/laeeq/irrl/irrlicht-1.7.1/include -L/home/laeeq/irrl/irrlicht-1.7.1/lib/Linux tt_2.cc -lIrrlicht -lGL -lXxf86vm -...
by neil_123
Wed Nov 10, 2010 7:00 pm
Forum: Beginners Help
Topic: How Rotate a node 45 degrees around x axis
Replies: 2
Views: 293

For rotating part, wont following way work?

Code: Select all

node->setRotation( vector3df(45, 0, 0) );
by neil_123
Wed Nov 10, 2010 2:13 pm
Forum: Beginners Help
Topic: Displaying a png frame sequence.
Replies: 17
Views: 1077

Hi slavik262, This idea of copying pixels directly onto texture sounds interesting and promising. But I need some help in how to actually do it. I looked into the member data fields of ITexture class, but couldnt find any member where I can copy pixel data into. I would appreciate if you could give ...
by neil_123
Tue Nov 09, 2010 4:07 pm
Forum: Beginners Help
Topic: Displaying a png frame sequence.
Replies: 17
Views: 1077

Aha,

Thanks slavik262 & hybrid for helpful response. I will try these approaches and report back.

Regards
by neil_123
Mon Nov 08, 2010 4:25 pm
Forum: Beginners Help
Topic: Displaying a png frame sequence.
Replies: 17
Views: 1077

Oh sorry, I thought you create the texture with addTexture. But getTexture basically does the same. The point is that a hardware texture is created each time this method is called with a new name. So you have to clean up afterwards. You cannot render an image to the screen, it has to become a textu...
by neil_123
Mon Nov 08, 2010 4:18 pm
Forum: Beginners Help
Topic: Displaying a png frame sequence.
Replies: 17
Views: 1077

Thanks Bate,

Does this player work only on Windows or it can work on Linux also?
by neil_123
Fri Nov 05, 2010 6:07 pm
Forum: Beginners Help
Topic: Displaying a png frame sequence.
Replies: 17
Views: 1077

Thanks hybrid, I am afraid you over-estimated my knowledge of Irrlicht, I didnt get what you meant by " Since you use a method with 'add', " I am using draw2DImage() method. Is this better to use IImage class in this kind of situations, since all I want is just load an image file and displ...
by neil_123
Fri Nov 05, 2010 2:10 pm
Forum: Beginners Help
Topic: Displaying a png frame sequence.
Replies: 17
Views: 1077

I am sorry, the above message got posted pre-maturely. This program works, But my question is, in this approach, shouldn't we be de-allocating memory for the texture generated from each png file? Other wise it seems to me, there is memory leak here, and there will be maximum limit on the number of f...