Playmaker Forum
PlayMaker Updates & Downloads => Share New Actions => Topic started by: dudebxl on October 04, 2015, 04:36:21 PM
-
[EDIT] "Take camera screenshot" action is now available on the Ecosystem.
2 actions:
- Take camera screenshot - (incl high resolution screenshot) from any camera and save as Png/Jpg
- Take camera screenshot Texture - (incl high resolution screenshot) from any camera and save as Fsm texture only
on ecosystem or https://snipt.net/dudebxl/takecamerascreenshot/
Req: Unity 5 (or Unity 4 pro)
Note: Will not capture the uGUI in screenshot. A bug within Unity itself preventing non-world-space UI items from being captured
any problems post here. thx
-
Downloaded this from the ecosystem tonight (Dec 2015) but get the following error:
Assets/PlayMaker Custom Actions/Application/TakeCameraScreenshot.cs(157,40): error CS0117: `System.IO.File' does not contain a definition for `WriteAllBytes'
I'm using unity 5.1.2
-
Which build are you in? Try pc or mobile build and see if it works.. I dont think action works in webplayer mode due to security reasons. Let me know...
-
Yes, I'm using it for a Webplayer (PC) build.
-
*** update - Default folder bug corrected (on both actions).
-
It is possible to know when the Take camera screenshot Texture ready?
That's quickly ?
I would like to follow up with another action only after the Take camera screenshot Texture was ready.
Maybe a progress bar .. While it was being prepared .
I would like to create the Take camera screenshot Texture particular area only. That is only a camera . Not the entire screen. It is possible?
-
just move to the next state when it is done (finish).. You can build your own progress bar using the states
These actions are only for camera and not screenshot. So place the camera however you want and take a picture from that camera.
-
Hi
using 5.2 pro and windows 7 pro and this action TakeCameraScreenshot
Get this in editor when running scene
Assets/PlayMaker Custom Actions/Application/TakeCameraScreenshot.cs(139,90): error CS0103: The name `saveTexPath' does not exist in the current context
Three times in
(137,57)
(138,83)
(139,90)
if (useMypictures.Value == true)saveTexPath = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)+"/";
else if (!useMypictures.Value && !useDefaultFolder.Value) saveTexPath = filePath.Value;
else if (!useMypictures.Value && useDefaultFolder.Value == true) saveTexPath = Application.persistentDataPath;
Suggestions please??
Cheers
Unclebob
-
OK, my bad, confused with another action. It has been corrected, please update action.
-
Note: Will not capture the uGUI in screenshot. A bug within Unity itself preventing non-world-space UI items from being captured
any way to Capture the GUI today ? unity 2018 ?
-
Hi,
the bug seems to be still present...
Bye,
Jean
-
Hello there! I have a quite weird issue.
I'm using FullBodyIK to change head rotation and aiming. But when I make a screenshot it render hair objects (separate obj attached to character skeleton) where they would be without implementing IK.
As I imagine it's something related to the scripts execution order, update/late update and maybe time for execution, but I don't know what to do, actually.
In my Script Execution Order: AimIK placed before PlayMakerFSM. I tried to make a screenshot with time multiplayer 0, so it's not even relate on my fps, everything was paused at that moment.
(https://snag.gy/RvbGix.jpg)
-
I also have a screenshot with exactly the same frame, but with Motion Blur turned on in a PostProcessing. As you can see it somehow blends and smear the hair objects from the proper position and without IK position. So it definitely make a screenshot a little bit faster then all the necessary scripts in frame are calculating.
(https://snag.gy/CQ1J9O.jpg)
-
Hi,
ok, I have pushed on the Ecosystem a version of TakeScreenshot called TakeScreenShotLateUpdate that should do the job.
also, check TakeCameraScreenshot and TakeCameraScreenshotTexture custom actions also on the ecosystem, they give you more possibilities ( only portion of the content since it comes from a camera you setup)
let me know how it works out
Bye,
Jean
-
Yes! Perfect! Thanks a lot, it works ;D ;D ;D
-
Did you pay attention, that putting the action to LateUpdate fixed the UI issue? New action grab the UI perfectly ;D ;D ;D
Hi,
the bug seems to be still present...
Bye,
Jean
-
hi,
no, I did not test it!! cool!!!
Bye,
Jean
-
Hello.
Please let me know about this Action.
I tried it and found that this Action does not work with
When Screen Setup is set as follows
Res Width=500
Res Height=100
When the Screen Setup is set to the following, the intended range (Res Width, Res Height) is captured with the Camera at the center (as shown in Image 1).
When Screen Setup is set as follows (2)
Res Width=100
Res Height=500
Regardless of the position of the Camera, the height includes all the height that the Camera is capturing, and only the width expands (as shown in Figure 2).
It seems that this problem occurs when the width is longer than the height.
What I would like to do is to capture only the intended area (in the format shown in image 3) with Camera at the center, as in image 1, even in case 2.