<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Koen,<br>
<br>
I assume your question is regarding a camera in the Game Engine.<br>
As Severin said, we are using the VideoTexure module to simulate the
cameras. It is indeed possible to change the resolution of the images
produced. To do so, you can follow this procedure:<br>
<br>
&nbsp;&nbsp; matID = VideoTexture.materialID(screen, texture_name)<br>
&nbsp;&nbsp; display = VideoTexture.Texture(screen, matID)<br>
&nbsp;&nbsp; display.source = VideoTexture.ImageRender(scene,camera)<br>
&nbsp;&nbsp; # Define an image size.<br>
&nbsp;&nbsp; display.source.capsize = [Image_Size_X, Image_Size_Y]<br>
<br>
I haven't made enough tests, but I think using an arbitrary resolution
can reduce the framerate. It is advisable to use power of two sizes for
the resolution.<br>
<br>
You can find some more information about the VideoTexture module here:<br>
<a class="moz-txt-link-freetext" href="http://wiki.blender.org/index.php/Doc:Manual/Game_Engine/Python_API/VideoTexture">http://wiki.blender.org/index.php/Doc:Manual/Game_Engine/Python_API/VideoTexture</a><br>
<a class="moz-txt-link-freetext" href="http://lists.blender.org/pipermail/bf-blender-cvs/2008-November/016793.html">http://lists.blender.org/pipermail/bf-blender-cvs/2008-November/016793.html</a><br>
<br>
Hope this helps.<br>
<br>
Gilberto<br>
<br>
<br>
On 04/30/2010 10:23 AM, koen buys wrote:
<blockquote
 cite="mid:h2tbb38481f1004300123v197484c9z96d9d79879ebccbe@mail.gmail.com"
 type="cite">Hi all, <br>
  <br>
Did one of you already try to set the resolution of a virtual camera to
a custom resolution?<br>
  <br>
Best regards,<br>
  <br>
Koen<br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Robotics mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Robotics@blender.org">Robotics@blender.org</a>
<a class="moz-txt-link-freetext" href="http://lists.blender.org/mailman/listinfo/robotics">http://lists.blender.org/mailman/listinfo/robotics</a>
  </pre>
</blockquote>
<br>
</body>
</html>