This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] Tree isn't Transparent  (Read 6116 times)

frezer748

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 175
    • View Profile
[QUESTION] Tree isn't Transparent
« on: January 06, 2013, 03:00:44 am »
Good Evening Modcraft,


Well I have a problem with a "custom" tree, my problem is that the part between the leaves is white. I made in the .png file in Photoshop a transparent background, so that no white colour exist anymore. Than I saved it as .png  and with the function interlaced.
Than I put the .png file on the PNG to BLP2 Converter, after creating the .m2 and the skin. I edit in Pymordeleditor the texture path to the tree texture (100% correct path and also made "Hardcoded Texture").  
After put the files into the Patch, I log into my server and saw that the part between the leaves is still white. I don't anymore what's the Problem for.

Is there maybe a function in Pymodeleditor, to fix the Transparent thing on the .m2?

Screenshot:

http://i.minus.com/ibxhTgq1fU5Vjf.jpg


- Yes I also rebuilded the model and entered the .blp name into the Tree.mdl.
- When I open the model in Warcraft3ModelEditor, is it white too but when I go into (material>select the material> and check "Transparent") it's showing correct.
- Model is created in Mdlvis.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #1 on: January 06, 2013, 03:23:06 am »
You didn't set proper renderflag. Could also be that you didn't set an Alpha channel for the texture before converting it, but that would've been my second guess.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

frezer748

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 175
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #2 on: January 06, 2013, 01:47:34 pm »
Quote from: "Ascathos"
You didn't set proper renderflag. Could also be that you didn't set an Alpha channel for the texture before converting it, but that would've been my second guess.

Where do I set the render flag? In the PNG to BLP2 converter, or in Pymodeleditor?
« Last Edit: January 06, 2013, 01:56:22 pm by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #3 on: January 06, 2013, 01:56:16 pm »
Render flags are in the model, per geoset.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

frezer748

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 175
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #4 on: January 06, 2013, 02:00:15 pm »
Quote from: "schlumpf"
Render flags are in the model, per geoset.

And how do I do that in mdlvis? I don't work so often with Mdlvis, or is this not possible to make in Mdlvis.

Or in which Tool I'm able to add/change Render flags
« Last Edit: January 06, 2013, 02:02:33 pm by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #5 on: January 06, 2013, 02:02:32 pm »
Quote from: "frezer748"
Quote from: "schlumpf"
Render flags are in the model, per geoset.

And how do I do that in mdlvis? I don't work so often with Mdlvis, or is this not possible to make in Mdlvis.
Quote from: "frezer748"
[...]Is there maybe a function in Pymodeleditor, to fix the Transparent thing on the .m2?[...]
You don't ask questions you answered for yourself.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

frezer748

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 175
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #6 on: January 06, 2013, 02:08:03 pm »
Well I'm right now in Pymodeleditor with my model .m2 . But the Render Flag thing is weird, no where is something like "transparency" or kind of this. Or what of these things I have to check/select?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #7 on: January 06, 2013, 02:27:51 pm »
Quote from: "frezer748"
Well I'm right now in Pymodeleditor with my model .m2 . But the Render Flag thing is weird, no where is something like "transparency" or kind of this. Or what of these things I have to check/select?
... Test around ? Translate the words to your respective language or get a definition of them ? Compare to other models to see their flags ? Show some self-initiative.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

frezer748

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 175
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #8 on: January 06, 2013, 02:30:41 pm »
Quote from: "Ascathos"
Quote from: "frezer748"
Well I'm right now in Pymodeleditor with my model .m2 . But the Render Flag thing is weird, no where is something like "transparency" or kind of this. Or what of these things I have to check/select?
... Test around ? Translate the words to your respective language or get a definition of them ? Compare to other models to see their flags ? Show some self-initiative.


Well I did it already by my own, and try all through. Still not working...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #9 on: January 06, 2013, 02:33:00 pm »
Quote from: "frezer748"
Quote from: "Ascathos"
Quote from: "frezer748"
Well I'm right now in Pymodeleditor with my model .m2 . But the Render Flag thing is weird, no where is something like "transparency" or kind of this. Or what of these things I have to check/select?
... Test around ? Translate the words to your respective language or get a definition of them ? Compare to other models to see their flags ? Show some self-initiative.


Well I did it already by my own, and try all through. Still not working...
... Alright, upload it and I'll take a look at it. I'll give you information on what you did wrong.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #10 on: January 06, 2013, 02:40:36 pm »
Every other render flag (blending mode) than Combiners_Opaque has transparency. Thus, take Combiners_Mod, Combiners_Decal, Combiners_Add, Combiners_Mod2x or Combiners_Fade. _Mod or _Decal should fit your needs best.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #11 on: January 06, 2013, 02:46:37 pm »
Quote from: "schlumpf"
Every other render flag (blending mode) than Combiners_Opaque has transparency. Thus, take Combiners_Mod, Combiners_Decal, Combiners_Add, Combiners_Mod2x or Combiners_Fade. _Mod or _Decal should fit your needs best.
As the friendly guy I am, here a page that may help you....
http://www.wowwiki.com/UITYPE_AlphaMode
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

frezer748

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 175
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #12 on: January 06, 2013, 02:47:01 pm »
Well I changed it to _mod now. Looks only a little bit better : http://i.minus.com/iv0pi88TfP6uo.jpg
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #13 on: January 06, 2013, 02:48:50 pm »
Well, try a different one. Maybe the alpha map of your texture is bad.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Tree isn't Transparent
« Reply #14 on: January 06, 2013, 03:08:42 pm »
1. Make the leaves and the tree itself (the stem) two different geosets.
2. Set the leaves to a different renderflag.
3. Try again.-
« Last Edit: January 01, 1970, 01:00:00 am by Admin »