Hi,
My problem is concerning the snapshot in 3DVia Studio. I wanted to create a system which saves the entire 3d view window.
For this, i use this code:
vkImagePtr image = vkImage::CreateInstance();
//Create the image (520,520 represent the width and height of the window)
int e = image.Create(520, 520, vkPixelFormat::RGBA);//screenshot
vkRenderManager::InstancePtr().GetDevice(0).Capture(*image);//output path
path.Create([path], [file name]);
//saving
image.Save( path );
The problem is:
I can provide a screenshot. BUT,
1) The size of this screenshot depends to the size of the 3D view window. I can change the width or height value in the "Create" Methods (I’ve tried image.Create(0,0, ...);), but the screenshot still have the same size.
2) The screenshot began at the origin position of my screen, not at the origin position of my 3D view window. In my case, I need to put my 3D view window in a specific place. And this place is not in the top-right corner...
So, if somebody has already created a snapshot system with 3DVia Studio, could he please tell me which is the matter?
Did I use the wrong method?
Or something else more mysterious?
Thanks in advance for responses!
Samuel
PS : I've attached 2 files which explain this problem:
- The first one (CaptureFULL.jpg) represent my full screen.
- The second one (Capture3DVia) represent the screenshot. As you can see, I save the top right corner of my screen with the size of my 3D view Window...


