Results 1 to 5 of 5
  1. #1
    MSgt. Shooter Person
    Join Date
    Aug 2009
    Posts
    41

    Default Adding new material on top of the model

    Hi. I'm pretty new to UDK so this question might be easy to solve but I have no clue on how to do that.

    I'm making a RTS game from scratch, I've made the camera, mouse interface and selection. Now I want to highlight the selected actor, so I've created a fresnel material:



    So, now that I have the material, how to I overlap it on the selected actor material?

  2. #2
    Palace Guard

    Join Date
    Jun 2007
    Location
    Christchurch
    Posts
    3,556

    Default

    Either you do this by using another mesh which is slightly larger, or you add the above instruction to the material that your units are using. To fade it in/out or turn it on/off you would then use a scalar parameter on the instanced material instance constant which is applied to the unit's mesh.

  3. #3
    MSgt. Shooter Person
    Join Date
    Aug 2009
    Posts
    41

    Default

    The secondary mesh isn't an option since I'll be selecting lots of meshes at the same time, so it's double the meshes to render. Is there any info on how to modify material values from code?

  4. #4
    Palace Guard

    Join Date
    Jun 2007
    Location
    Christchurch
    Posts
    3,556

    Default

    There are tonnes of tutorials discussing how to change parameter values using a MaterialInstanceConstant and Unrealscript.

  5. #5
    MSgt. Shooter Person
    Join Date
    Aug 2009
    Posts
    41

    Default

    Quote Originally Posted by Solid Snake View Post
    MaterialInstanceConstant
    Ok thanks. That's what i needed


 

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.