NewsUnrealEdFilesModsFragBULiandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 3rd Nov 2009, 12:27 PM   #1
AdamTheRaelian
Registered User
 
Join Date: Jul. 26th, 2009
Posts: 29
Taking photographs

Is there a way for the player character to take pictures (using a camera, digital maybe) for getting a photo (a bitmap), saving it and retrieving it? In other words, taking a screenshot and manipulating it as described before? I believe that Bioshock accomplished using the UT3 engine. Any help is appreciated.

Also like to know how to setup an overlay for camera mechanics including zooming and foucsing. And also to have a "photo album" of pictures taken.
AdamTheRaelian is offline   Reply With Quote
Old 3rd Nov 2009, 12:54 PM   #2
ambershee
Nimbusfish Rawks
 
ambershee's Avatar
 
Join Date: Apr. 18th, 2006
Location: Lancs, UK
Posts: 1,504
The answer I'm afraid, is no. It's not possible in UT3.
__________________
ambershee is offline   Reply With Quote
Old 3rd Nov 2009, 01:41 PM   #3
Bi()ha2arD
Toxic!
 
Bi()ha2arD's Avatar
 
Join Date: Jun. 29th, 2009
Location: Germany
Posts: 802
Well, the camera Idea would work simply by creating a weapon that executes the "shot" command on fire. Putting that screenshot back ingame could prove difficult though.
Maybe render to texture could be used too, to use the picture ingame. Maybe a combination of both.
__________________
Bi()ha2arD is offline   Reply With Quote
Old 4th Nov 2009, 04:53 AM   #4
Wormbo
not paranoid at all
 
Wormbo's Avatar
 
Join Date: Jun. 4th, 2001
Location: Quedlinburg, Germany
Posts: 4,088
It's not possible to import image files at runtime, not to mention that screenshots fail he important import condition to have power of 2 dimensions.
Using a SceneCapture2DActor with corresponding TextureRenderTarget2D you can capture a scene to a texture-like object. Using a ScriptedTexture you can draw to a texture-like object. You can combine the two techniques to get something that looks like an actual screenshot.
__________________
Wormbo's UT/UT2004/UT3 mods | PlanetJailbreak | Unreal Wiki | Liandri Archives

<elmuerte> you shouldn't do all-nighters, it's a waste of time and effort
<TNSe> nono
<TNSe> its always funny to find code a week later you dont even remember writing
<Pfhoenix> what's worse is when you have a Star Wars moment
<Pfhoenix> "Luke! I am your code!" "No! Impossible! It can't be!"
Wormbo is offline   Reply With Quote
Old 6th Nov 2009, 11:07 AM   #5
AdamTheRaelian
Registered User
 
Join Date: Jul. 26th, 2009
Posts: 29
Quote:
Originally Posted by Wormbo View Post
It's not possible to import image files at runtime, not to mention that screenshots fail he important import condition to have power of 2 dimensions.
Using a SceneCapture2DActor with corresponding TextureRenderTarget2D you can capture a scene to a texture-like object. Using a ScriptedTexture you can draw to a texture-like object. You can combine the two techniques to get something that looks like an actual screenshot.
How would that be coded? Also, I can't find the "ScriptedTexture" object/module within the UnrealScript files.
AdamTheRaelian is offline   Reply With Quote
Old 6th Nov 2009, 01:51 PM   #6
DannyMeister
UT3 Jailbreak Coder
 
DannyMeister's Avatar
 
Join Date: Dec. 11th, 2002
Location: Bolivar, Missouri
Posts: 676
Quote:
Originally Posted by AdamTheRaelian View Post
[...] Also, I can't find the "ScriptedTexture" object/module within the UnrealScript files.
Make sure you have the latest scripts, then look at Engine/classes/ScriptedTexture.uc
__________________

UT3 Jailbreak is under development! Forums | Website
DannyMeister is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:56 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Copyright ©1998 - 2009, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by ServerCave