Author |
Message |
  |
|
Maxoff
MM2C Addict
Joined: 11 Nov 2004
Posts: 560
Location: Poland
Status: Offline
|
Post subject: Vehicle reflections |
|
|
If somebody has written it before, then sorry for this
In MM2 there is thing called "vehicle reflection". You can turn it on/off in options but it's quite difficult to control it on car level. I didn't see any additional car using this feature.
When you look closer to standard cars, you will find that LTV and Double-Decker don't have reflections so it's possible to turn it on/off on car level.
More, it's possible to turn it on/of on "shaders" level, so you can regulate reflection on materials level. In PKG shaders there is field "emissive" which controls it.
Unfortunatelny during export, ZModeler PKG exporter always sets the same value (0,0,0,63), which enabled reflection for every texture. You cannot control this value from ZModeler (or just I don't know how to do it ). This is one of reasons why I added Shaders Editor to MM2CT.
In that editor you can control shaders parameters including emissive:
Click to enlarge
To run editor, run MM2CT Tools -> PKG Browser select .PKG file you want to edit click Shaders Editor
This is small example of what it can do:
Click to enlarge
1 - standard reflections
2 - no "grid" reflection
3 - no windshields reflections
4 - no reflections
Thank's all, I hope that it will be useful for somebody We use/need it in Classic Madness cars (for example for convertibles). _________________ ... You only have to know how to prepare query, google will do the rest ...
... My software ...
... Guide to Punctuation ... |
|
16 Sep 2005 10:57 am |
|
|
john20bp
MM2C Hooligan
Joined: 16 Oct 2003
Posts: 3168
Status: Offline
|
Post subject: |
|
|
Yeah thats great!
So is CM!!! |
|
16 Sep 2005 02:42 pm |
|
|
duisburg4ever
MM2C Regular
Joined: 28 Apr 2003
Posts: 62
Location: Germany
Status: Offline
|
Post subject: |
|
|
Another great programm from you
thx
this will help very much  |
|
18 Sep 2005 10:18 am |
|
|
FelipeVinhao
Say hello to my little friend
Joined: 04 Feb 2005
Posts: 1611
Location: Sleeping in fronta PC in an office far from home (Sao Paulo, Brasil)
Status: Offline
|
Post subject: |
|
|
Maxoff wrote: |
When you look closer to standard cars, you will find that LTV and Double-Decker don't have reflections so it's possible to turn it on/off on car level. |
I noticed sth was strange with both. Thanx for correct'em!  _________________
|
|
19 Sep 2005 12:06 pm |
|
|
Audiogod
Remember Godkiller? =P
Joined: 19 Jul 2002
Posts: 49
Location: Wells, ME
Status: Offline
|
Post subject: |
|
|
Okay, so with this can you selectively turn off reflections on individual textures/shaders?
For instance, if you had all the bits on a car you did not want to have reflections mapped to one particular texture sheet, could you use this program to leave reflections intact on the other bits, but turn that specific one off?
If so, you're my frickin' hero, and I might just have to dig up the model I had wanted to finish and release but wouldn't because I was unable to do this before. My anal-retentive/obsessive compulsive nature prevents me from releasing a sub-standard product.
 |
|
21 Sep 2005 11:47 pm |
|
|
Maxoff
MM2C Addict
Joined: 11 Nov 2004
Posts: 560
Location: Poland
Status: Offline
|
Post subject: |
|
|
If you don't want reflection for particular textures you just need to find that entry on shaders list and set emissive to 0.
For example: if you don't want reflection for texture mycar_noreflection.tga (.jpg/.tex), you have to find mycar_noreflection on the list.
Of course, if you have 10 paintjobs that texture will be on list 10 times.
This is the reason why I added Set emissive to... button. You can click it, type texture name (mycar_noreflection) and value (0), then program will set that value for all shaders on list which match name you typed.
PS. You should use MM2CT 0.18 or newer. _________________ ... You only have to know how to prepare query, google will do the rest ...
... My software ...
... Guide to Punctuation ... |
|
22 Sep 2005 09:03 am |
|
|
Audiogod
Remember Godkiller? =P
Joined: 19 Jul 2002
Posts: 49
Location: Wells, ME
Status: Offline
|
Post subject: |
|
|
You sir are awesome. This is very much appreciated.
On a side note, I see there's an alpha adjustment. Could this have any effect on adjusting how MM2 translates image alphas? Specifically, brake light alphas. I'm so out of the loop at this point, the problem may have been solved long ago, but I was never able to get custom brake light textures to work. |
|
22 Sep 2005 07:35 pm |
|
|
Maxoff
MM2C Addict
Joined: 11 Nov 2004
Posts: 560
Location: Poland
Status: Offline
|
Post subject: |
|
|
I'm not sure if I understand your problem, but you can use alpha parameter of color or just alpha channel of TGA to regulate transparency. _________________ ... You only have to know how to prepare query, google will do the rest ...
... My software ...
... Guide to Punctuation ... |
|
22 Sep 2005 07:44 pm |
|
|
spud
Nath, creator of TCZ auto
Joined: 01 Sep 2003
Posts: 345
Location: Hawley, UK
Status: Offline
|
Post subject: |
|
|
Audiogod wrote: |
...but I was never able to get custom brake light textures to work. |
you might want to look at some of the cars ive made, some use custom brake light textures and although theyre not the greatest in the world maybe it'll help...btw you might remember me from dimension3 years ago when i made a couple of cars for mm1  _________________ Go to my website with all my MM2 cars and more here: http://www.enath.co.uk
***As is blatantly obvious, I am working on projects for MM2 again*** |
|
22 Sep 2005 08:00 pm |
|
|
Audiogod
Remember Godkiller? =P
Joined: 19 Jul 2002
Posts: 49
Location: Wells, ME
Status: Offline
|
Post subject: |
|
|
Thank you spud, I'll probably end up PM'ing you later once I get the project back up and running. Currently I'm trying to recover from a boot sector failure on my backup drive, where I stored a load of installer data.
Thankfully said project was not on there, or I would be balled up on the floor right now crying like a school girl. |
|
22 Sep 2005 09:14 pm |
|
|
Maxoff
MM2C Addict
Joined: 11 Nov 2004
Posts: 560
Location: Poland
Status: Offline
|
Post subject: |
|
|
I've changed standard PKG exporter for ZModeler. Now it supports emissive parameter. You can download it here. It was designed for ZModeler 1.07b.
To turn off reflection for texture, you just need to set Type to Unused. That's all.
Of course if you want use different parameter to control emissive, just say  _________________ ... You only have to know how to prepare query, google will do the rest ...
... My software ...
... Guide to Punctuation ... |
|
27 Sep 2005 01:54 pm |
|
|
BoosterMM
Making mm2 tracks
Joined: 12 Sep 2002
Posts: 713
Location: Spain (Espaņa)
Status: Offline
|
Post subject: |
|
|
I read a post in a forum I found through google with a discussion about mm1 or mm2 being better, somebody told mm1 was better because you could control reflections. Well, what's better now?
As always great work Maxoff!!  _________________ In the time you smoke a cigarette, 3 people die in the world working.
So, don't smoke, and don't work  |
|
27 Sep 2005 02:05 pm |
|
|
Rippance
Hates Custom Titles

Joined: 14 Jul 2002
Posts: 2711
Location: Netherlands
Status: Offline
Xbox Live Gamertag: Rippance
|
Post subject: |
|
|
Wow. That's incredible work. I remember people spending ages on making unbreakable breakables for their lack of reflections.
How on earth did you notice this parameter in MM2 and ZModeler setting a default value to it? Great work  _________________ Rippance
w: http://www.crumbl.com
c: #mm2c @ irc.gamesurge.net |
|
28 Sep 2005 05:41 pm |
|
|
Maxoff
MM2C Addict
Joined: 11 Nov 2004
Posts: 560
Location: Poland
Status: Offline
|
Post subject: |
|
|
If you want to know, first I found emissive in PKG specification when I was working on MM2CT, but there wasn't any explanation what it did. Next I realized that it has always the same value in custom cars. After that I checked ZModeler exporter and found that it always sets the same value 0.5f (in bytes 0,0,0,63). Finally I checked DoubleDecker and LTV (cars which don't have reflections).
Modyfing pkg exporter was quite easy (I spent much more time trying to compile it in VS.NET), I've added only two lines. I've changes:
Code: |
Material.power = 0.5f;
|
to:
Code: |
if (d3d->Materials.Materials[pCurMat->value].MatParams.AlphaTreat==0)
Material.power = 0.0f;
else
Material.power = 0.5f;
|
That's all  _________________ ... You only have to know how to prepare query, google will do the rest ...
... My software ...
... Guide to Punctuation ... |
|
28 Sep 2005 07:48 pm |
|
|
mm1guy
Â
Joined: 04 Aug 2003
Posts: 1558
Status: Offline
Xbox Live Gamertag: mm2guy
|
Post subject: |
|
|
Great Job! You are an MM2 Legend  |
|
28 Sep 2005 09:29 pm |
|
|
|