well, it compiles and runs smoothly, with no error messages on the CS ver 1.4 mechine, but the tiling function does not work-the cover_tex_pxmap is not visible, only the background texture is visible. maybe drawTiled should be treated differently on 1.4 for it to work-an engine flag needs to be set or something along those lines?
--- On Sun, 1/3/10, [email protected] <[email protected]> wrote: From: [email protected] <[email protected]> Subject: Crystal-main Digest, Vol 45, Issue 2 To: [email protected] Date: Sunday, January 3, 2010, 7:04 AM Send Crystal-main mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/crystal-main or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Crystal-main digest..." Today's Topics: 1. DrawTiled and SetRenderTarget-changes? (shahar siman-tov) 2. Re: DrawTiled and SetRenderTarget-changes? (res) ---------------------------------------------------------------------- Message: 1 Date: Sat, 2 Jan 2010 16:23:04 -0800 (PST) From: shahar siman-tov <[email protected]> Subject: [CsMain] DrawTiled and SetRenderTarget-changes? To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" Hello CrystaSpace Team and community and a happy new year! ? The following bit of code works fine on a machine running WinXP SP2, CS VER.1.2.1 and no graphics accelerator, but fails to work on a new machine running WIN7 and CS VER1.4 with a nvidia accelerator: ? csRef<iTextureHandle> cover_tex_handle = loader->LoadTexture("lib/std/colors.jpg", CS_TEXTURE_2D, 0, 0); csSimplePixmap cover_tex_pxmp = csSimplePixmap(cover_tex_handle); // TEXTURE TO BE TILED UPON ( BACKGROUND TEXTURE ): iTextureWrapper *bkgnd_tex_wrap = engine->GetTextureList()->FindByName("tile"); g3d->SetRenderTarget( bkgnd_tex_wrap->GetTextureHandle(), true ); g3d->BeginDraw(CSDRAW_2DGRAPHICS); cover_tex_pxmp.DrawTiled( g3d, 0, 0, 50, 20, 20, 30, 0); g3d->FinishDraw (); ? A review of the API documentation shows no differences between the CS functions in the two CS versions, except SetRenderTarget, which I could not understand what the differece is and how it affects me. Is there something missing from the code that should be there in the 1.4 version, or can the problem be attributed to hardware differeces only? or is it WIN7's fault? :-s ? ideas? -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Sun, 03 Jan 2010 05:18:20 +0100 From: res <[email protected]> Subject: Re: [CsMain] DrawTiled and SetRenderTarget-changes? To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" On 03.01.2010 01:23, shahar siman-tov wrote: > The following bit of code works fine on a machine running WinXP SP2, CS > VER.1.2.1 and no graphics accelerator, but fails to work on a new > machine running WIN7 and CS VER1.4 with a nvidia accelerator: How does it fail? > A review of the API documentation shows no differences between the CS > functions in the two CS versions, except SetRenderTarget, which I could > not understand what the differece is and how it affects me. SetRenderTarget() sets a texture all rendering will then go to. -f.r. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature ------------------------------ ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ------------------------------ _______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main End of Crystal-main Digest, Vol 45, Issue 2 *******************************************
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[email protected]?subject=unsubscribe
