Saving 3D movie

159 views
Skip to first unread message

Maxine Lam

unread,
Jul 18, 2014, 7:33:39 AM7/18/14
to icy-so...@googlegroups.com
Hi,

Been struggling to get a video of the 3D rendering of my image. It's a timelapse as well, which might be the problem? I've tried to screenshot the image, to save as avi file, but it gives me a black RGB timelapse. I tried Video Recorder as well, which didn't seem to work, because while it was recording I could not scroll through the timelapse, and the eventual saved avi file was also just blank.

Any suggestions at all would be great!

Thanks!
Maxine

Stephane

unread,
Jul 22, 2014, 5:54:45 AM7/22/14
to icy-so...@googlegroups.com
Hi,

The screenshot should be the way to go. Do the black RGB sequence happen after the rendering or after the "save as" operation ? The AVI format used to save file uses an old codec and might not be supported by your video player. If you try to re open the avi file in Icy, does it work ?
Best,

- Stephane

Maxine Lam

unread,
Aug 5, 2014, 9:34:11 AM8/5/14
to icy-so...@googlegroups.com
Hi Stephane,

The black sequence happens after the rendering (taking snapshot). With the Video Recorder, I just get an avi file, that I try to open with VLC media player, and it's also a black sequence. 

Thanks!
Maxine


--
You received this message because you are subscribed to the Google Groups "Icy imaging" group.
To unsubscribe from this group and stop receiving emails from it, send an email to icy-software...@googlegroups.com.
To post to this group, send email to icy-so...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/icy-software/f034a3ca-5376-4dda-9dd3-48b5d70bb27e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephane

unread,
Aug 7, 2014, 5:32:00 AM8/7/14
to
Hi Maxine,

Ok so if i understand correctly you have a 4D sequence (Z+T), you display it in 3D through the 3D VTK canvas and you want to do a rendering of it to save as video right ? Does the 3D VTK view work correctly for you ?
Can you post a link to a sample image so we can test it out ?

I attached a picture with an example of a Z+T sequence display in 3D in the left window and the screenshot rendering of it in the right windows and normally you should be able to get the same result.

Best,

- Stephane




Le mardi 5 août 2014 15:34:11 UTC+2, Maxine Lam a écrit :
Hi Stephane,

The black sequence happens after the rendering (taking snapshot). With the Video Recorder, I just get an avi file, that I try to open with VLC media player, and it's also a black sequence. 

Thanks!
Maxine


On 22 July 2014 10:54, Stephane <stephane.dallongeville@pasteur.fr> wrote:
Hi,

The screenshot should be the way to go. Do the black RGB sequence happen after the rendering or after the "save as" operation ? The AVI format used to save file uses an old codec and might not be supported by your video player. If you try to re open the avi file in Icy, does it work ?
Best,

- Stephane


Le vendredi 18 juillet 2014 13:33:39 UTC+2, Maxine Lam a écrit :
Hi,

Been struggling to get a video of the 3D rendering of my image. It's a timelapse as well, which might be the problem? I've tried to screenshot the image, to save as avi file, but it gives me a black RGB timelapse. I tried Video Recorder as well, which didn't seem to work, because while it was recording I could not scroll through the timelapse, and the eventual saved avi file was also just blank.

Any suggestions at all would be great!

Thanks!
Maxine

--
You received this message because you are subscribed to the Google Groups "Icy imaging" group.
To unsubscribe from this group and stop receiving emails from it, send an email to icy-software+unsubscribe@googlegroups.com.
Sans titre 2.jpg

Maxine Lam

unread,
Aug 7, 2014, 7:40:36 AM8/7/14
to icy-so...@googlegroups.com
Hi Stephane

The 3D VTK works fine in ICY, it's just when I take a screenshot that I get a blank image! The attached picture is what I imagine mine should look like when I click screenshot, indeed. Here is the link to the image I tried to make a movie of - https://www.dropbox.com/sh/kjpaum9jlwd2apc/AAAkCEQL_YiMvSwUN98TIjXya

In the folder is a smaller file, which is the cropped version of the image I am trying to make a movie of. 

Thanks for all the help!

Maxine


On Thursday, 7 August 2014 10:32:00 UTC+1, Stephane wrote:
Hi Maxine,

Ok so if i understand correctly you have a 4D sequence (Z+T), you display it in 3D through the 3D VTK canvas and you want to do a rendering of it to save as video right ? Does the 3D VTK view work correctly for you ?
Can you post a link to a sample image so we can test it out ?

I attached a picture with an example of a Z+T sequence display in 3D in the left window and the screenshot rendering of it in the right windows and normally you should be able to get the same result.

Best,

- Stephane



Stephane

unread,
Aug 7, 2014, 8:57:15 AM8/7/14
to
Hi Maxine,

Thanks for the images ! As you can see in the attached picture, the screenshot worked perfectly for me.
Ok, so now i will try to understand why i didn't worked for you. Can you give me some informations about your system ?
java version, operating system...
You should have these informations in the output console of Icy, when you launch it.
So we can test in the same conditions and try to sort out what is wrong.

My guess is that the renderWindow.GetPixelData(...) method of VTK is returning a blank image instead of the good one. We already experienced some problems with renderWindow.GetRGBACharPixelData(...) method but the one we use now should be more compatible.

We will investigate the problem as soon we receive your system informations :)

Best,

- Stephane
Sans titre 1.jpg

Maxine Lam

unread,
Aug 7, 2014, 10:31:17 AM8/7/14
to icy-so...@googlegroups.com
Hi Stephane

I can't understand why it's not working for me then! I tried it again, and took a screenshot with the output window so you can see what the error message is. It says it's not supported on Canvas3D when I try to do a screenshot with original sequence dimensions, and gives me a blank image. When I do a screenshot without the sequence dimensions, I just get a blank image. 

Thanks!
Maxine


On Thursday, 7 August 2014 13:57:15 UTC+1, Stephane wrote:
Hi Maxine,

Thanks for the images ! As you can see in the attached picture, the screenshot worked perfectly for me.
Ok, so now i will try to understand why i didn't worked for you. Can you give me some informations about your system ?
java version, operating system...
You should have these informations in the output console of Icy, when you launch it.
So we can test in the same conditions and try to sort out what is wrong.

My guess is that the renderWindow.GetPixelData(...) method of VTK is returning a blank image instead of the good one. We already experienced some problems with renderWindow.GetRGBACharPixelData(...) method but the one we use now should be more compatible.

We will investigate the problem as soon we receive your system informations :)

Best,

- Stephane


Screen Shot 2014-08-07 at 15.24.39.png

Stephane

unread,
Aug 8, 2014, 5:52:03 AM8/8/14
to icy-so...@googlegroups.com
Hi Maxine,

The warning message is expected, VTK screen shot rendering only support to render current view and not in original image resolution. But ok now i see you are on OSX 10.9.3 and the black background in Icy is already an indication that something is wrong with the general graphics sub system as it should not be black. Just compare to my the attached picture.
It may be related to your graphics card drivers which are not 100% compatible with the java graphics API, you may chack for drivers update if any exist. Using another java version may fix the problem but as you can see on my screen shot, i'm using the same version as you, with similar operating system (10.9.4 versus 10.9.3).
What we can do on our side is to try to detect when VTK screen shot rendering is returning black data and so use an alternative method in this case.

Best,

- Stephane
Capture d’écran 2014-08-08 à 10.44.41.png

Sylwia Krawczyk

unread,
Nov 13, 2014, 11:24:02 AM11/13/14
to icy-so...@googlegroups.com
Hi both,

The same thing happens to me: I have nice 3D VTK view but when I press screen shot I only see black.

Sylwia
Reply all
Reply to author
Forward
0 new messages