![]() |
![]() |
|
#1
|
||||
|
||||
|
Guys what is the best way to replace materials with my own on a TW mesh without breaking the original? I'm doing this currently; After putting the mesh in my scene I then go to its properties F4 and in rendering add how ever many material slots I need? This seems to work but if I go to the original TW material, right click to 'select level actors using this material' it selects the mesh in my scene as if it's still referencing the original materials as well as my own.
Just want to make sure I'm not doubling up on materials somehow. |
|
|
|||
|
|||
|
That's natural. Just because you override the material doesn't mean the engine doesn't have a reference to it's original material. There's nothing to be done on that outside of duplicating the mesh from the package into another of your own. That, obviously, would remove the backlink since it's a brand new asset.
A lightweight solution would be to derive a MIC (Material Instance Constant) from the material we used and override the values for diffuse, normal, etc we exposed to that which you want. MICs are very lightweight in regards to memory only having an overhead of the textures you choose. Sometimes we have controls to handle color changes of the diffuse which may very well do just fine in some instances. This is a good place for materials: http://udn.epicgames.com/Three/Mater...turesHome.html This is specifically the MIC portion: http://udn.epicgames.com/Three/InstancedMaterials.html http://udn.epicgames.com/Three/Mater...eConstant.html While that gives you a fair amount of information as to how they work, it's meant only for you to understand what you may find and how you would go about making one. |
|
#3
|
||||
|
||||
|
Thanks again Swag for the info and links.
The first thing I tried was to make an instance of your materials but the option was greyed out. Is there a way to override this? edit: sorry should have read the link you sent before asking
Last edited by 11_HARLEY_11; 04-18-2012 at 10:12 PM. |
|
#4
|
|||
|
|||
|
I did change quite a lot of the stock meshes material. The last I changed is the material used for these piles of grey factory sheets. They where to clean and bright and I added a rusty texture to them. Just made a own material and add the original TWI texture then blended that one with an own rusty texture. And saved this in an own package.
Then added the material to the TWI static mesh. Works fine and looks good. As my idea was that as soon this metal is stored outside for a while rust will appear. |
|
#5
|
||||
|
||||
|
Quote:
As Swag mentioned it will still reference the original material...not sure if it uses more memory though. Seems like it would eh? |
|
#6
|
||||
|
||||
|
You have to first create the material instance in your package then open it and add the parent manually.
|
|
#7
|
|||
|
|||
|
I did it like you. Just added an own material to that empty slot.
Works ok for. I see no reason to duplicate the mesh into an own package. If this isn't the correct way I would like to hear. I did the same with the destroyed floor part in previous released versions. The version I work on now have these rusty sheets.
Last edited by Drecks; 04-18-2012 at 11:40 AM. |
|
#8
|
||||
|
||||
|
Me too.
As long as it's not using any more memory it must be ok. It's got to be better than duplicating the mesh I guess.. Thanks Leo, I should have read Swags link before asking.
|
|
#9
|
||||
|
||||
|
That is exactly what you should do.
__________________
#1 Bonzai charger Last edited by Xendance; 04-19-2012 at 04:06 AM. |
|
#10
|
||||
|
||||
|
sorry?
Are you talking about how we should apply materials to TW meshes?
Last edited by 11_HARLEY_11; 04-19-2012 at 03:32 AM. |
|
#11
|
||||
|
||||
|
Quote:
__________________
#1 Bonzai charger |
|
#12
|
||||
|
||||
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|