Page 1 of 1

How to make pop-up headlights

Posted: Fri Jan 16, 2015 10:32 am
by Doof4294967296
I've noticed in the Toyota MR2 of carking1996. The pop-up headlights are shown at night and down in day..

Here is the image:
Image

Posted: Fri Jan 16, 2015 12:50 pm
by e-cobra
You can make headlights pop using transparent textures. For that, first make 3D headlights on the hood, next, make a separate texture file and use this file to texture them and at the end of the file name, add "_ni" (without quotes; eg: car_headlight_ni.tga).
Any texture with _ni suffix is displayed only in the night.
For the day, make another texture which should be fully transparent with the same name, but without the _ni suffix so that the headlights are invisible during day.
Making headlights like this has a flaw: They won't be visible during the evening, rather you'll see a glow at the position of headlights because _ni textures show only during night.
Adding on to e-cobra's post, remove the reflections of the textures used on the popup headlights by using the MM2 City Toolkit. This is so the reflections don't show up on the transparent texture applied during the day, this will also affect the _ni version of the same texture.
That's how.

Posted: Sat Jan 17, 2015 3:23 am
by Doof4294967296
What a good idea, this might do the job. :wink:

EDIT: It worked thanks anyway.. :)

Posted: Sat Jan 17, 2015 4:38 am
by zoot
Yay, my car.