[C++/Windows] Video Texture for Irrlicht (D3D,OpenGL)

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Ico
Posts: 289
Joined: Tue Aug 22, 2006 11:35 pm

Post by Ico »

Upon launch, the irrlicht window gets black and then goodbye program - windows error reporting... ;)

At least I can hear the sound used in intro.avi.

Code: Select all

Irrlicht Engine version 1.3
Microsoft Windows XP Personal Service Pack 2 (Build 2600)
Using renderer: Direct3D 9.0
NVIDIA GeForce 7800 GTX nv4_disp.dll 6.14.11.5822
Could not load texture: ../intro.avi
dynamic texture created: ../intro.avi
render target created for../intro.avi
Could not load texture: ../test.mpg
dynamic texture created: ../test.mpg
render target created for../test.mpg
Loaded texture: ../dsvt.jpg
static texture created: ../dsvt.jpg
vi-wer
Posts: 93
Joined: Sun May 20, 2007 7:15 pm
Location: Germany
Contact:

Post by vi-wer »

The same happened when i used another color format. As I said there's actually color conversion for two formats, the other two use code from DX SDK sample, that doesn't work (somehow it's trying to write more memory than reserved). But all the other stuff seems to work now.
noreg
Posts: 158
Joined: Fri Jun 23, 2006 6:01 pm
Location: continental europe

Post by noreg »

Hi vi-wer, great plugin. Downloading now. Would it be possible to display a webcam image with it?
vi-wer
Posts: 93
Joined: Sun May 20, 2007 7:15 pm
Location: Germany
Contact:

Post by vi-wer »

Don't know. Should be possible.

But ... well, here's an other build:
http://files.filefront.com//;7604391;;/

This one is the last for now.
I'm convinced that it will work almost perfectly. ( If not you get your money back :D .)

If you experience crashes, your cpu is probably to slow :) .

I need some feedback, so please tell me that it works.
Simson
Competition winner
Posts: 95
Joined: Wed Nov 30, 2005 8:53 am
Location: France : midi pyrénées

Post by Simson »

Hello,
Crash on my pc...So i can't test.
I think my processor is not to slow because it's a core 2 duo E6600 :) .
[edit]
Same problem has ico
vi-wer
Posts: 93
Joined: Sun May 20, 2007 7:15 pm
Location: Germany
Contact:

Post by vi-wer »

Try this example:
http://files.filefront.com//;7628677;;/

It has 3 different dll files, just copy and paste them one by one into the right directory and run the example.
Tell me which one works (no crashes) so that I can finally make a working lib/example package.

If someone wishes I could add support for capture devices (webcam, dvcam, tv card,...). I just need enough requests or a good reason why I should make it. :D
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Post by roxaz »

here is an excelent reason: for learning purposes :)
Ico
Posts: 289
Joined: Tue Aug 22, 2006 11:35 pm

Post by Ico »

All except "no_output" crash.
vi-wer
Posts: 93
Joined: Sun May 20, 2007 7:15 pm
Location: Germany
Contact:

Post by vi-wer »

Here's a new example:
http://files.filefront.com//;7654366;;/

I've made some changes and added a lot of output data. If it chrashes you can tell me the last few lines from the console, so I can see where the problem is.

It also includes a preview example of the new capture device to texture ability (tested with tv card).
Actually it's using the first available capture device. To run the example first run your software and setup the device (e.g. for a tv card select a channel).
Ico
Posts: 289
Joined: Tue Aug 22, 2006 11:35 pm

Post by Ico »

Just unpacked:

Code: Select all

Using renderer: Direct3D 9.0
NVIDIA GeForce 7800 GTX nv4_disp.dll 6.14.11.5822
Could not load texture: ../intro.avi
Entering DSow initialisation
COM initialised
Stop video
DShow initialisation successful
dynamic texture created: ../intro.avi
render target created for../intro.avi
Could not load texture: ../test.mpg
Entering DSow initialisation
 Valid texture format found
 SetMediaType passed
Stop video
DShow initialisation successful
dynamic texture created: ../test.mpg
render target created for../test.mpg
Loaded texture: ../dsvt.jpg
static texture created: ../dsvt.jpg
Entering play cutscene
Stop video
Play video
Begin play cutscene
Begin update texture
no_output:

Code: Select all

Irrlicht Engine version 1.3
Microsoft Windows XP Personal Service Pack 2 (Build 2600)
Using renderer: Direct3D 9.0
NVIDIA GeForce 7800 GTX nv4_disp.dll 6.14.11.5822
Could not load texture: ../intro.avi
Entering DSow initialisation
COM initialised
Stop video
DShow initialisation successful
dynamic texture created: ../intro.avi
render target created for../intro.avi
Could not load texture: ../test.mpg
Entering DSow initialisation
 Valid texture format found
no_update (only one not crashing):

Code: Select all

Irrlicht Engine version 1.3
Microsoft Windows XP Personal Service Pack 2 (Build 2600)
Using renderer: Direct3D 9.0
NVIDIA GeForce 7800 GTX nv4_disp.dll 6.14.11.5822
Could not load texture: ../intro.avi
Entering DSow initialisation
COM initialised
Stop video
DShow initialisation successful
dynamic texture created: ../intro.avi
render target created for../intro.avi
Could not load texture: ../test.mpg
Entering DSow initialisation
 Valid texture format found
 SetMediaType passed
Stop video
DShow initialisation successful
dynamic texture created: ../test.mpg
render target created for../test.mpg
Loaded texture: ../dsvt.jpg
static texture created: ../dsvt.jpg
Entering play cutscene
Stop video
Play video
Begin play cutscene
Begin update texture
No Texture Buffer Update
Update texture done
Pause video
Set Volume
Play video
Play video
original:

Code: Select all

Irrlicht Engine version 1.3
Microsoft Windows XP Personal Service Pack 2 (Build 2600)
Using renderer: Direct3D 9.0
NVIDIA GeForce 7800 GTX nv4_disp.dll 6.14.11.5822
Could not load texture: ../intro.avi
Entering DSow initialisation
COM initialised
Stop video
DShow initialisation successful
dynamic texture created: ../intro.avi
render target created for../intro.avi
Could not load texture: ../test.mpg
Entering DSow initialisation
 Valid texture format found
vi-wer
Posts: 93
Joined: Sun May 20, 2007 7:15 pm
Location: Germany
Contact:

Post by vi-wer »

Thanks Ico.

I've made a new example for testing.
http://files.filefront.com//;7668283;;/

It's different and simpler than the previous one.
The main file is 'no_intro_example.exe' all others are for comparison only.

If you experience problems, try to use other video files. The video size should be a power of 2 (e.g. 128x128).
Anteater
Posts: 266
Joined: Thu Jun 01, 2006 4:02 pm
Location: Earth
Contact:

Post by Anteater »

Cool lib but why is it only for noncommercial purposes?
Athrun
Posts: 2
Joined: Wed Nov 19, 2008 3:43 am

Post by Athrun »

Hi,
I use irrlicht 1.4.1 ,
I use your lib with something wrong,
could you show the code Completely?
Post Reply