Viewport Drawing Problem

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 06 June 2008   #1
Viewport Drawing Problem

hi,
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 
	gw.updateScreen()
)


can anyone help?
 
Old 06 June 2008   #2
'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..
 
Old 06 June 2008   #3
Thanks ZeBoxx2.
 
Old 06 June 2008   #4
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 
	gw.updateScreen()
__________________
Regards,
Pete

Read my technical blog - lonerobot.net
 
Old 06 June 2008   #5
LoneRobot - thanks, that solved my problem.
 
Old 06 June 2008   #6
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.
 
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 02:54 PM.


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