Print

Print


Fixed.  The issue wasn't trail handling: it was that HeatBugs was using setPortrayalForAll for the bugs.  This overrode the setPortrayalForObject used in the commented-out trail code.  It was a stupid little bug in HeatBugs's drawing.

I have posted a new version of HeatBugsWithUI, plus a few minor cleanups of other classes (which aren't really germane to the issue).  You'll notice now that you must UNCOMMENT several lines and also COMMENT OUT one line in order to get trails working right.

Sean


On Sep 10, 2015, at 5:57 PM, Sean Luke <[log in to unmask]> wrote:

> I think there's a bug in MASON's handling of trails for grids.  But it's taking me a while to nail it down.  Works fine in flockers but not in HeatBugsWithUI.  I'll look at it some more.
> 
> Sean
> 
> 
> On Sep 9, 2015, at 2:44 PM, Stewart Aitken <[log in to unmask]> wrote:
> 
>> The manual suggests looking at flockers for the trail. I am not using MASON 19 but rather MASON 18 and I have some code that produces trails.
>> Regarding TrailedPortrayal2D how have you configured the trails to be shown manual19 suggests there are four different ways of doing this?
>> Have you tried selecting one of them to see if a trails is made.
>> 
>> On 9 September 2015 at 17:22, Ernesto Carrella <[log in to unmask]> wrote:
>> Wanted to have pretty trails following my portrayals. 
>> 
>> Tried to code in the TrailedPortrayal2D in my model, nothing ever shows.
>> 
>> Then I tried just uncommenting HeatBugsWithUI as suggested by the javadoc. Still nothing, no trails ever show up.
>> 
>> Is anybody using TrailedPortrayal2D and can assure me it works and the problem is on my end?
>> 
>> Ernesto
>> 
>> 
>> 
>> 
>> -- 
>> 
>> 
>> 
>> EMAIL DISCLAIMER http://www.york.ac.uk/docs/disclaimer/email.htm