MASON-INTEREST-L Archives

September 2006

MASON-INTEREST-L@LISTSERV.GMU.EDU

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

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

Print Reply
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Fri, 22 Sep 2006 14:34:18 -1000
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-Transfer-Encoding:
7bit
Subject:
From:
Ryan Kadomoto <[log in to unmask]>
Content-Type:
text/plain; charset="us-ascii"
In-Reply-To:
MIME-Version:
1.0
Comments:
To: MASON Multiagent Simulation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (93 lines)
Maybe I should explain what I want.

Basically I want a single rectangular plane set at z=0. On this plane I want
an image displayed.

I would like this plane to be able to rotate.

If this is not doable, can you think of any alternatives that would give me
something similar?

Thanks for you help

Ryan



-----Original Message-----
From: MASON Multiagent Simulation Toolkit
[mailto:[log in to unmask]] On Behalf Of Sean Luke
Sent: Friday, September 22, 2006 12:47 PM
To: [log in to unmask]
Subject: Re: Background Image in 3D Model

Ryan, I'm not sure what you mean by an "auto-scrolling" background  
image in 3D.  The 3D display doesn't have scroll bars.  It's not the  
same concept.

Java3D has two facilities for background images:
	- An image that you just plop in the background behind everything  
else (warning -- Java3D doesn't do this efficiently)
	- A spherical image that you use to tile the outer boundaries of the

universe around you -- think of it as the "sky" in the background.

	Mason can do both -- you just need to hook it in the right place in

Java3D.

Sean

On Sep 21, 2006, at 3:50 PM, Ryan Kadomoto wrote:

> I am trying to place a background image in a 3D model.
>
> I would like the background image to be Auto-Scaling and Auto- 
> Scrolling, similar to what is described in the How-Tos (for 2D0 on  
> the Mason web site.
>
>
>
> What I tried to do so far is this:
>
> ----------------------------------------------------------------
>
> Image backgroundImage = Toolkit.getDefaultToolkit().getImage 
> ("imagefile.png");
>
> SimplePortrayal3D backgroundImagePortrayal = new ImagePortrayal3D 
> (backgroundImage);
>
>
>
> model.ourWorld.setObjectLocation(backgroundImagePortrayal, new  
> Double3D(0.0, 0.0, 0.0));
>
> ----------------------------------------------------------------
>
>
>
> ourWorld is a Continuous3D object in the SimState model.
>
>
>
>
>
> I am new to Mason and am working on some code that another person  
> created a while back.  If anyone has any ideas or sample code that  
> would help, I would appreciate it.
>
>
>
>
>
> Thank you,
>
>
>
> RyanK
>
>
>
>

ATOM RSS1 RSS2