Workspace Save_render_to_file in PNG 32 bits

Technical questions, etc..
User avatar
Emmanuel
Chief Warrant Officer
Posts: 670
Joined: 14 Jun 2009, 06:47

Workspace Save_render_to_file in PNG 32 bits

Post by Emmanuel »

Workspace render's export box supports PNG, JPG, TGA, BMP, HDR.

There is no dialog and not thus options for these formats though ; PNG and TGA, that supports 32 bits information (transparency of the background), are both left to 24 bits mode by default.

Is there any trick to force 32 bit export ?
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Save_render_to_file in PNG 32 bits

Post by trueBlue »

You can render Workspace PNG 24 & 32 bit image(s) from Model
Render Workspace from Model.png
Render Workspace from Model.png (1.1 KiB) Viewed 4916 times
.
Workspace's Render to FIle and Vray's Save to File does render BMP 32 bit image(s) only
PNG 24 bit only
User avatar
Emmanuel
Chief Warrant Officer
Posts: 670
Joined: 14 Jun 2009, 06:47

Re: Workspace Save_render_to_file in PNG 32 bits

Post by Emmanuel »

Using Modeler's dialog box is a solution but it takes more ressources.
On my computer, there is a noticable speed difference when you render a VRay scene from the Modeler versus Workspace. Workspace is 2x faster (at least) !
Did you ever tried to compare ? What is your speed difference ?

Regarding the 32 bits issue, I just found that TGA actually exports its alpha channel ! although it is not obvious at first because the background is rendered (it is not transparent).
- In Photoshop or any other edition software, you can grab the alpha channel and delete the unwanted background.
- It also works in Vegas, the video editing software.

So, yes, it is possible to render_to_file in 32 bits from Workspace, but in TGA file format only, and it requires some additional work in a picture edition software to remove the background.
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Save_render_to_file in PNG 32 bits

Post by trueBlue »

Emmanuel wrote: 16 Dec 2022, 11:35 Regarding the 32 bits issue, I just found that TGA actually exports its alpha channel ! although it is not obvious at first because the background is rendered (it is not transparent).
- In Photoshop or any other edition software, you can grab the alpha channel and delete the unwanted background.
- It also works in Vegas, the video editing software.

So, yes, it is possible to render_to_file in 32 bits from Workspace, but in TGA file format only, and it requires some additional work in a picture edition software to remove the background.
I do not see TGA as a supported image format in Workspace's Render to File
If you have YafaRay4tS and or Vray, then you can render to the TGA format
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: Workspace Save_render_to_file in PNG 32 bits

Post by clintonman »

@Emmanuel
Are you talking about workspace d3d render to file or workspace vray render?
Clinton Reese

http://clintons3d.com
User avatar
Emmanuel
Chief Warrant Officer
Posts: 670
Joined: 14 Jun 2009, 06:47

Re: Workspace Save_render_to_file in PNG 32 bits

Post by Emmanuel »

clintonman wrote: 16 Dec 2022, 18:51 @Emmanuel
Are you talking about workspace d3d render to file or workspace vray render?
I was talking about Workspace VRay render_to_file.

The D3D render to file never handled transparency.
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Save_render_to_file in PNG 32 bits

Post by trueBlue »

@Emmanuel
Hope I did not offend you!
I did take the time to render each supported image format using Workspace's Render to File to verify my reply
I suspected that the BMP format also supported Alpha since it is 32 bits, but still not sure

I also did not catch that you were referring to Vray
What I find odd is Vray's rendered results is different from what you see in the 3D View and or from a Camera View
Do you have any tips with this regard?
Is there some kind of Vray setting for the Zoom level?
Vray rendered results is different from the 3D View.png
User avatar
Emmanuel
Chief Warrant Officer
Posts: 670
Joined: 14 Jun 2009, 06:47

Re: Workspace Save_render_to_file in PNG 32 bits

Post by Emmanuel »

trueBlue wrote: 17 Dec 2022, 19:36 What I find odd is Vray's rendered results is different from what you see in the 3D View and or from a Camera View
Do you have any tips with this regard?
There is a very little difference between WS view and the rendered file but never as much as what you are showing.
On my computer, it is almost identical, in tS7.6 and 7.61 as well.
Can you share that scene ?
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Save_render_to_file in PNG 32 bits

Post by trueBlue »

Emmanuel wrote: 19 Dec 2022, 20:18
trueBlue wrote: 17 Dec 2022, 19:36 What I find odd is Vray's rendered results is different from what you see in the 3D View and or from a Camera View
Do you have any tips with this regard?
There is a very little difference between WS view and the rendered file but never as much as what you are showing.
On my computer, it is almost identical, in tS7.6 and 7.61 as well.
Can you share that scene ?
Camera location is the same as the Perspective View, exactly including FOV = 0.500
Camera View renders almost identical @ 640x480 in Workspace's Render to File and Vray's Render to File
3D View renders are off
This is especially noticeable in close up renders
tS7.61 Beta 8
Attachments
Vray.RsScn
(1.21 MiB) Downloaded 145 times
User avatar
Emmanuel
Chief Warrant Officer
Posts: 670
Joined: 14 Jun 2009, 06:47

Re: Workspace Save_render_to_file in PNG 32 bits

Post by Emmanuel »

I see no différence here.
Tried to move the camera, add an other one, etc... All is fine.

There is probably a bug in your trueSpace settings.
render scene.jpg
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Save_render_to_file in PNG 32 bits

Post by trueBlue »

Emmanuel wrote: 20 Dec 2022, 08:22 I see no différence here.
Tried to move the camera, add an other one, etc... All is fine.

There is probably a bug in your trueSpace settings.

render scene.jpg
Looks like you are showing views from the Camera
As said, "Camera View renders almost identical @ 640x480 in Workspace's Render to File and Vray's Render to File
3D View renders are off
This is especially noticeable in close up renders"
Just to be clear, I am referring to rendered images

Workspace's Render to File 3D View
untitled_00000.png
.
Vray's Render to File 3D View
untitled.png
untitled.png (4.74 KiB) Viewed 3004 times
.
Looking at your screen grab, it looks like you got some funky installation going on
2 Sctipt Editor toolbars showing
The lower 3D View has Vray, 1 and no Model tab
Looks like you have some version of the Unofficial Update, but the Nav toolbar does not have any of the red, blue, or gold toolbox icons
User avatar
Emmanuel
Chief Warrant Officer
Posts: 670
Joined: 14 Jun 2009, 06:47

Re: Workspace Save_render_to_file in PNG 32 bits

Post by Emmanuel »

trueBlue wrote: 20 Dec 2022, 11:28 Looks like you are showing views from the Camera
Same thing on perspective view, isometric, side/top, etc.
I can't reproduce the difference you experience on your side. Here, all looks good.

Perhaps you have an other 3D view window somehow opened, and trueSpace is saving to file that unwanted view.
Do you experience the same issue on an other installation of trueSpace ? Like 7.6 ?
User avatar
Emmanuel
Chief Warrant Officer
Posts: 670
Joined: 14 Jun 2009, 06:47

Re: Workspace Save_render_to_file in PNG 32 bits

Post by Emmanuel »

trueBlue wrote: 20 Dec 2022, 11:28 Looks like you have some version of the Unofficial Update, but the Nav toolbar does not have any of the red, blue, or gold toolbox icons
I am using that tS7.61 installation for testing/tryout purposes mostly, so it is a mess.

For professional work, tS7.6 is more reliable to me.
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Save_render_to_file in PNG 32 bits

Post by trueBlue »

Emmanuel wrote: 20 Dec 2022, 20:50
trueBlue wrote: 20 Dec 2022, 11:28 Looks like you are showing views from the Camera
Same thing on perspective view, isometric, side/top, etc.
I can't reproduce the difference you experience on your side. Here, all looks good.

Perhaps you have an other 3D view window somehow opened, and trueSpace is saving to file that unwanted view.
Do you experience the same issue on an other installation of trueSpace ? Like 7.6 ?
Nope, no other 3D Windows
Yep, tS7.6 too!
I gave up a long time ago rendering images from the 3D View
I strictly render from a Camera View
Maybe our differences are the Display Resolution being used
NVIDIA GeForce GTX 970 @ 1920x1080

Edit: Just did a test and my Display Resolution is relevant
I set a floating 3D View to half of my Display Resolution and rendered using Workspace R2F and Vray R2F set @ 960x540
Now the images are exact
Resolution.png
Resolution.png (4.73 KiB) Viewed 2980 times
.
Off subject, I recently discovered Clinton's 3D Plugin works in tS7.6
I only have a few things ported over from tS7.61
Clintons3DPlugin.png
Clintons3DPlugin.png (3.29 KiB) Viewed 2978 times
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Save_render_to_file in PNG 32 bits

Post by trueBlue »

Emmanuel wrote: 16 Dec 2022, 11:35 Using Modeler's dialog box is a solution but it takes more ressources.
On my computer, there is a noticable speed difference when you render a VRay scene from the Modeler versus Workspace. Workspace is 2x faster (at least) !
Did you ever tried to compare ? What is your speed difference ?

Regarding the 32 bits issue, I just found that TGA actually exports its alpha channel ! although it is not obvious at first because the background is rendered (it is not transparent).
- In Photoshop or any other edition software, you can grab the alpha channel and delete the unwanted background.
- It also works in Vegas, the video editing software.

So, yes, it is possible to render_to_file in 32 bits from Workspace, but in TGA file format only, and it requires some additional work in a picture edition software to remove the background.
Revisited this and discovered that is possible to Render Vray's Background with Alpha using a 32 Bit Black TGA image
Offline Render Animation using the TGA format
Note: The Background.tga image being used in the PhotoRender - Background Image
Vray Background Alpha Image.png
.
Snapshot from GIMP
Alpha Background.png
Attachments
32 Black TGA.zip
(1.33 KiB) Downloaded 125 times
User avatar
Emmanuel
Chief Warrant Officer
Posts: 670
Joined: 14 Jun 2009, 06:47

Re: Workspace Save_render_to_file in PNG 32 bits

Post by Emmanuel »

Workspace's Save_render_to_file always supports the 32 bits alpha chanel when saved in TGA format, even without a transparent background image.

In PNG though, no way. Even with a transparent background. Workspace's PNG export is 24 bits only.

Return to “TechForum”