Results 1 to 15 of 15
  1. #1
    MSgt. Shooter Person
    Join Date
    May 2012
    Posts
    111

    Question Crosshairs on camera ??

    I want to attach crosshiars that I have made in Photoshop to my camera so that the player always looks through them. I am editing what eat3D did in their videos with the mobile plane game to anyone who has watched the videos. I want to attach a set of crosshairs to the camera so regardless of where the player looks it is in the middle of the screen. How could you do this with kismet ? Or if I have to use unrealscript can someone walk me through it ? I have never edited any unrealscript before and am unsure of how to achieve this or where to get the files from in the newer configurations of UDK. I have the crosshairs imported as 2D Textures already , if I need to import them as a material please let me know.

  2. #2
    Redeemer
    Join Date
    Jul 2011
    Location
    London, UK
    Posts
    1,749

    Default

    I'm not getting it, can you show a pic or something ? also is it a scope you want what kind of crosshair ?

  3. #3
    MSgt. Shooter Person
    Join Date
    May 2012
    Posts
    111

    Default



    this is my goal the player will be a gunner on a plane and the plane is on rails so really the player can look around only through the camera. That is why I want to attach the cross hairs to the camera. Does this make more sense ?

  4. #4
    Redeemer
    Join Date
    Jul 2011
    Location
    London, UK
    Posts
    1,749

    Default

    It does make sense perfectly, alright what i would advice you is to create this material you know the crosshair using a post process effect
    http://udn.epicgames.com/Three/Devel...istortion.html look at this it's not exactly what you want but it can achieve what you want if you modify the material,

  5. #5
    MSgt. Shooter Person
    Join Date
    May 2012
    Posts
    111

    Default

    Thanks I'll look in to this. Have any good places to look for putting a camera on rails ?

  6. #6
    Redeemer
    Join Date
    Jul 2011
    Location
    London, UK
    Posts
    1,749

    Default

    No sorry mate, i would suggest taking a look at the UDK Programming and Unrealscript section that's where you would find all sorts of threads about coding

  7. #7
    MSgt. Shooter Person
    Join Date
    May 2012
    Posts
    111

    Default

    Ok I have hit a snag. I can't find the .uc file that the walk through references in my UDK. I don't know where to place the .uc file that I have made. Or how to incorporate it to my game. Also when I load the distortion I get the cross hairs but I also get black everywhere. Any help would be much appreciated
    Last edited by enter360; 05-30-2012 at 03:15 PM.

  8. #8
    MSgt. Shooter Person
    Join Date
    Nov 2009
    Posts
    341

    Default

    I did something very similar that runs off actual data for all those seemingly random text values for a very special project; I found the easiest way was just to do it in scaleform and manipulate it through some simple hooks in a custom movie player class.
    Follow me on my new twitter. <_<
    http://twitter.com/#!/MichaelAllar

    Things I've made/worked/working on with UDK/UE3 that I can publicly talk about:
    Rekoil
    Warm Gun
    Jump or Die
    StuffIt: Playroom

    Allar's (Now outdated but soon to be updated) Complete Guide of UnrealScript

  9. #9
    MSgt. Shooter Person
    Join Date
    May 2012
    Posts
    111

    Default

    I have the needed text values taken care of as far as outputing to the screen and such. Could you point my to a scaleform walk through ?

  10. #10
    MSgt. Shooter Person
    Join Date
    May 2012
    Posts
    111

    Default

    Ok I just looked at the scaleform website seems like you have to pay some serious money for the software and buy autodesk. That is out of my current operating budget. Have any ideas on how I can get this to work with just UDK?

  11. #11
    Boomshot
    Join Date
    May 2011
    Location
    Chicago
    Posts
    2,061

    Default

    Quote Originally Posted by enter360 View Post
    Ok I just looked at the scaleform website seems like you have to pay some serious money for the software and buy autodesk. That is out of my current operating budget. Have any ideas on how I can get this to work with just UDK?
    You only need adobe Flash for scaleform in UDK, nothing from Autodesk

  12. #12
    Marrow Fiend
    Join Date
    Jun 2009
    Posts
    4,479

    Default

    Indeed.

    What you would generally use for scaleform is flash (there are some free programs, but their quality is quite iffy, from my perspective at least), not autodesk.
    Autodesk is mostly for stuff like models, animating, UV mapping, rigging, sculpting and rendering. 3d assets generally. Scaleform is 2d (for the most part).
    Please don't send me private messages asking how to use UDK unless it has to do with my work, everything I can teach is already out there.

    I am not support, I am here to learn myself.

  13. #13
    Redeemer
    Join Date
    Jul 2011
    Location
    London, UK
    Posts
    1,749

    Default

    In the gem i sent you, you need to place the PlayerTick Function in your playercontroller class, download the material and you will see that it works i tried it a few days ago, you only need to use a custom material if you want that crosshair of yours and a custom camera,

  14. #14
    MSgt. Shooter Person
    Join Date
    May 2012
    Posts
    111

    Default

    Ok thanks. I now realize that my problems are in the materials i brought in from Photoshop . They are completely "solid" where as I need them to have "holes" in them. I'll try to find some Photoshop guides to help me with this. I don't know where some of the elements in the material came from but i need to edit my materials first i suppose. Scaleform/ CS 6 seems to have a wicked learning curve and this achieves what I would like in a simple way. Thank you again.

  15. #15
    Redeemer
    Join Date
    Jul 2011
    Location
    London, UK
    Posts
    1,749

    Default

    Not only photoshop mate, but your materials also need to use a different blend mode in UDK,
    http://udn.epicgames.com/Three/Mater...turesHome.html here is a link that can help you,
    also look at how they did the sniper scope material look at the blend mode,


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.