On 10.01.2007 17:04, Pablo Martin wrote: > The code at libs/cstool/proctxtanim.cpp that handles this is doing: > > tex->GetTextureHandle ()->Blit (0, 0, mat_w, mat_h, (unsigned char*) > image->GetImageData ()); > > but that doesnt seem to work correctly, strangely if i do the following > instead it works: > > g3d->SetRenderTarget (tex->GetTextureHandle ()); > if (!g3d->BeginDraw (CSDRAW_2DGRAPHICS)) return; > g3d->GetDriver2D()->Blit (0, 0, mat_w,mat_h, (const unsigned > char*)image->GetImageData()); > g3d->FinishDraw (); > > Also reregistering the image and setting the texture handle works, but > is vastly slower than this approach. > > actually the same happened on first pure proctex implementation of the > same concept, but i thought it was something i was doing wrong there > (proctex implementation was more messy). Maybe somebody knows what might > be wrong here? I have checked carefully with mng loader but i dont see > any significant differences in logic.
What are the dimensions of the video? If they're not PO2 that might cause problems. -f.r.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
