Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / why???!! gw.triangle canot fill the color?
  RSS 2.0 ATOM  

why???!! gw.triangle canot fill the color?
Rate this thread
 
25754
 
Permlink of this thread  
avatar
  • SITT
  • Posted: 18 April 2009 07:55 AM
  • Location: China
  • Total Posts: 194
  • Joined: 31 May 2008 06:54 PM

fn testDrawTri =
(
    
gw.setTransform(Matrix3 1)
    
gw.startTriangles()
    
gw.triangle #([0,0,0], [50,0,0], [50,50,0]) #(red,red,red)
    
gw.triangle #([0,0,0], [50,50,0], [0,50,0]) #(green,green,green)
    
gw.endTriangles()
    
gw.enlargeUpdateRect #whole 
    
gw.updateScreen()
)
RegisterRedrawViewsCallback testDrawTri
UnRegisterRedrawViewsCallback testDrawTri


i am Chinese, my English is very poor,thank you for talk
MSN:sitt#live.cn

Attachment Attachment
Replies: 0