Author Topic: [invalid] g3dviewer adds team color to some of tree models  (Read 500 times)

val-gaav

  • Swordman
  • *
  • Posts: 17
    • View Profile
G3dviewer adds team color to some of tree models. For example tane.g3d from autumn tileset:


But it also happens with models from other tilesets for example new desert4 tileset adds color to palms too.

Tested on Windows with versions 3.8 beta

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: g3dviewer adds team color to some of tree models
« Reply #1 on: 2 August 2013, 14:05:58 »
This is not a bug. You have to turn off team colour when exporting to G3D, otherwise transparency in the texture is converted to team colour. See here.

The reason the model views correctly in-game is because tileset objects cannot have team colour, so the game understands it should be transparent, even if the model was exported incorrectly. The G3D viewer, however, has no idea what a model is used for, so displays what it's told to. Were you to use this model in a faction, you'd find that the team colour is displayed.

I'm marking this as invalid.
« Last Edit: 18 June 2016, 18:20:34 by filux »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

val-gaav

  • Swordman
  • *
  • Posts: 17
    • View Profile
Re: g3dviewer adds team color to some of tree models
« Reply #2 on: 2 August 2013, 22:19:09 »
Hi . Thanks for reply so the fault is in the models then.... Well I think there are quite a lot of that kind of faulty models in the current megaglest titlesets.

Maybe instead of a bug this should be a feature request to have an option to turn off teamcolor in g3dviewer  ? If this would be trivial to implement there...  If it is a lot of work it might be not worth it I guess...

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: g3dviewer adds team color to some of tree models
« Reply #3 on: 3 August 2013, 06:06:22 »
Maybe instead of a bug this should be a feature request to have an option to turn off teamcolor in g3dviewer  ? If this would be trivial to implement there...  If it is a lot of work it might be not worth it I guess...
While I personally believe modelers should always ensure they export their model with the correct settings, you have a point. However, you'll have to make a separate post on the Feature Requests board, then.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

val-gaav

  • Swordman
  • *
  • Posts: 17
    • View Profile
Re: g3dviewer adds team color to some of tree models
« Reply #4 on: 5 August 2013, 10:33:08 »
However, you'll have to make a separate post on the Feature Requests board, then.
I've done that... big thanks for help :)