Page 1 of 1

Materials switching

Posted: Wed Nov 26, 2014 1:58 am
by rrTea
I wanted to migrate my project from my desktop machine to my laptop. But things that work perfectly on desktop do not work anymore.

For example one of the things I managed to isolate is a problem of Material switching. In the attached example, the Material used to render model "Dummy" switches after the "DummyKid" disapears! (The "DummyKid" is also rendered incorrectly, even though it looks corect in the ZGE's Preview Window.) If you look into the code, "Dummy" should absolutely never switch materials. I'm also attaching the screesnhots for comparison.

Maybe I'm doing something really stupid here, but then I'd expect it to glitch on both machines, which is not the case (again, this works perfectly on my desktop computer).

This is somehow connected to RenderText component (which also behaves weirdly, I'll try to report it some other time) I think. Same thing hapens with both the newest build and one of the pre-threading builds.

Anybody else had similar problems?

Edit: Moved the zge project from the post into the attachment otherwise it breaks the formatting.

Posted: Wed Nov 26, 2014 8:34 am
by VilleK
In your screenshot, it looks like texturing is enabled for some reason even though the material for Dummy has no textures. However on my computer it works fine.

I did a small change in ZGE just now. Please download and see if it makes any difference: http://www.zgameeditor.org/files/ZGameEditor_beta.zip

Posted: Wed Nov 26, 2014 9:07 am
by rrTea
Indeed it does, now it works on the laptop too. Thanks for fixing it!

Posted: Wed Nov 26, 2014 11:03 am
by rrTea
Ever since the threading was introduced, the RenderText component sometimes renders all the characters as glitchy squares. I have not yet managed to isolate it (lots of Models etc involved) but I can reproduce it in my project at one particular point 100%. This happens on both laptop and desktop computers.

Is this a known issue or should I dig a bit more?

Posted: Wed Nov 26, 2014 12:01 pm
by VilleK
I think I know what can cause this. I made another fix. Please download and try again.

Posted: Wed Nov 26, 2014 10:48 pm
by rrTea
It works again! Great, thanks!