MASON-INTEREST-L Archives

May 2008

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Magrath, Shane" <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Wed, 7 May 2008 16:55:27 +0930
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
Hi,
I'm running a 2D display where I want to use an image as a background
for the simulation. The image is a landsat PNG file that I want to use
as to give some "terrain effects" to the simulation. 

My idea is to use an IntGrid2D object to represent the terrain field.
The IntGrid2D object would be simply a grid with exactly one cell in it
- set to 1 incidently.

Then, my cunning plan such as it, is to use a FastValueGridPortrayal2D
object configured to use an ImagePortrayal2D object for all values
stored in the IntGrid2D object.

Except it's not doing what I expect - just a simple white background is
being shown. Debugging shows that the objects configure as I expect, the
image loads correctly into the ImageIcon object, etc...

So, is this the best way to go about this and perhaps someone has an
idea about what might be happening to my nice landsat terrain...?

Many thanks in advance.

Shane Magrath

IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914.  If you have received this email in error, you are requested to contact the sender and delete the email.

ATOM RSS1 RSS2