Search found 34 matches

by Siebenschläfer
Sat Jun 27, 2009 9:08 pm
Forum: Beginners Help
Topic: Convert Image to IrrlichtTexture
Replies: 16
Views: 2420

hm, obviously I've really got a clever compiler... I tried it again with the memcpy method cvCvtColor( frame, m_AplphaFrame, CV_BGR2BGRA ); // must be set to alpha 255 because in OpenCV it is set to 0 cvSet( m_MaskFrame, cvScalar( 0, 0, 0, 255 ) ); cvAdd( m_AplphaFrame, m_MaskFrame, m_AplphaFrame );...
by Siebenschläfer
Thu Jun 25, 2009 3:49 pm
Forum: Beginners Help
Topic: Convert Image to IrrlichtTexture
Replies: 16
Views: 2420

@hybrid: sorry I don't get why is is possible to set vectors or matrices as parameters in the shaders but not an array of pixel values :-/... is it simply just to big? @Sudi: I thought so too but doing like you say did not lead to more speed; because the memcpy method was even a little more slowly t...
by Siebenschläfer
Thu Jun 25, 2009 8:08 am
Forum: Beginners Help
Topic: Convert Image to IrrlichtTexture
Replies: 16
Views: 2420

but I have to fill the texture every loop again with the content of the image data, how should I avoid that?
by Siebenschläfer
Wed Jun 24, 2009 1:43 pm
Forum: Beginners Help
Topic: Convert Image to IrrlichtTexture
Replies: 16
Views: 2420

What I like to try right now is to deliver the imageData of the OpenCV Image to the shader to be returned as texture? Is that possible? What I try is: main: ShadManager->convertTexture( conversionNode ); ShadManager: node->setMaterialType( ( E_MATERIAL_TYPE )m_ConversionMaterial ); ShadCallback: Ipl...
by Siebenschläfer
Sun May 31, 2009 5:29 pm
Forum: Project Announcements
Topic: Glass Pane and Rain Drop refraction demo - Source Included
Replies: 71
Views: 38522

pity :(
by Siebenschläfer
Sun May 31, 2009 9:52 am
Forum: Project Announcements
Topic: Glass Pane and Rain Drop refraction demo - Source Included
Replies: 71
Views: 38522

oh, I see... I tried to implement it into another project but got strange effects: this room: I did the same I did in your project and got this: http://www.uni-koblenz.de/~awollert/storage/box.jpg http://www.uni-koblenz.de/~awollert/storage/boxGlass.JPG so right now you can hardly see but the glass ...
by Siebenschläfer
Sat May 30, 2009 6:25 pm
Forum: Project Announcements
Topic: Glass Pane and Rain Drop refraction demo - Source Included
Replies: 71
Views: 38522

exactly, I wanted to have such a shiny dwarf like in the demo but unfortunately the dwarf was not included in the source code so I don't know what's wrong here :(
by Siebenschläfer
Sat May 30, 2009 4:24 pm
Forum: Project Announcements
Topic: Glass Pane and Rain Drop refraction demo - Source Included
Replies: 71
Views: 38522

the glass is wonderful!

how did you give your own mesh the texture? If I include the dwarf and do

Code: Select all

node->setMaterialType(E_MATERIAL_TYPE(GlassMat));
my result looks pretty like this:

Image
by Siebenschläfer
Fri May 29, 2009 2:54 pm
Forum: Beginners Help
Topic: Convert Image to IrrlichtTexture
Replies: 16
Views: 2420

oh yes, you are right, with an RTT it's really much faster. But I tested it and the while loop is totally as fast as the memcpy, it brings no difference!
by Siebenschläfer
Fri May 29, 2009 10:17 am
Forum: Beginners Help
Topic: Convert Image to IrrlichtTexture
Replies: 16
Views: 2420

ok, maybe this can be moved to snippets because I see that a couple of people tried to convert OpenCV Images to Irrlicht Textures, too, all the same way. Also I don't want to push-up the thread... to first again: I had to convert the OpenCV Image from BGR to BGRA to get it convertible with the textu...
by Siebenschläfer
Thu May 28, 2009 5:04 pm
Forum: Beginners Help
Topic: Convert Image to IrrlichtTexture
Replies: 16
Views: 2420

hm, first: memcpy( &texture, &ardata, frame->height*frame->width*frame->depth ); only returns an access violation. second: no I don't because from opencv I don't receive power2-images... third: how do you mean using 2 textures? within the program all commands are executed sequential or not?!...
by Siebenschläfer
Thu May 28, 2009 12:11 am
Forum: Advanced Help
Topic: Shader kills transparency
Replies: 1
Views: 453

ok, the mistake was that I had to consider the resulting texture from the shader operation must be EMT_TRANSPARENT_ALPHA_CHANNEL_REF :idea:
by Siebenschläfer
Wed May 27, 2009 9:45 pm
Forum: Advanced Help
Topic: Shader kills transparency
Replies: 1
Views: 453

Shader kills transparency

Hello, I made a billboard covered with a texture where all black parts are transparent. IBillboardSceneNode* videoLeftNode = Smgr->addBillboardSceneNode(0, core::dimension2d<f32>(60, 60), vector3df(0,0,0)); videoLeftNode->setMaterialFlag(video::EMF_LIGHTING, false); videoLeftNode->setMaterialType(vi...
by Siebenschläfer
Tue May 26, 2009 1:36 pm
Forum: Beginners Help
Topic: Transparent Billboard
Replies: 3
Views: 350

ok, obviously it was the matter of the rendering order... but now I get another problem: if I build my scene and my billboard, give it the texture and draw it the way posted before the black is invisible. But unfortunately all the rest is transparent, too! But I want to have the black invisible and ...
by Siebenschläfer
Tue May 26, 2009 12:52 pm
Forum: Beginners Help
Topic: Transparent Billboard
Replies: 3
Views: 350

no because in the example there was no need to use it. Beside I also tried it with adding makeColorKeyTexture but it changed nothing.