|
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn),
581
guests, and 0
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
MED FX / fx to multitex models
#84432
08/03/06 13:58
08/03/06 13:58
|
Joined: Jun 2005
Posts: 4,875
broozar
OP
Expert
|
OP
Expert
Joined: Jun 2005
Posts: 4,875
|
Hi conitec, i am aware of the fact that i may be accused of crossposting as i have asked this question in the shader forums before, but as i could not get an appropriate answer, i am trying to get my answer here. i am not coming along with MEDs FX-function in multitextured models. i need to assign a shader (entSkin1 for diffuse colour, mtlSkin1 for bumpmap) to a part of the model. so i go to the skin manager in MED, select my part, set the fx file. the part where the fx file is assigned to is invisible at runtime. i tried several things ( read this thread for more information) to access the material using c-script, but failed continuously. so i seriously need help on this. thanks in advance
|
|
|
Re: MED FX / fx to multitex models
[Re: jcl]
#84436
08/04/06 19:09
08/04/06 19:09
|
Joined: Jun 2005
Posts: 4,875
broozar
OP
Expert
|
OP
Expert
Joined: Jun 2005
Posts: 4,875
|
Quote:
Assigning materials is described in the manual. You do not need automaterial unless your entity has no action. There are 4 entity and material textures, <entSkin1>..<entSkin4> and <mtlSkin1>..<mtlSkin4>.
i read this part. however, in the shader forums, TheMatrix told me that entSkin1 is no longer the colour skin which is rendered atm (see link i posted), so i got confused. /see here
Quote:
There is no <cylinder1_sep4_> texture in a shader.
yes, i guessed that. i just had no idea where to begin, nothing changed, careless what i did.
Quote:
Before storing a shader in a model, test it with a material effect.
THIS works. but the material is applied to the whole model.
Quote:
If a specific shader does not work, you could ask for help in the shader forum - however all AUM shaders are tested.
i know it works. i used it without any problems in my single-skin models. what troubles me is the direct-assignment of fx-files in MED. If even matt_aufderheide directs me here..
-> ok, to put it short: if it's that easy as i assume from your post and i'm just blind atm, will you provide me a working example if I use my (yet untouched) 3-month-support-email-service (commercial) and send you the model?
[edit] or just post one multitexture model to download where you managed to apply any shader to just one of the skins.
|
|
|
Re: MED FX / fx to multitex models
[Re: broozar]
#84441
08/10/06 08:45
08/10/06 08:45
|
Joined: Jul 2000
Posts: 27,967 Frankfurt
jcl

Chief Engineer
|

Chief Engineer
Joined: Jul 2000
Posts: 27,967
Frankfurt
|
Well, the reason for your problem seems obvious: Your code assigns the effect to the whole material. So obviously it's visible on the whole model. Code:
material wire{ effect="mtlly.fx"; <== remove this skin1=front; skin2=front3d; flags=tangent; }
If you want the effect on one skin only, remove the effect definition from your material, and store the effect in the entity skin in MED only. Hope this makes sense. If you then still have problems, please post again. I'll then look into your project. We should get this to work.
|
|
|
|