Hi Gary and Tony
Thanks for answering I have been trying Gary's suggestion to create a new render target. Using a render texture vmf file does not seem to work, it displays the texture but does not render to it. At the moment I am trying to use CreateNamedRenderTargetTexture to see if I can create a 512 x 512 render target but that does not seem to be working ether. Is there some other way to re-create the texture? In the rear view mirror tutorial mirrorView is limited to the size of the Render target and "_rt_Camera" is only 256 x 256. Carl -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony "omega" Sergi Sent: 11 March 2008 14:18 To: [email protected] Subject: Re: [hlcoders] How do you change camera Render Target's resolution? -- [ Picked text/plain from multipart/alternative ] I just looked at joel's tut: //Our view information, Origin, View Direction, window size // location on material, and visual ratios. mirrorView.width = 256; mirrorView.height = 128; I haven't actually tested it or anything, but that should be all you have to change. -Tony On Tue, Mar 11, 2008 at 9:52 AM, Garry Newman <[EMAIL PROTECTED]> wrote: > It's created in engine. I'm pretty sure that you can re-create it, > with the same name, and it'll still work. > > Although when you resize it the monitors in levels will get all messed up. > > garry > > 2008/3/11 <[EMAIL PROTECTED]>: > > This is a multi-part message in MIME format. > > -- > > I have been trying to increase the size of the mirror window in the > Rear view mirror tutorial, I think I need to change the > > > > resolution of the render target called by: > > > > ITexture *pRenderTarget = GetCameraTexture(); > > > > > > > > Which calls > > > > > > > > static CTextureReference s_pCameraTexture; > > ITexture *GetCameraTexture( void ) > > { > > if ( !s_pCameraTexture ) > > { > > s_pCameraTexture.Init( materials->FindTexture( "_rt_Camera", > TEXTURE_GROUP_RENDER_TARGET ) ); > > //IMaterial::IsErrorMaterial(); > > // Test texture resolution code > > > > int test1,test2,test3,test4; > > test1=s_pCameraTexture->GetMappingWidth() ; > > test2=s_pCameraTexture->GetMappingHeight(); > > test3=s_pCameraTexture->GetActualWidth() ; > > test4=s_pCameraTexture->GetActualHeight(); > > > > // Test texture resolution code > > Assert( !IsErrorTexture( s_pCameraTexture ) ); > > AddReleaseFunc(); > > } > > > > return s_pCameraTexture; > > > > > > > > When I look at GetCameraTexture in debug mode is calling the > "_rt_Camera" texture but I cannot find it > > > > anywhere, is there some other way of generating a Render Target > texture? > > > > > > > > Thanks > > > > > > > > Carl > > > > > > > > > > No virus found in this outgoing message. > > Checked by AVG. > > Version: 7.5.518 / Virus Database: 269.21.7/1324 - Release Date: > 10/03/2008 19:27 > > > > -- > > [ winmail.dat of type application/ms-tnef deleted ] > > -- > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- -omega -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders No virus found in this incoming message. Checked by AVG. Version: 7.5.518 / Virus Database: 269.21.7/1324 - Release Date: 10/03/2008 19:27 No virus found in this outgoing message. Checked by AVG. Version: 7.5.518 / Virus Database: 269.21.7/1325 - Release Date: 11/03/2008 13:41 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

