[Robotics] Virtual camera resolution
Gilberto Echeverria
gilberto.echeverria at laas.fr
Fri Apr 30 18:04:26 CEST 2010
Sorry, I don't understand your question. What do you mean by copying files?
The way we have setup the resolution of cameras in the MORSE simulator
is by defining the X and Y sizes as properties of our camera object.
Then the size is applied by an external python module. So the actual
code to set the resolution is not inside a blender file. So I guess
copying files would not affect us.
What sort of copy are you trying to do?
On 04/30/2010 05:59 PM, koen buys wrote:
> 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 <mailto: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.org <mailto:Robotics at blender.org>
>> http://lists.blender.org/mailman/listinfo/robotics
>
>
>
> _______________________________________________
> 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/2bef8341/attachment-0001.htm
More information about the Robotics
mailing list