How to make pop-up headlights

User avatar
Doof4294967296
MM2X Occasional User
MM2X Occasional User
Posts: 296
Registered for: 11 years 6 months

How to make pop-up headlights

Postby Doof4294967296 » Fri Jan 16, 2015 10:32 am

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

User avatar
e-cobra
MM2X Very Active User
MM2X Very Active User
Posts: 1629
Registered for: 13 years 3 months
Location: Navi Mumbai, India

Postby e-cobra » Fri Jan 16, 2015 12:50 pm

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.
[img][/img]
[url=https://www.mm2x.com/page.php?name=Forums&file=viewtopic&t=5362&start=52&highlight=e-cobra][color=gold][size=75]MM2X Awards[/size][/color][/url]
[b][size=84][color=blue]If a tree falls in the woods and no one?s around to hear it, does it make a sound?[/color][/size][/b]

User avatar
Doof4294967296
MM2X Occasional User
MM2X Occasional User
Posts: 296
Registered for: 11 years 6 months

Postby Doof4294967296 » Sat Jan 17, 2015 3:23 am

What a good idea, this might do the job. :wink:

EDIT: It worked thanks anyway.. :)
Last edited by Doof4294967296 on Tue Jan 20, 2015 12:49 pm, edited 2 times in total.

User avatar
zoot
MM2X Super Active User
MM2X Super Active User
Posts: 2444
Registered for: 14 years 10 months
Location: United States

Postby zoot » Sat Jan 17, 2015 4:38 am

Yay, my car.
Administrator at MMarchive | Arrow Block Entertainment Owner