Jump to content

Prelit Model Textures?


DeathByNukes

Recommended Posts

I'm making it in the XSI Mod Tool and exporting it to Half-Life 2

That example model is from HL2.

What im asking is if i can save the lighting into the texture so the model appears to light itself in game.

Models in Half-Life 2 are vertex lit so it would look and work a lot better to have the lighting in the texture.

Link to comment
Share on other sites

i made a little tutorial for this a while ago but never shared it with anyone :P, i hope it helps

for what to put in the vmt files, i really dont know but i'm sure you can find it on the valve developer wiki

Okay this is really easy, and can give kickass results. What we are gonna learn today, is rendering some nice lighting on you skin. hl2 models are vertexlit, but some soft shading doesnt do harm ;).

So you made a nice model, and want to prepare it for some hawt skinning. In this case, i made a door prop thing!!!!

tut1.jpg

Thats nice!

Now add a skylight and position it like i did on them pics. Dont forget to tick off the cast shadows button!

tut2.jpg

alright nice work!!

Now we have set up our scene for the lighting. You can create more complicated lighting stuff, but i'm just using a simple skylight for this as it creates some nice soft shadows at exactly the spots where nice soft shadows are expected to be ;)

k now select you model and go to rendering -> render to texture

the following window should pop up:

tut3.jpg

add a lightingmap and set the size to something big like 1024 (you can rescale afterwards in photoshop)

click "unwrap only" first. It adds an unwrap modifier where can can first properly unwrap you model, or load a previous uvmap you made. Make sure there are no overlapping parts on your mesh.

Click render! This will take forever so now its time to get outside for a change. Enjoy life abit!

When the render is done it will look totally awesome and you will be very happy. save it and rescale in photoshop if necesary :)

you can already add it to your model now, looks a lot better already eh :)

tut4.jpg

now, make a little colored mesh with texporter if u wish, and start the skinning!!! Or give this + the colored mesh to you favorite texture artist and he will love you forever

tut5.jpg

you can also use this method to render stuff with some sharp shadows on you model. Watch out with that tho, make sure it would fit in the map ;)

building01a.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...