Train-Sim.Com
Microsoft Train Simulator

Lighting question, making a light aim on an angle

Notice to all visitors and members of the Train-Sim.Com message forums:
If you plan on using a signature banner in your posts, we would like to remind you that there is a maximum size for banners. That maximum is 450 pixels wide by 120 pixels high, and not to exceed 25k. Your compliance is appreciated. FORUM RULES Problems? There are two common reasons for problems with logging in and posting messages. The first is that you are running a firewall that prevents your messages from being sent to the server. The other is that you have cookies disabled; the DCForum software requires cookies to work properly.

Previous Topic | Next Topic

Printer-friendly copy Email this topic to a friend

Reading Topic #22143

Charter Member · 1297 posts

the image below shows what i want to do. i want to have the light of the engine not cut into the cab windows (which are slanted) and slant the lights to match that angle. is there a way to do this in the lighting code?Lighting question, making a light aim on an angle – image 1Lighting question, making a light aim on an angle – image 2Hauling America one pixel at a time
Lighting question, making a light aim on an angle – image 3Bill Hemb; train sim repainter

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Member since Aug-7-03 · 251 posts

RE: lighting question, making a light aim on an angle

Bill:
The below from the Tech Doc might be what you are looking for.CyndiAzimuth(min centre max) This specifies the heading (rotation about the Y-axis) of glow lights – in the simplest case min, centre and max can all be set to the same angle (in degrees). For more complex situations where you want to define the arc of the light you can specify for example -45, 0 and 45 degrees respectively to produce a light with a 90 degree arc. Essentially glow lights attempt to always face the camera but are limited by the azimuth and elevation settings. The best way to see what the values do is to experiment - set up a light with a set of values and then move the camera around it to see what happens.

Am I the only 1 who loves BNSF Great Pumpkin 38s?

Alert | IP


[ Home | MSTS Forum | MSTS FAQ | File Library ] Copyright © 2004 by Nels Anderson. All Rights Reserved.

Restored from the Train-Sim.Com archive, captured March 22, 2004. About this archive.