Help Aliasing Headlight!

Post your problems and installation issues here!

Help Aliasing Headlight!

Unread postby Alpenfreight » Tue Oct 25, 2016 4:38 pm

Hello All,

I have been porting over the SD60M headlight flare to other locomotives because it looks great! I am having trouble with the Steven's Pass GP38 however:

Image

As you can see, the light is too high. So I am looking around for the XYZ coords to move this. Would it be in the Engine Bin or the texture file or elsewhere?

To get this far I add this to the GP38-2_Main_Headlight.xml after changing it to a Headlight blueprint from a spotlight blueprint (the SD60M is checked in the scenario)

Code: Select all
         <HeadLightFlareComponent>
            <cHeadLightFlareComponentBlueprint>
               <FlareTextureID d:type="cDeltaString">RSC\SD60MPack01\RailVehicles\Diesel\Engine\Textures\[00]flare_nm</FlareTextureID>
               <FlareSizeX d:type="sFloat32" d:alt_encoding="0000000000003140" d:precision="string">17</FlareSizeX>
               <FlareSizeY d:type="sFloat32" d:alt_encoding="0000000000003140" d:precision="string">17</FlareSizeY>
               <FlareStartSizeX d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</FlareStartSizeX>
               <FlareStartSizeY d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</FlareStartSizeY>
               <LensFlareTextureID d:type="cDeltaString">RSC\SD60MPack01\RailVehicles\Diesel\Engine\Textures\[00]lensflare_nm</LensFlareTextureID>
               <NumFlareTextures d:type="sInt32">4</NumFlareTextures>
               <FadeStartDistance d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</FadeStartDistance>
               <FadeEndDistance d:type="sFloat32" d:alt_encoding="0000000000E07540" d:precision="string">350</FadeEndDistance>
               <LensFlareIntensity d:type="sFloat32" d:alt_encoding="000000A09999B93F" d:precision="string">0.1</LensFlareIntensity>
               <ExtrusionOffset d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</ExtrusionOffset>
               <LensFlare>
                  <cHeadLightFlareComponentBlueprint-sLensFlare d:id="14328">
                     <ImageIndex d:type="sInt32">0</ImageIndex>
                     <LensScaleX d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</LensScaleX>
                     <LensScaleY d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</LensScaleY>
                     <LensOffset d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</LensOffset>
                  </cHeadLightFlareComponentBlueprint-sLensFlare>
                  <cHeadLightFlareComponentBlueprint-sLensFlare d:id="14333">
                     <ImageIndex d:type="sInt32">1</ImageIndex>
                     <LensScaleX d:type="sFloat32" d:alt_encoding="000000A09999C93F" d:precision="string">0.2</LensScaleX>
                     <LensScaleY d:type="sFloat32" d:alt_encoding="000000A09999C93F" d:precision="string">0.2</LensScaleY>
                     <LensOffset d:type="sFloat32" d:alt_encoding="000000000000E83F" d:precision="string">0.75</LensOffset>
                  </cHeadLightFlareComponentBlueprint-sLensFlare>
                  <cHeadLightFlareComponentBlueprint-sLensFlare d:id="14338">
                     <ImageIndex d:type="sInt32">2</ImageIndex>
                     <LensScaleX d:type="sFloat32" d:alt_encoding="000000A09999C93F" d:precision="string">0.2</LensScaleX>
                     <LensScaleY d:type="sFloat32" d:alt_encoding="000000A09999C93F" d:precision="string">0.2</LensScaleY>
                     <LensOffset d:type="sFloat32" d:alt_encoding="000000000000D03F" d:precision="string">0.25</LensOffset>
                  </cHeadLightFlareComponentBlueprint-sLensFlare>
                  <cHeadLightFlareComponentBlueprint-sLensFlare d:id="14343">
                     <ImageIndex d:type="sInt32">3</ImageIndex>
                     <LensScaleX d:type="sFloat32" d:alt_encoding="000000A09999C93F" d:precision="string">0.2</LensScaleX>
                     <LensScaleY d:type="sFloat32" d:alt_encoding="000000A09999C93F" d:precision="string">0.2</LensScaleY>
                     <LensOffset d:type="sFloat32" d:alt_encoding="000000000000E03F" d:precision="string">0.5</LensOffset>
                  </cHeadLightFlareComponentBlueprint-sLensFlare>
               </LensFlare>
            </cHeadLightFlareComponentBlueprint>
         </HeadLightFlareComponent>



So there is obviously 4 "scale" settings but I don't want to adjust the scale of the light I want to move it. I realize this setting must be elsewhere... but where

Appreciate the help
https://alpenfreight.wordpress.com/

I hear the train a comin'
It's rollin' 'round the bend
User avatar
Alpenfreight
 
Posts: 397
Joined: Fri Jan 09, 2015 8:32 am
Location: Boston

Re: Help Aliasing Headlight!

Unread postby JerryC » Tue Oct 25, 2016 5:36 pm

The position of the headlight is determined ny the Matrix. This is under the Headlight child entry in the Engine Blueprint. If i'm not mistaken, out of the 16 possible scales and positions, entry 13 is the X (side to side) position, entry 14 is the Z ( up and down ) position, and entry 15 is the Y ( front to back ) postion.
JerryC
 

Re: Help Aliasing Headlight!

Unread postby jalsina » Tue Oct 25, 2016 5:45 pm

The position of a flare texture and its call to the driving xml is normally located in the engine bin in one of the last child objects. It has a matrix. By discarting the last value in the matrix, the three that follow (going upwards) are the coordinates to move the position of that texture.

EDIT:
It seems I posted minutes after JerryC
Intel i7-7900K (3.60 GHz) - ASUS Prime Z390A - 32 GB DDR4 RAM 2400 MHz
GPU EVGA GTX-1060 OC 6GB at 1920x1080, 144 Hz - Monitor ASUS VG-248QE
System Windows 11 Pro in WD SSD 500 GB. Games in Inland 1Tb M.2 NVMe PCIe
User avatar
jalsina
 
Posts: 2010
Joined: Sun Jul 05, 2015 8:32 pm

Re: Help Aliasing Headlight!

Unread postby Alpenfreight » Tue Oct 25, 2016 7:05 pm

Great stuff guys thanks!

It looks like the Steven's pass gp38 actually has an error. Both Engine models are using the same headlight placements when in reality the Heritage unit has them much lower.

BN Unit:

Image


Corrected Heritage:

Image
https://alpenfreight.wordpress.com/

I hear the train a comin'
It's rollin' 'round the bend
User avatar
Alpenfreight
 
Posts: 397
Joined: Fri Jan 09, 2015 8:32 am
Location: Boston

Re: Help Aliasing Headlight!

Unread postby BKRR605 » Tue Oct 25, 2016 9:14 pm

Hey Alpen, could you release a couple locomotives with the flares. I like them *!greengrin!*
ImageImageImage
Moxie is awesome.
User avatar
BKRR605
 
Posts: 871
Joined: Sat Jun 20, 2015 11:43 am
Location: Cambridge

Re: Help Aliasing Headlight!

Unread postby Alpenfreight » Wed Oct 26, 2016 12:02 pm

BKRR605 wrote:Hey Alpen, could you release a couple locomotives with the flares. I like them *!greengrin!*


As the headlight flares are from payware products I cannot release everything required to make it super simple. I can help with information though if you have any questions,
https://alpenfreight.wordpress.com/

I hear the train a comin'
It's rollin' 'round the bend
User avatar
Alpenfreight
 
Posts: 397
Joined: Fri Jan 09, 2015 8:32 am
Location: Boston

Re: Help Aliasing Headlight!

Unread postby BKRR605 » Wed Oct 26, 2016 7:06 pm

Alpenfreight wrote:
BKRR605 wrote:Hey Alpen, could you release a couple locomotives with the flares. I like them *!greengrin!*


As the headlight flares are from payware products I cannot release everything required to make it super simple. I can help with information though if you have any questions,

Maybe just modified bins and then the person can copy the flare files to the right spot *!question!*
ImageImageImage
Moxie is awesome.
User avatar
BKRR605
 
Posts: 871
Joined: Sat Jun 20, 2015 11:43 am
Location: Cambridge

Re: Help Aliasing Headlight!

Unread postby Alpenfreight » Wed Oct 26, 2016 8:54 pm

BKRR605 wrote:
Alpenfreight wrote:
BKRR605 wrote:Hey Alpen, could you release a couple locomotives with the flares. I like them *!greengrin!*


As the headlight flares are from payware products I cannot release everything required to make it super simple. I can help with information though if you have any questions,

Maybe just modified bins and then the person can copy the flare files to the right spot *!question!*



I'm not sure what is allowed since I didn't create the whole file
https://alpenfreight.wordpress.com/

I hear the train a comin'
It's rollin' 'round the bend
User avatar
Alpenfreight
 
Posts: 397
Joined: Fri Jan 09, 2015 8:32 am
Location: Boston

Re: Help Aliasing Headlight!

Unread postby buzz456 » Thu Oct 27, 2016 1:37 am

That is certainly permissible. Modifying the bin is not taking anyone's item. It is still up to the receiver of the modified bin to have purchased the item to begin with to make it work.
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 20919
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: Help Aliasing Headlight!

Unread postby BKRR605 » Thu Oct 27, 2016 2:06 pm

buzz456 wrote:That is certainly permissible. Modifying the bin is not taking anyone's item. It is still up to the receiver of the modified bin to have purchased the item to begin with to make it work.

Like a repaint almost *!greengrin!*
ImageImageImage
Moxie is awesome.
User avatar
BKRR605
 
Posts: 871
Joined: Sat Jun 20, 2015 11:43 am
Location: Cambridge


Return to Problems and Peculiarities

Who is online

Users browsing this forum: No registered users and 3 guests