http://developer.hoops3d.com
  HOOPS/3dAF Questions
  How do I set edge color?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   How do I set edge color?
RatMonkey
Junior Member
posted June 16, 2006 01:02 PM     Click Here to See the Profile for RatMonkey   Click Here to Email RatMonkey     Edit/Delete Message
I am trying to modify the color of a shell's visible edges.

I would have thought that
HC_UnSet_Rendering_Options();
HC_Set_Color("edges = yellow");
would do the trick, but they always seem to come out white.

Thanks

IP: Logged

edgroc
Junior Member
posted June 19, 2006 05:34 PM     Click Here to See the Profile for edgroc     Edit/Delete Message
Is it possible that a previous call to Open_Geometry(), Open_Edge(), and Set_Color() may have already been done prior to your calls?

If the shell has its colors set this way, it overrides the segment level color attribute settings which you are providing. See Open_Edge() documentation.

IP: Logged

RatMonkey
Junior Member
posted June 23, 2006 01:46 PM     Click Here to See the Profile for RatMonkey   Click Here to Email RatMonkey     Edit/Delete Message
I just insert the shell and set visibility and color immediately after.
The geometry/edges aren't ever opened.

IP: Logged

ghobbler
Junior Member
posted June 26, 2006 09:58 PM     Click Here to See the Profile for ghobbler     Edit/Delete Message
Perhaps you're unsetting an "attribute lock" rendering option, and thus your colors are being overridden by an "attribute lock" set higher up the segment tree?

IP: Logged

RatMonkey
Junior Member
posted July 25, 2006 12:51 PM     Click Here to See the Profile for RatMonkey   Click Here to Email RatMonkey     Edit/Delete Message
I 'fixed' it, by adding
HC_Set_Rendering_Options("attribute lock = color");
(The HC_UnSet_Rendering_Options call was also unnecessary)

It seems that my HC_Insert_Shell call must be setting its edge color. Is this a bug?

Thanks for your help.

IP: Logged

All times are PT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | http://developer.hoops3d.com

Copyright©2004 Tech Soft America. All Rights Reserved.


Ultimate Bulletin Board 5.46