Liandri
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Liandri

The forum offers unofficial support for UnrealEd users and serves as a comfortable rest-room for a friendly community.
 
HomeLatest imagesRegisterLog in

 

 Making parts of a texture unlit

Go down 
2 posters
AuthorMessage
Murphy

Murphy


Posts : 147
Join date : 2008-10-18
Age : 36

Making parts of a texture unlit Empty
PostSubject: Making parts of a texture unlit   Making parts of a texture unlit Icon_minitimeThu Jan 15, 2009 8:29 am

Create a new Shader, use the texture in question as Diffuse and as SelfIllumination and create, import and use a texture that is transparent everywhere but where you want the original texture to be unlit.

In detail:
Go to your texture browser and click File -> New. Select Shader (should be selected by default), enter where you want it saved and click ok. Open the properties of the newly created Shader by finding it in the texture browser -> rightclick on it -> select Properties. Keep this window open and move it to the side.
Search for your texture now and select it. In the Shader-Property window "use" the selected texture as Diffuse and as SelfIllumination. Without a mask applied the whole texture will now be unlit.

Now open your graphics program and create a texture with the same resolution as the original and make it transparent everywhere but where you want the original texture to be unlit. Save it (for example as a .tga). In the UnrealEd texture browser go to File -> Import -> search for your newly created image -> enter package details and check the little box that says "Alpha" or else the transperency channel will be ignored.

Now select that new texture and "use" it as a SelfIlluminationMask in the Shader Property window.

Note: Don't forget to select the "SurfaceType" for the Shader so the game can play the correct foot-step sounds if someone runs over it in-game.
Note 2: Never "use" the Shaader in itself. Ie, never open the Shader's Properties and just click "use" without selecting another texture first. This will crash UnrealEd.
Back to top Go down
Shadowwill




Posts : 26
Join date : 2009-01-04

Making parts of a texture unlit Empty
PostSubject: Re: Making parts of a texture unlit   Making parts of a texture unlit Icon_minitimeThu Jan 15, 2009 8:14 pm

sweet that works. But how would i do this for a staticmesh? im confused as to which texture i should apply to the mesh.
Back to top Go down
Murphy

Murphy


Posts : 147
Join date : 2008-10-18
Age : 36

Making parts of a texture unlit Empty
PostSubject: Re: Making parts of a texture unlit   Making parts of a texture unlit Icon_minitimeThu Jan 15, 2009 11:12 pm

Here is how you change the skins of StaticMeshes. If you want to use the (partially) unlit texture you have to select the Shader you created and use that as Skin on the StaticMesh.
Back to top Go down
Shadowwill




Posts : 26
Join date : 2009-01-04

Making parts of a texture unlit Empty
PostSubject: Re: Making parts of a texture unlit   Making parts of a texture unlit Icon_minitimeThu Jan 15, 2009 11:42 pm

nevermind, unrealED has some weird habbits, when i tried to change the meshes texture in the browser and clicked 'use' it just used the alpha texture so most of it went transparent. But then i didnt click use and just moved away and it worked. Now my model has unlit lights which im very pleased with ! thanks for your help, now i can finally progress with this little project of mine.
Back to top Go down
Sponsored content





Making parts of a texture unlit Empty
PostSubject: Re: Making parts of a texture unlit   Making parts of a texture unlit Icon_minitime

Back to top Go down
 
Making parts of a texture unlit
Back to top 
Page 1 of 1
 Similar topics
-
» Make parts of a texture unlit?
» I am making a wal-mart based map

Permissions in this forum:You cannot reply to topics in this forum
Liandri :: = Tutorials :: UnrealEngine 2-
Jump to: