Community

SCI Programming => SCI Syntax Help => Topic started by: gumby on December 26, 2012, 08:20:20 AM

Title: Walk around scenery (priority color issue)
Post by: gumby on December 26, 2012, 08:20:20 AM
I have a scenario where I need the ego to be able to completely walk around a scenery object.  If the ego is behind it, the object should 'hide' part of the ego, but if the ego is in front of it the ego should 'hide' part of the object.

I attempted to use priority colors, which solved half of the problem (walking behind), but now the ego cannot be 'in front' of the object.

EDIT:  Is the only solution here to use a view (even though it's static scenery)?
Title: Re: Walk around scenery (priority color issue)
Post by: Cloudee1 on December 27, 2012, 12:16:44 AM
No, drawing it staticly should be fine, placement of the object as well as a couple of control lines should help solve your issues.

One thing that I try to do whenever I have that situation is to try and keep the southern edge of the object at the bottom edge of a priority band, or at least use a control line to prevent the ego from being in the same band at the same time while he is in front of the object. That seems to be when things get a little iffy.
Title: Re: Walk around scenery (priority color issue)
Post by: gumby on December 27, 2012, 10:59:09 AM
I just got a hell of an education in priority colors.  I'm sorting it out now, thanks for the help.  The priority band display in Companion's pic editor is invaluable.

There doesn't seem to be any tutorial covering priority colors, or I cannot find them.  Is this a documentation gap?
Title: Re: Walk around scenery (priority color issue)
Post by: Cloudee1 on December 27, 2012, 07:08:28 PM
About the area where Brian starts drawing the box in the middle of the room, this tutorial talks about them a little bit.

http://sciprogramming.com/tutor.php?id=6
Title: Re: Walk around scenery (priority color issue)
Post by: gumby on December 27, 2012, 07:38:39 PM
I recognize this.  Why couldn't I find this earlier?  Quite helpful, thank you.

EDIT:  I see, I was focused on the section regarding props and views, 10 sections ahead in the tutorial.  Go figure.