Author Topic: need help with shaders & md3  (Read 3576 times)

NeZetiC

  • Posts: 4
  • Turrets: +0/-0
need help with shaders & md3
« on: January 26, 2007, 01:07:36 pm »
Hello,

I need some help with shaders & md3.

I would like to use q3map_surfaceModel shader, but all my tries are failures and I can't find any working example.

Moreover, I'm able to create map with md3 from data-1.1.0.pk3 (ex: models/mapobjects/plant_life/grass.md3), but I can't include my own md3 (from my map pk3).

ars

  • Posts: 7
  • Turrets: +0/-0
need help with shaders & md3
« Reply #1 on: January 26, 2007, 11:00:50 pm »
for your md3's they have to be in
yourmapname(or whatever).pk3/models/mapobjects/
then you put your models here should work
each model needs its own file
ex. multiplant/bannanaleaf.tga,  palmfrond.tga,  multiplant_p2.md3
so the whole string is:

yourmapname.pk3/models/mapobjects/modelname/model.md3, texture1.tga, texture2.tga, etc...

for as many textures required
pk3 needs to be in tremulous/base/

hope this helps 8)

NeZetiC

  • Posts: 4
  • Turrets: +0/-0
need help with shaders & md3
« Reply #2 on: January 27, 2007, 09:08:43 pm »
Ok, thx for your answer ars, I found my problem. On my system, q3map2 search a path called $HOME/.q3a/base but I've got only $HOME/.trem. So one symbolic link later, I can include my one models...

But q3map_surfaceModel shader dont work... (not surprising, I think it's a bit tricky to use).

ars

  • Posts: 7
  • Turrets: +0/-0
need help with shaders & md3
« Reply #3 on: January 27, 2007, 09:29:38 pm »
the shader file would have to be in a pk3 in tremulous/base

ex mapname.pk3/scripts/shadername.shader

textures used in shader go in:

ex. mapname.pk3/textures/mapname/

so I would think the q3map_surfaceMadel shader would go there or it might not :-? but I would try it.

If this doesn't work it might go in the same spot as the md3 and the tga's

NeZetiC

  • Posts: 4
  • Turrets: +0/-0
need help with shaders & md3
« Reply #4 on: January 28, 2007, 01:16:28 am »
Ok, I finaly found my mistake... I forgot to add my shader file to shaderlist.txt, ans so q3map2 didn't see it during compilation  :roll:

I'm a damn noob  :wink:

NiTRoX

  • Posts: 1453
  • Turrets: +41/-200
need help with shaders & md3
« Reply #5 on: January 28, 2007, 08:45:18 am »
Yes you are ;)