Search found 10 matches

by stepan1117
Tue Mar 31, 2009 9:26 pm
Forum: Beginners Help
Topic: [solved] Convert data to texture(s)
Replies: 11
Views: 1267

Well, Nox, you rock... And I am totally blind and stupid :) Yes, it works like a charm with the correct function. Thank you very much, you saved me another white night :) I'll purify and beautify my code and post it somewhere, since the video player which employs gstreamer is now finished.
by stepan1117
Tue Mar 31, 2009 6:26 pm
Forum: Beginners Help
Topic: [solved] Convert data to texture(s)
Replies: 11
Views: 1267

Uh, okay... I have to place an object to the scene (e.g. cube), set size of front side of this object to the desired texture size and then draw this texture on the cube? Maybe I understand it wrong, because I am still a total beginner to Irrlicht :), but I think I cannot go this way, because I need ...
by stepan1117
Tue Mar 31, 2009 5:17 pm
Forum: Beginners Help
Topic: [solved] Convert data to texture(s)
Replies: 11
Views: 1267

You can call an overloaded version of driver->draw2DImage which scals your image hardwareside. But you have to set a SMaterial before to clean the Renderstates and with your own SMaterial you can use a trilinear filter to improve the result afaik. Thanks for quick answer! Unfortunately, I tried tha...
by stepan1117
Tue Mar 31, 2009 4:16 pm
Forum: Beginners Help
Topic: [solved] Convert data to texture(s)
Replies: 11
Views: 1267

Hint: Usage of a rendertargettexture will speed up the lock/unlock process :) Thanks, I'll use it... BTW, is it possible to resize a texture in irrlicht? I know, that there are many threads about this issue here in the forum, but I am not very clever of them and what I have understood so far is tha...
by stepan1117
Tue Mar 31, 2009 3:01 pm
Forum: Beginners Help
Topic: [solved] Convert data to texture(s)
Replies: 11
Views: 1267

Re: Convert data to texture(s)

Problem solved, it has nothing to do with pitch/stride (hopefully). You have to use the following caps for gstreamer "video/x-raw-rgb,pixel-aspect-ratio=1/1,bpp=(int)32,depth=(int)32,endianness=(int)4321,red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, alpha_mask=(int)25...
by stepan1117
Tue Mar 31, 2009 1:55 pm
Forum: Beginners Help
Topic: [solved] Convert data to texture(s)
Replies: 11
Views: 1267

[solved] Convert data to texture(s)

Hello everyone, I am trying to turn unsigned char * data into the irrlicht texture (from gstreamer, but it is not important here), but I get only some messed B&W picture. The format of input data is video/x-raw-rgb,pixel-aspect-ratio=1/1,bpp=(int)24,depth=(int)24,endianness=(int)4321,red_mask=(i...
by stepan1117
Mon Mar 30, 2009 7:39 pm
Forum: Advanced Help
Topic: Playing movie in texture
Replies: 118
Views: 61136

Hi everyone, I really had to make this working, so I modified the previous code so it can work with the newest ffmpeg and under linux. Here are those two modified files: videoPlayer.cpp #include "videoPlayer.h" #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <iostream> ...
by stepan1117
Thu Mar 19, 2009 6:40 pm
Forum: Beginners Help
Topic: Textures mixing and transparency in general
Replies: 4
Views: 482

Hi, it really works under current 1.6 svn, thanks very much for your help!
by stepan1117
Sun Mar 15, 2009 10:03 am
Forum: Beginners Help
Topic: Textures mixing and transparency in general
Replies: 4
Views: 482

Hi, thanks for your answer, I'll try it as soon as possible. One problem I have now is that I cannot see the EMF_COLOR_MASK flag in Irrlicht 1.5 release. Do I have to use the current svn ver.?

Stepan
by stepan1117
Sat Mar 14, 2009 8:55 pm
Forum: Beginners Help
Topic: Textures mixing and transparency in general
Replies: 4
Views: 482

Textures mixing and transparency in general

Hello everyone, I have a beginner's problem with transparency. The core of my problem is shown on following three figures: http://atomek.cz/sklad/nakres-2d.png On the first one, there is a green box (center) between a camera (on right side) and some blue object (left side). The second one shows a lo...