Notifications
Clear all
[Closed] [SDK] issues drawing polyline in viewport
Page 3 / 3
Prev
Jan 16, 2015 9:48 pm
dunno then, though would say I’d rather use a mesh (as wireframe only) to render something like that as opposed to a polyline.
Jan 16, 2015 9:48 pm
I think the Z-Buffer flag has to be cleared like this:
(rlim & (~GW_Z_BUFFER))
Jan 16, 2015 9:48 pm
if you always want it drawn on top yes
if (drawOnTop) vpt->getGW()->setRndLimits(limits & ~GW_Z_BUFFER);
from point helper
Jan 16, 2015 9:48 pm
How did you get point’s source code? I’m using max 2014 sdk and there’s no point in samples folder.
Jan 16, 2015 9:48 pm
Thanks Klvnk, I’ve solved the problem I’ve noticed that the getRndLimits() returns “50” as int, so it’s 2+16+32:
#define GW_ILLUM 0x0000002
#define GW_TEXTURE 0x0000010
#define GW_Z_BUFFER 0x0000020
but when I press 7 to enter the statistics mode it returns 18 (16+2, so without GW_Z_BUFFER).
So now I don’t use the getRndLimits() function, I do it like this:
DWORD rl = GW_ILLUM | GW_TEXTURE | GW_Z_BUFFER;
gw->setRndLimits(rl);
and it works perfectly
Page 3 / 3
Prev