ATTN: Richard! This would be a beeeautiful option!

The short answer is yes – it’s only a specular lighting enable switch so traslucent textures will also appear shiny.

There are many more andquot;hiddenandquot; possibilities in the S file format – user defined colours for materials (you could change the specular light colour so it shone green!)
And the uv_op section (DX8 pixel shaders?) includes reflect maps and enviromental bump maps – it may be possible to get these working – though you’ll need alternative S files for the cards that don’t support them.
S files also support line lists as well as triangle lists, though I’m not sure what I could use these for.

When I get a chance, I’ll see if I can get any of these options to work.

Paul

p.s. I should also add that the Shape File Manager is also available at [img:2exz36cl]http://www.highworth.freeuk.com,[/img:2exz36cl]
<!– m –><a class="postlink" href="http://www.highworth.freeuk.com">http://www.highworth.freeuk.com</a>&lt;!– m –>,
under MSTS bits and bobs – no download restrictions there.

I just tried this with an SD40-2 model I repainted, and I think for most times of day, this is the kind of effect that can be expected for most models (that aren’t particularly round, etc.). andnbsp;It is a nice, subtle effect, where from time to time, at certain angles, you’ll get a bright and fairly convincing glint from the sun. andnbsp;It’s nice. andnbsp;It would at least make a nice option. . .since I know you don’t really want to release any more new versions until 6, maybe a script or something could do it. andnbsp;Personally, I think something separate from the TS Wizard would be nice, because I got used to doing things the hard way, so I still don’t use the wizard at all, and honestly I’d like to keep it that way andnbsp;;D

[img:1099x7ch]http&#58;//forums&#46;atomic-systems&#46;com/viewtopic&#46;php?topic=2795andamp;forum=55andamp;9[/img:1099x7ch]
<!– m –><a class="postlink" href="http://forums.atomic-systems.com/viewtopic.php?topic=2795andamp;forum=55andamp;9">http://forums.atomic-systems.com/viewto … 55andamp;9</a><!– m –>

In case the link doesn’t work in the future, I’m copying the info down right now <!– s:-) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":-)" title="Smile" /><!– s:-) –>

Forgot to attach the screenshot I was going to attach. Near the top of the loco you can see the glint on the dynamic brake blisters. The effect can be seen in many more angles on different surfaces, but this was the most dramatic I could find that lent itself well to a screenshot. andnbsp;Just for info, I noticed significant effect on the visor-type things that overhang the cab windows, and on various surfaces of the body, although the glints were pretty angle-sensitive and fleeting, as should be expected.

Yeah, the SD40 pictured earlier works fine at night as well. . .the moon causes some nice effects to the finish also. By the way, the value I used was -7, for the highest specularity, I think.

EDIT: oops, -6 is really shiny. . .let me go check on that. . .
EDIT2: andquot;really shinyandquot; works for me also in apparently all lighting conditions, although it looks odd for an SD40-2 to be so shiny <!– s:) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /><!– s:) –>

Oh, hey there! andnbsp;The effect looks a lot better on those steam-type locos, but I like the subtle shininess it gives to less curvy things, too. andnbsp;I assume this would work with just about any object? andnbsp;It would make a great enhancement for a lot of static scenery items, too. andnbsp;Good work, and thanks for finding it and sharing it with the community!

I wondered how long it would take for this to be spotted by other forums (not very long)
– I don’t think it’s made it to train-sim.com yet – no one there has mentioned that specular lighting doesn’t work.

troub – I’m already modifying my shape file manager to make the changes – will let you know when it’s available.

it is an extremely simple change with aparently no side effects – the performace hit is negligable

I was about to e-mail Richard today to get it added to the 3DC output

[img:c2bpbgrv]http&#58;//www&#46;highworth&#46;freeuk&#46;com/scrgrb4&#46;jpg[/img:c2bpbgrv]

Paul
(Decapod)

I actually have this half coded, but while I was writing the code I thought about this a bit more and am not sure I like this idea. These flags/values are used for other purposes as well. I can see why it is causing problems for MSTS.

Has anyone tried a highly specular model at night yet?

Richard

I see the issue, and I’ll make the change if I can be assured it won’t cause problems.

Has anyone ever seen this effect on a model included with MSTS?

Here is what I have in mind:

A specular value of [50% indicates andquot;flatandquot;, 51-75 andquot;shinyandquot; ]75 andquot;really shinyandquot;. The negative is that anyone who has a value greater than that will get a different export with the updated version. I won’t be able to add a new entry field to enable/disable this. BUT… one thing you need to know is this will be the average of a andquot;groupandquot;’s specular value.

Richard

Hi Richard,

I have just completed a steam loco in fairly nice apple green finish. I altered the .s file in accordance with Paul’s suggestions and it shines nicely in the sun and has no problems at night.

In the past I have had problems when the Specularity value in 3DC was inadvertently set to 0 and a whole series of coal wagons I released ‘glowed’ in the dark, hardly correct for coal wagons which would not even shine in full sun <!– s:-) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":-)" title="Smile" /><!– s:-) –>

Regards – Mike.

Richard,

this flag is turned off for the default track pieces – they have specular lighting enabled.

I have experimented for a few days and still no side effects.

Paul

I guess a couple of people have reported models that refuse to load. . .but we know that not everyone is very adept at doing these manual mods without breaking something <!– s;) –><img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink" /><!– s;) –> andnbsp;

I’ll experiment with this a bit and let you know what I find out.

Richard

Hi Richard,
I,ve been using this mod for a few days now and have seen no bad side effects.

I,ve also uploaded a couple of engines (with the specular fix) to uktrainsim which have now been downloaded by about 80 people and have received no reports of any problems.

Cheers
Kevin

I’ve changed my mind on this. I don’t want to do this at this time since there is a relatively easy way to do it manually. The problem is that I worry about breaking the existing functionality or increasing my support workload due to using an undocumented feature of TrainSim.

Also, there are issues with this. For example how would you create a model that is shiny, yet have parts that glow at night. Or an object that is shiny with translucent parts. This would mean using andquot;000andquot; for two sub-objects, which if I remember my export properly causes MSTS to freeze.

So, this will have to wait,

Richard

You must be logged in to reply in this thread.

21 posts