Page 1 of 1

Coding EnemyModels under Vertex Lighting

Posted: Sat Mar 26, 2005 8:48 am
by serv0
I know individuals working on a mod right now that is almost competed. However one of the main issues they are facing now is Coding EnemyModels and PM Skins into this mod under Vertex Lighting. It is already completed under Lightmap lighting.

I am not a coder nor do I know why they are facing problems with the coding of models under Vertex lighting, compared to having success with coding the models under Lightmap. If your a coder and experienced with these issues any assistance/direction with this problem would be greatly appreciated!

Posted: Sat Mar 26, 2005 2:52 pm
by voodoochopstiks
perhaps get the coders to post here and ask?

Posted: Sat Mar 26, 2005 8:39 pm
by stas
Thanx servo.
Anyways, i'm the coder for the mod. The problem i have is with bright skins under VertexLight (Lightmap is fine). The problem is that i cant seem to set right skins to a model. Model itself is registered fine, but the skins do not show up. So the end result in the game is just the white model. The problem seems to be with the trap_R_RegisterSkin function which does not register the skin. Just as it says in the comments, it returns all white. That's it. I've tried quiet a few different fixes, but nothing seems to be working. Any help will be appreciated.

Posted: Sun Mar 27, 2005 1:31 pm
by digibob
Posting your shaders/skins might be a good idea, there could very well be a mistake in one of them.

Posted: Tue Mar 29, 2005 3:38 pm
by stas
Here is the shader and the sample skin files

players.shader:
http://www.jbpowfiles.com/pub/models/players.shader

skin:
http://www.jbpowfiles.com/pub/models/head_pm.skin
http://www.jbpowfiles.com/pub/models/lower_pm.skin
http://www.jbpowfiles.com/pub/models/upper_pm.skin

Given the fact that everything works under the lightmap, i really doubt that there is a problem with any of the skins or shaderr (unless i'm missing something obvious).
Thanx

Posted: Thu Mar 31, 2005 6:46 pm
by serv0
bump

Posted: Sun Apr 03, 2005 3:10 am
by stas
fixed.

Posted: Sun Apr 03, 2005 3:56 am
by obsidian
Would you mind posting the solution... for other people who may be having this problem in the future?

Posted: Mon Apr 04, 2005 5:25 am
by stas
sure.
before registering skin, turn off vertex light :)
thanx to arQon.

as simple as it gets.