Save a jpg image of my scene
#3
Thanks!  I tried what you suggested and it worked great.

I'm using a button to save the image and it works well.  However, I have to add another related feature and I'm having some problems.

The scene has a building with several floors.  I need to save a separate image showing the building with just one floor, then 2 floors, then 3 floors, etc.  I need to do this automatically without having the user press a button for each floor.  I tried two different approaches and both failed.

First, I tried to just draw the image with one floor and immediately save the image.  I get the following error: "Cannot render to bitmap because TargetViewport3D is null"

Then, I figured I needed to wait for the image to be rendered, so I added a timer to wait a few seconds after I draw the image before I try to save it.  It does save without an error, but I get a blank jpg for all floors I'm trying to save.

Can you give me some advice on how to do what I need to do?
  


Messages In This Thread
Save a jpg image of my scene - by z8195aa - 04-19-2019, 04:17 AM
RE: Save a jpg image of my scene - by abenedik - 04-19-2019, 08:35 AM
RE: Save a jpg image of my scene - by z8195aa - 05-12-2019, 03:55 AM
RE: Save a jpg image of my scene - by abenedik - 05-13-2019, 11:51 AM
RE: Save a jpg image of my scene - by z8195aa - 06-03-2019, 01:15 AM
RE: Save a jpg image of my scene - by abenedik - 06-03-2019, 10:26 AM
RE: Save a jpg image of my scene - by z8195aa - 06-03-2019, 10:56 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)