x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Single player save game icon in-game creation.

Hi Everyone

So I need help creating a picture from the camera that can then be used in game as a save game icon. and this all needs to be done in-game automatically.

All the save game stuff is working fine. I just need to get an icon so that the player knows what they are loading into.

I hope that makes sense.

I have found "scene capture 2d" That can capture video to a material that I could then put on a save screen using a "Render Target" but this is a dynamic video not a picture.

What I think I need is to make a screen capture function that saves the capture in my HUD materials folder with a spastic name and over weights the existing pic for that games save slot.

I imagine this is a pity common problem for any signal player game.

Thanks

Andrew

Product Version: Not Selected
Tags:
more ▼

asked Sep 01 '14 at 03:19 AM in Using UE4

avatar image

Listerofsmeg
6 1 3 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

there is an option in the scene capture 2d that said "Capture every Fram" disable it and it wil take only on screanshot alt text

tell me if you figured out

answ1.png (25.4 kB)
more ▼

answered Sep 01 '14 at 07:53 PM

avatar image

Amiot
43 6 9 16

avatar image Listerofsmeg Sep 02 '14 at 12:05 AM

I will look now.. Thanks Amiot

avatar image Listerofsmeg Sep 02 '14 at 01:13 AM

Yep that got it working. Thanks Amiot. I will post all the info and a working video shortly

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

You can use the 'HighResShot' console command to take screenshots. This will automatically save the file to hard disk. You can then load this file into a texture and use it to draw on the HUD. https://docs.unrealengine.com/latest/INT/Engine/Basics/Screenshots/index.html

 UTexture2D* SavegameTexture = Cast<UTexture2D>(StaticLoadObject(UTexture2D::StaticClass(), NULL, *(Path)));



more ▼

answered Sep 01 '14 at 03:29 AM

avatar image

mindfane
3.4k 154 52 271

avatar image Listerofsmeg Sep 01 '14 at 04:18 AM

Hi Mindfane thanks for your help.

I am a pit confused.

How do I tell the game to look somewhere outside of the game directory for a texture?

It's the "You can then load this file into a texture" bit that I am not sure about how to do.

I am going to need to do this in C++ aren't I.

avatar image mindfane Sep 01 '14 at 05:13 AM

I think you will need C++.

Here is how you laod it from hard disk: https://answers.unrealengine.com/questions/23440/loading-textures-at-runtime.html

As far as I know the image should reside somewhere down the UE4 game directory.

PS: Checkout the blueprint libraries provided by @Rama (you will find it in the forums). He has written several Blueprint nodes that will help you with stuff like these.

avatar image Listerofsmeg Sep 01 '14 at 05:49 AM

Thanks MindFane

I will look in to it

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Just made a Video tut 10 min long.

http://youtu.be/6cLynJbTq4U

Video is 160min away.

alt text

the actor.png (124.3 kB)
the character.png (166.7 kB)
more ▼

answered Sep 02 '14 at 01:54 AM

avatar image

Listerofsmeg
6 1 3 7

avatar image byte3 Jan 04 '15 at 01:30 AM

Hey Andrew

thanks for sharing!

You wrote you where going to use the captured image for a savegame icon. Im trying to do the same... but got stuck at writing the rendertarget into the savegame.

It always seems like it just stores a reference to my rendertarget .. but i need the value to be stored.

How did you accomplish this?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question