![]() |
|
|
#1 |
|
Registered User
Join Date: Feb. 23rd, 2009
Posts: 8
|
Hi everybody
I am developing a project in which I simulate visual impairments using UT3. The player will be walking around a building and certain switches will apply visual impairments to their sight. For instance a switch will say "Glaucoma" and when pressing the switch, the player will instantly being seeing through the eyes of somebody with these symptoms. At the moment I am able to create a post process volume and apply effects to this volume, as well as use triggers to turn them on and off. All this really does is make things black and white, blurred etc. However I would like to do more complicated things. Can anybody help? 1. I want to be able to add a material over the screen, so I can simulate things like black dots in the person's eyesight for certain impairments. I've had a go at chaging the default PostProcessChain and applying a material to it but I can't get anything to show up. It is a shame that you cannot specify a material for the PostProcessVolume If anybody knows a way of doing this I would be really grateful!! ![]() 2. I would eventually like to be able to edit the PostProcess effects myself. I mean the actual algorithms. For instance the blur PP effect must have some underlaying code behind it, how can I have a look at that and create my own version for something like double vision? Thanks for you time and help, really appreciate it. Rob |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Feb. 23rd, 2009
Posts: 8
|
I spoke to Hourences and he thinks a good method of achieveing this would be to attach a transparent plane right in front of the players face, and then apply a texture to that. So then when the player moves around he looks through that plane. This would work as it will only be a one player simulator.
So the next question is, anybody know how I can do this? Thanks for the help. Rob |
|
|
|
|
|
#3 |
|
Why didn't you ask Hourences that when you communicated with him? :-S
__________________
"I love you to distraction, and even if you don't love me it doesn't matter, you will merely be my husband.
Please don't be afraid - I do not want to cause you any trouble, I want to be your domestic chattel, the very carpet you walk on... I want to love you to eternity, I want to rescue you from yourself." |
|
|
|
|
|
|
#4 |
|
Registered User
Join Date: Feb. 23rd, 2009
Posts: 8
|
He said he hadn't done it before, therefore I thought it would be a good idea to ask on the forums to see if anybody had tried to implement something like this...
|
|
|
|
|
|
#5 | |
|
Quote:
Maybe try using a UI Scene, and overlay that on the screen. I'm pretty sure you can use images on them, and can be controlled in kismet.. Another idea might be to look at making some sort of custom HUD? Last edited by sneh; 27th Feb 2009 at 11:10 AM. |
||
|
|
|
|
|
#6 |
|
Yeah, that works sort of, [in kismet] go to: New Action>UI>Open Scene
You will need something to trigger it like, so conact a trigger volume or whatever to the "in" connector. Check "UI Scenes" in the generic browser to see what scenes are available, these are all menus and stuff though, but presumably you can make your own and import them? i dont know how to do that though. click on the one you want and then go to kismet and click on open scene oibject and in its properties, click the green arrow beside "scene" to select the scene from the generic browser. I dont know if that will work right though.
__________________
"I love you to distraction, and even if you don't love me it doesn't matter, you will merely be my husband.
Please don't be afraid - I do not want to cause you any trouble, I want to be your domestic chattel, the very carpet you walk on... I want to love you to eternity, I want to rescue you from yourself." |
|
|
|
|
|
|
#7 | |
|
Quote:
I also tried ataching a mesh to a player.. it didnt even stay on the player.. it went all around the map when I moved..
__________________
![]() Whatever beat that drives the impulse, whatever tune that carries through, What's in a soul that rattles empty, in this reality too few Dark Tranquillity member since April 07 + 600 posts CTF-Safeguard3, CTF-Dreary3, CTF-Stratus (V1.2), CTF-Pipeline(WIP) My Rig: CPU:C2D-E8500, GPU:GF-250GTS, RAM:4GB 6800C4, HDD: 2x 150gb WD Raptor, CASE: Mini Gigibyte MX |
||
|
|
|
|
|
#8 |
|
Heh, I actually use the method of attaching something to the player's head to do the rewind effect in Prometheus currently. I could paste the code here tonight, but you'll need to be a programmer or know one to get it working properly.
__________________
Unreal Development Kit Game Programming with UnrealScript: Beginner’s Guide Stubborn Horse Studios - Angel Mapper To have said goodbye to things! |
|
|
|
|
|
|
#9 |
|
Registered User
Join Date: Feb. 23rd, 2009
Posts: 8
|
OK I figured it out. You have to create a new UIScene and place your texture on it following the UI bit in this tutorial: http://www.moddb.com/mods/ghostwrite...-the-ui-editor
Then create a trigger and in kismet link this up to an open scene node and specify your scene you created. To stop the game from pausing when you hit the trigger, open your scene and, without the image selected, go to the splitscreen section and change SceneInputMode to INPUTNODE_None. And there we go, a nice overlay that can be switched on and off! |
|
|
|
|
|
#10 | |
|
Quote:
I've attached a camera to a player, and it works very well.. |
||
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|