More Awesome Than You!
Welcome, Guest. Please login or register.
2024 November 22, 11:58:43

Login with username, password and session length
Search:     Advanced search
540287 Posts in 18067 Topics by 6545 Members
Latest Member: cincinancy
* Home Help Search Login Register
+  More Awesome Than You!
|-+  TS2: Burnination
| |-+  The Podium
| | |-+  Broken M&G Window
0 Members and 2 Chinese Bots are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: Broken M&G Window  (Read 12562 times)
Menaceman
Horrible Halfwit
**
Posts: 361



View Profile
Broken M&G Window
« on: 2009 January 27, 18:09:12 »
THANKS THIS IS GREAT

So, looks like another borked item from M&G. I dunno if anyone has spotted this already but I found it yesterday after trying to use the window for the first time.
It appears as though the whole texture is partly translucent when viewed from certain angles and the window cutout is slightly out of line when viewed from the inside of a building.

PICTURES:
Outside;

Inside;


Any way/chance of having them fixed?
Logged
Marchioness
eevilcat
Retarded Reprobate
****
Posts: 1389


Poke, point, laugh...


View Profile
Re: Broken M&G Window
« Reply #1 on: 2009 January 27, 22:38:49 »
THANKS THIS IS GREAT

Without going as far as extracting and looking at the mesh, I'd say that it's been incorrectly tagged with alpha materials throughout which means that the it's drawn in any old order as the game graphics engine cannot correctly sort/draw the polygons within shape in the correct order. This means the polys will randomly draw in front or behind each other as the camera moves around it. The mesh itself will need to be fixed so that there is an alpha material for the windows and a separate (non-alpha) material group for the frame. The fix may be straightforward if there are two material groups (fix the frame one so that it is not alpha) otherwise a second material group will need to be created and the frame textures associated with it. I think this may also involve splitting a single texture file into two as alpha textures have a gray scale transparency (see-through graduated to solid) while other textures just have on/off per pixel. I may have time to look at this tomorrow as I've got M&G if nobody else does.
Logged

Menaceman
Horrible Halfwit
**
Posts: 361



View Profile
Re: Broken M&G Window
« Reply #2 on: 2009 January 29, 11:38:03 »
THANKS THIS IS GREAT

That would be great if you could. Thanks.
I'd have a look myself but don't really know what I'm looking for.
Logged
Marchioness
eevilcat
Retarded Reprobate
****
Posts: 1389


Poke, point, laugh...


View Profile
Re: Broken M&G Window
« Reply #3 on: 2009 January 29, 12:44:34 »
THANKS THIS IS GREAT

Ok, I've had a chance to look at the M&G objectsXX files in SimPE and I was correct. It looks the artist originally created it with three separate textures: one for the outer frame; one for the inner frame and one for the glass as those resources are still present. The two frame textures are used in both the interior and exterior window meshes. Assuming that they have the same restrictions as community modders they're only allowed 2 recolourable subsets and 3 into 2 does not go! Their fix was to produce a single combined texture with a single material definition which has been set to alpha blend hence the sort order problems when rendered in game. A number of the other windows do have three associated textures but are mapped as interior + glass OR exterior + glass thus conforming to the two subset limit.

It can be fixed by creating a second recolourable subset to separate out the glass from the frame and likewise splitting the textures to facilitate easy recolouring. I might have a play with this today to confirm that it has actually been texture mapped the way I'm assuming.
Logged

Havelock
Lipless Loser
***
Posts: 647



View Profile
Re: Broken M&G Window
« Reply #4 on: 2009 January 29, 22:35:01 »
THANKS THIS IS GREAT

I have made a fix. Outside frame and glass could have a different color as inside frame and glass. Also wallmasks are fixed.

* z_windowresidentialdecotwotile_fix.rar (29.94 KB - downloaded 2038 times.)
Logged
Lord Darcy
Obtuse Oaf
***
Posts: 958


The owls are not what they seem.


View Profile WWW
Re: Broken M&G Window
« Reply #5 on: 2009 January 30, 10:43:09 »
THANKS THIS IS GREAT

Thanks for the fix, Havelock. Smiley
Like all your previous fixes, I wish this fix would be included in the next version of CEP as well. Have you reported it in CEP thread on MTS2?
Logged

Menaceman
Horrible Halfwit
**
Posts: 361



View Profile
Re: Broken M&G Window
« Reply #6 on: 2009 January 30, 19:06:35 »
THANKS THIS IS GREAT

Thanks for seeing to this issue so quickly. I never actually managed to have a look at the window files myself. I'll download it and try it out emmidiately.

EDIT: how come the glass texture becomes so blurry with this fix installed? Is it because I have it in my downloads?

The only remaining window issue that I wish I could fix now is the lighting on the square base game window. When placed, the outside frame gets darker and the inside gets lighter instead of the other way around like all other windows. I posted about it here: http://www.moreawesomethanyou.com/smf/index.php/topic,13744.msg393079.html#msg393079

dDefinder also says a round M&G window is effected the same and I've seen it in my game as well.
« Last Edit: 2009 January 31, 22:42:11 by Menaceman » Logged
Lerf
Feckless Fool
*
Posts: 292


View Profile
Re: Broken M&G Window
« Reply #7 on: 2009 February 11, 18:18:03 »
THANKS THIS IS GREAT

Been mentioned before, but I thought I'd bring it up now as you seem to know your way around windows-- M&G broke the triangular "Pythagorean" window from OFB.  It will no longer place on the diagonal.
Logged
SiuPang
Dimwitted Dunce
*
Posts: 178



View Profile
Re: Broken M&G Window
« Reply #8 on: 2009 February 15, 11:50:28 »
THANKS THIS IS GREAT

Some digression here. If I remember correctly, there is a window borked by M&G. It's the triangular window that comes with OFB, and with M&G, that window becomes implacable on diagonal walls. Is there a fix for it yet Huh
Logged
Emma
Goopy Lover
Dead Member
*
Posts: 6109


All Pescados Suck.


View Profile WWW
Re: Broken M&G Window
« Reply #9 on: 2009 February 15, 12:13:48 »
THANKS THIS IS GREAT

Deja Vu?
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.083 seconds with 20 queries.