With the recent advances I hope it might finally be possible to properly draw both units and features.
Using the latest dev build, this is what I get:
Code: Select all
gl.Color(1, 1, 1, 0.8)
gl.UnitShape(unitDefID, teamID)
->
http://i.imgur.com/ZJr3xvT.jpg (proper colors and shape, but the unit faces seem wrong - not ideal but good enough for an editor)
Features are a much bigger problem though:
Code: Select all
gl.Color(1, 1, 1, 0.8)
gl.FeatureShape(featureDefID, teamID)
->
http://i.imgur.com/P6bytDr.jpg (there's no color/texture and the vertexes are wrong - pretty bad and makes it hard to tell what unit it is)
Code: Select all
gl.Texture(1, "%-" .. featureDefID .. ":1")
gl.Color(1, 1, 1, 0.8)
gl.FeatureShape(featureDefID, teamID)
->
http://i.imgur.com/N84dhOw.jpg (at least there's a clear model, but still the texture colors are wrong and also the same issue with faces as the unit)