Viewport Drawing Problem

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  06 June 2008
Viewport Drawing Problem

I'm using 'gw' functions to draw some lines in the viewport
and I can't find the way to control their color from the default color, blue.

example code:

	gw.setTransform (Matrix3 1)
	gw.Polyline #([0,0,0],[50,0,0],[50,50,0],[0,50,0]) true rgb:#(green,green,green,green)
	gw.setColor #line  green
	gw.enlargeUpdateRect #whole 

can anyone help?
  06 June 2008
'fraid it draws perfectly green here - regardless of whether set through RGB: or with setColor. I made sure that it's not just 'always green' for me by specifying red,green,blue,yellow as the RGB array and got a colorful little gradiented square.

restart max?
try a different display driver?

Can't say I'm seeing anything in the Customize menu regarding some override toggle that might be at play here..
  06 June 2008
Thanks ZeBoxx2.
  06 June 2008
hi TzMtn,

I get the same problems as you! however setting the color before drawing it seems to solve the issue -

	gw.setTransform (Matrix3 1)
	gw.setColor #line yellow
	gw.Polyline #([0,0,0],[150,0,0],[150,150,0],[0,150,0]) true 
	gw.enlargeUpdateRect #whole 

Read my technical blog -
  06 June 2008
LoneRobot - thanks, that solved my problem.
  06 June 2008
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 02:03 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.