[Robotics] Virtual camera resolution

Gilberto Echeverria gilberto.echeverria at laas.fr
Fri Apr 30 17:41:19 CEST 2010


Hi Koen,

I assume your question is regarding a camera in the Game Engine.
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:

    matID = VideoTexture.materialID(screen, texture_name)
    display = VideoTexture.Texture(screen, matID)
    display.source = VideoTexture.ImageRender(scene,camera)
    # Define an image size.
    display.source.capsize = [Image_Size_X, Image_Size_Y]

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.

You can find some more information about the VideoTexture module here:
http://wiki.blender.org/index.php/Doc:Manual/Game_Engine/Python_API/VideoTexture
http://lists.blender.org/pipermail/bf-blender-cvs/2008-November/016793.html

Hope this helps.

Gilberto


On 04/30/2010 10:23 AM, koen buys wrote:
> Hi all,
>
> Did one of you already try to set the resolution of a virtual camera 
> to a custom resolution?
>
> Best regards,
>
> Koen
>
>
> _______________________________________________
> Robotics mailing list
> Robotics at blender.org
> http://lists.blender.org/mailman/listinfo/robotics
>    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/robotics/attachments/20100430/f1b61269/attachment.htm 


More information about the Robotics mailing list