Thanks everybody,
For your kind help. I used slavik262's code almost verbatim, and it worked like
a charm.
Best regards
Search found 67 matches
- Mon Nov 15, 2010 7:26 pm
- Forum: Beginners Help
- Topic: Displaying a png frame sequence.
- Replies: 17
- Views: 1077
- Fri Nov 12, 2010 3:16 pm
- Forum: Beginners Help
- Topic: Displaying a png frame sequence.
- Replies: 17
- Views: 1077
- Fri Nov 12, 2010 1:40 pm
- Forum: Beginners Help
- Topic: Displaying a png frame sequence.
- Replies: 17
- Views: 1077
- 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...
- 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...
- Wed Nov 10, 2010 9:19 pm
- Forum: Beginners Help
- Topic: Dropping a texture causes segmentation fault.
- Replies: 8
- Views: 1121
- Wed Nov 10, 2010 8:39 pm
- Forum: Beginners Help
- Topic: Dropping a texture causes segmentation fault.
- Replies: 8
- Views: 1121
- 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 -...
- 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) );
- 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 ...
- Tue Nov 09, 2010 4:07 pm
- Forum: Beginners Help
- Topic: Displaying a png frame sequence.
- Replies: 17
- Views: 1077
- 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...
- Mon Nov 08, 2010 4:18 pm
- Forum: Beginners Help
- Topic: Displaying a png frame sequence.
- Replies: 17
- Views: 1077
- Fri Nov 05, 2010 6:07 pm
- Forum: Beginners Help
- Topic: Displaying a png frame sequence.
- Replies: 17
- Views: 1077
- 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...