Page 1 of 1

Remoting4 / Cluster.Snapshot Method

Posted: 19 Jul 2014, 14:44
by florian
Hi,

I'm looking for the Snapshot method
When testing, it always took render size image and not specified image in parameters

eg : clu(0).Snapshot(0, ImageFormat.PNG, 1920, 1080, Nothing, Nothing, Nothing, Nothing, Filter.High, True, TaskObj)

Any tips on that ?
So few examples from Ventuz... :(

Thanks,

Re: Remoting4 / Cluster.Snapshot Method

Posted: 23 Jul 2014, 09:16
by Karol
Hi Florian!

We are currently updating/fixing the Remoting API. So we will take a look on that.

Cheers
Karol

Re: Remoting4 / Cluster.Snapshot Method

Posted: 23 Jul 2014, 15:54
by Karol
It works for me (V 4.4.2).
And if you call the method with the parameter like above you get a snapshot of the whole render-output scaled down/up to 1920x1080.

Re: Remoting4 / Cluster.Snapshot Method

Posted: 28 Jul 2014, 08:34
by florian
I double check. The bug is really here

Here's snapshot output attached
and source code in vb.net
remotingQH v3 test snpashoot.zip (3.2 Mo) http://f.laboiteaslides.fr/89c8a/

Re: Remoting4 / Cluster.Snapshot Method

Posted: 28 Jul 2014, 10:04
by Karol
Hi Florian!

Are you confused by the fact, that your snapshot is sometimes smaller than the specified 'width' and 'height'?
This happens because the snapshot image is not scaled up.
So if your Renderer has an output size of 1024x768 and you call Snapshot(0, ImageFormat.PNG, 1920, 1080, Nothing, Nothing, Nothing, Nothing, Filter.High, True, yop)
you will get an image of size 1024x768.
If your Renderer has an output size of 1920x1080 and you call Snapshot(0, ImageFormat.PNG, 1920, 1080, 0, 0, 960, 540, Filter.High, True, yop)
you will get an image of size 960x540.

Is this your problem?

Cheers
Karol

Re: Remoting4 / Cluster.Snapshot Method

Posted: 28 Jul 2014, 10:08
by florian
Ok now i understand why it's not the correct size

This should be notified in the API documentation

Have a nice day,

Re: Remoting4 / Cluster.Snapshot Method

Posted: 28 Jul 2014, 10:17
by Karol
Your are right :)
I will add this remark to the documentation.

A nice day for you, too!