[Robotics] Virtual camera resolution

koen buys koen.buys at mech.kuleuven.be
Fri Apr 30 17:59:25 CEST 2010


Did you also had some problems of changes in exported resolutions when you
copy blender files?

On 30 April 2010 17:41, Gilberto Echeverria <gilberto.echeverria at laas.fr>wrote:

>  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.orghttp://lists.blender.org/mailman/listinfo/robotics
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/robotics/attachments/20100430/c7adeb72/attachment.htm 


More information about the Robotics mailing list