Opened 5 years ago

Closed 5 years ago

#1002 closed defect (fixed)

gl.UnitShape draws the wrong stuff

Reported by: Bluestone Owned by:
Priority: major Milestone: BAR Beta release
Component: BAR Version:
Keywords: Cc:

Description

see e.g. the com that's drawn by the initial queue widget when choosing start location

Change History (4)

comment:1 by Bluestone, 5 years ago

After [4799] it draws the unit, but opacity is broken - https://springrts.com/phpbb/viewtopic.php?f=12&t=34401. The unit that it does draw looks a bit oddly textured to me.

I can't fix this without learning more opengl than I have time for.

http://imolarpg.dyndns.org/trac/balatest/browser/branches/BAR/luaui/widgets/bgu_initial_queue.lua?rev=4799#L236

Last edited 5 years ago by Bluestone (previous) (diff)

comment:2 by Bluestone, 5 years ago

Summary: gl.UnitShape draws a unit without any texturegl.UnitShape draws the wrong stuff

comment:3 by anonymous, 5 years ago

you want gl.UnitShape(..., raw=false, toScreen=false, opaque=false)

comment:4 by Bluestone, 5 years ago

Resolution: fixed
Status: newclosed

thanks, i should have read the changelog more carefully & ignored https://springrts.com/phpbb/viewtopic.php?f=12&t=34401 ...

(actually, we want gl.UnitShape?(..., raw=false, toScreen=true, opaque=false) since it's in DrawScreen)

Note: See TracTickets for help on using tickets.