Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

Remoting4 / Cluster.Snapshot Method

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
User avatar
florian
Posts: 58
Joined: 18 Feb 2012, 19:42

Remoting4 / Cluster.Snapshot Method

Post by florian » 19 Jul 2014, 14:44

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,
Florian

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

Re: Remoting4 / Cluster.Snapshot Method

Post by Karol » 23 Jul 2014, 09:16

Hi Florian!

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

Cheers
Karol

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

Re: Remoting4 / Cluster.Snapshot Method

Post by Karol » 23 Jul 2014, 15:54

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.

User avatar
florian
Posts: 58
Joined: 18 Feb 2012, 19:42

Re: Remoting4 / Cluster.Snapshot Method

Post by florian » 28 Jul 2014, 08:34

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/
Attachments
snap_20140728_092920.png
snap_20140728_092920.png (101 KiB) Viewed 5179 times
snap_20140728_092835.png
Florian

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

Re: Remoting4 / Cluster.Snapshot Method

Post by Karol » 28 Jul 2014, 10:04

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

User avatar
florian
Posts: 58
Joined: 18 Feb 2012, 19:42

Re: Remoting4 / Cluster.Snapshot Method

Post by florian » 28 Jul 2014, 10:08

Ok now i understand why it's not the correct size

This should be notified in the API documentation

Have a nice day,
Florian

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

Re: Remoting4 / Cluster.Snapshot Method

Post by Karol » 28 Jul 2014, 10:17

Your are right :)
I will add this remark to the documentation.

A nice day for you, too!

Post Reply