Queston to SplashDamage regarding the Blitz


(twt_thunder) #1

Hey SD developers, well actually to the ones of you who created ET.
I am working on replacing wolfenstein models, and I wonder about the MM model there? you allready have three other models where one is for my eyes the same?? why is this?


(KeMoN) #2

The *mm models are most likely intended to be used as MiscModels. Normally vehicle models are used as misc_gamemodels so they can be worked with (eg escorted). Misc_models and misc_gamemodels require entirely different shaders, otherwise you will run into serious problems, mostly related to lighting. While misc_models would be lit correctly, misc_gamemodels need the shader parameter rgbGen lightingDiffuse to be lit somewhat correctly. Unfortunately using this parameter doesn’t take care of all issues, but it’s as close as you get to properly lit gamemodels. Had to learn that the hard way when trying to include your tree model into a map.

Those *_mm models are also not included in pak0 and actually there are no models in there, that are exclusively used as misc_models. They would have just been dead weight/filesize. That makes the assumption quite likely.

I opened one ‘normal’ model and the same model with the ‘_mm’ ending and they are pointing to different textures/shaders.
I posted them below so you can clearly see the difference. Misc_model shader is a standard dummy shader pointing to the correct texture via implicitMap and the misc_gamemodel shader is also a dummy shader, pointing to the correct texture via the map parameter and has the rgbGen parameter included.

models/mapobjects/blitz_sd/blitz_sd_body
{
	qer_editorimage models/mapobjects/blitz_sd/blitz_sd.tga
	{
		map models/mapobjects/blitz_sd/blitz_sd.tga
		rgbgen lightingDiffuse
	}
}

models/mapobjects/blitz_sd/blitz_sd_body_mm
{
	qer_editorimage models/mapobjects/blitz_sd/blitz_sd.tga
	implicitMap models/mapobjects/blitz_sd/blitz_sd.tga
}

(Mateos) #3

Someone give that man a cookie, I can’t atm o/


(Nail) #4

consider him cookied, t’was an excellent post


(twt_thunder) #5


here you go Kemon!!! jeez why do I need to be so stupid…


(KeMoN) #6

Haha, thank you. You can never have enough cookies.