×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Video As Texture Over Mesh

Video As Texture Over Mesh

Video As Texture Over Mesh

(OP)
Hi,
Is there any sample on the web or a bit of source code to do the above. I want basically the 'Video (LIVE) coming from a source (like USB Webcam/Other Capture Device) to be loaded as a Texture over the 'Mesh (loaded from a .X file)'. Will appreciate any type of help in this regard.

Best Regards,
Sudhaom

RE: Video As Texture Over Mesh

Hi,

Did you already look at the folllowing DShow samples:

...\samples\Multimedia\DirectShow\Players\Texture3D
...\samples\Multimedia\DirectShow\Capture\PlayCap and more.

greetings Pjotr

RE: Video As Texture Over Mesh

(OP)
Thanks Pjotr,
Yes already looked at Texture3D9 whic shows Live Video on a Waving Flag. But in my cases the Mesh Object plus the animation is to be loaded from a .X file.

So I got another sample MeshView from 'Direct3D Extras' and now I guess I need to combine both of these so as to get the desired result of 'mapping live video on an .x object as texture'.
Basically my problem is I am quite new to DirectX and trying to merge these 2 samples from almost 3 days but not able to sort it out. Therefore I asked for some sample/code already there of my choice.

Best Regards,
Sudhaom

RE: Video As Texture Over Mesh

Hi,

I am more skilled in the video part. I haven't used Direct3D that much. Not yet anyway.

Good luck,
Pjotr

RE: Video As Texture Over Mesh

you just have to load a .X object that use a texture. and when loading don't load the texture and create your own texture that you refresh with your video before using it with the loaded mesh.

RE: Video As Texture Over Mesh

(OP)
Thanks,
Yes that's what I am trying.
Since I have been into DirectX programming recently, to combine Code of Direct3D MeshView ex. and DShow Texture3D9 ex. is a bit difficult.
Any way I am still working to finish it.

Best Regards
Sudhaom

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close