GraphicsWindow polyline color

GraphicsWindow polyline color

Anonymous
Not applicable
749 Views
4 Replies
Message 1 of 5

GraphicsWindow polyline color

Anonymous
Not applicable
GraphicsWindow::polyline() doesn't seem to honor the color array in OpenGL or Direct3D mode -- it just shows up as blue -- but it does work in Heidi. Do I need to do anything special in order for polyline vertex colors to work in OpenGL or Direct3D? The same issue applies to the polygon methods (except the polygons don't show up at all in Direct3D ...)

The render limits I'm using are GW_FLAT | GW_SHADE_CVERTS | GW_COLOR_VERTS, although I don't think GW_SHADE_CVERTS is necessary here.

thanks!
0 Likes
750 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
I have exactly the same problem! Was anyone able to draw a colored polyline??
0 Likes
Message 3 of 5

stigatle
Enthusiast
Enthusiast
Use this, replace "GetUIColor(COLOR_CAMERA_CONE)" with your own color value.

gw->setColor( LINE_COLOR, GetUIColor(COLOR_CAMERA_CONE)); //default camera line color.
0 Likes
Message 4 of 5

Anonymous
Not applicable
Thanks! But I need to draw polylines with multiple colors.
That's why I want to use vertex colors.
0 Likes
Message 5 of 5

davidlanier
Autodesk
Autodesk

Hi,

 

Sorry about that, this API was not fully completed when using the Nitrous driver DirectX/OpengL and it is still not completed. This problem is logged and we will work on it soon.
The colors are ignored at this time in this function when using Nitrous DirectX/OpenGL.
Legacy drivers work because they use another part of the code.

Regards,



David Lanier
Principal Software Engineer
3ds Max Rendering Team
0 Likes