(no subject)

New Message Reply Date view Thread view Subject view Author view

Jean-Claude Bachmann (jean-claude.bachmann++at++artemedia.de)
Thu, 16 Oct 1997 17:25:11 +0200


Anita Kishore wrote:

> I am trying to map live video feed from DIVO onto a pf texture
> of a geometry. I couldn't find any pf based sample code in the distribution.
> Any sample code from anyone is greatly appreciated.
>
> In the program that I am trying, I do the foll. steps:
>
> - configure DIVO video src, drn nodes etc.
> - get video image in dmBuffer
> - configure pf texture to receive video image
> using the pfTexLoadMode call with PFTEX_SOURCE_IMAGE
>
> - every frame in the channel Draw callback
> - get image dataPtr from dmBuffer
> - use this image ptr in pfTexImage call
> - load tex into tram
>
> The DIVO related parts are taken from the opnGL example.

yes, I did the same.

> The result that I get is totally bad. The problems that I have seen so far
> are:

> - I don't get a valid dmBuffer every frame

I encountered exactly the same problem when calling vlDMBufferGetValid, errno is set to VLAgain
all the time.Any suggestions, what I am doing wrong.

> - the mapped image is all garbage
>

You are using a packing of VL_PACKING_4444_8 and a texture format of PFTEX_RGB_5 .That could be
problem, try using PFTEX_RGBA_4, but I am not sure about it, or try the 32 bit versions of both.

> - giving the scale factors in the tex matrix does not work properly
> - I am sure there are other problems too.
>
> I am enclosing my code with this mail for anyone interested in it.
> Any help with this idea or someother idea for mapping live video
> onto texture is welcome. Too bad that DIVO can't transfer video
> directly into TRAM like Sirius. I wonder what the reason can be...

I would like to have a pointer as well, please

J.C.

begin: vcard
fn: Jean-Claude Bachmann
n: Bachmann;Jean-Claude
org: Artemedia Productions GmbH
adr: ;;Hardenbergplatz 2;10623 Berlin;;;Germany
email;internet: jean-claude.bachmann++at++artemedia.de
title: Software Development Department
tel;work: +49 [0]30 25443 - 0
tel;fax: +49 [0]30 25443 - 400
tel;home: +49 0172 - 219 13 76
note: http://www.artemedia.de/
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
version: 2.1
end: vcard

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:05 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.