I´m programming a worldeditor (Some People call this mapeditor, too). If you want to place Entities or select them after placing them, there appear Meshlines around them (12 Lines per Entity; I use the Boundingbox for it). The only Problem is: This method is still too slow.
12 Lines per Entity and framerate Drops to 14 with 45 Entities selected (5 trees á 9 Entities) -> (540 Lines). Without the Meshlines it´s still on 60.
Ok, 540 Lines are not less. But 1 tree got 9 Entities (There is a reason for it, catchword: woodcutting) and every Entity gets 12 Lines.
I could try and give Objects with more than 1 Entity only 12 Meshlines (I think it´s easy to do) or I use a new idea, I could change the materials of whole tree (multitexture and multimaterial) to a new one or "transform" the given materials.
In my mind, I see the normal treetextures (bark, woodrings, Leaves) with a little transparency and a shade of green/red or a other Color.
There is only one Problem: My knowledge in materialscience (
What I can do is changing the material in a new one (green and transparent), but there´s not the original texture on selected entities. Additional I don´t have an idea on getting the old, original texture back.
So, could someone help me please? This would be great and a latern in the dark materialroom.
Greets,
Bananenfreak
