Hi Gautam,

On Wed, 3 Mar 1999, Gautam Jindal wrote:

> Hi all
> I require some small information to wrap up a small project:
> 
> 1> How can I stop an object from getting lost from the screen?ie. whenever
> I translate,rotate sometimes the object gets lost and it becomes very
> difficult to track it down.Is there a way to make the object stay put on
> the screen.Please let me know how can I do this.

You'll probably need a button to reset the view transform. Or compute the
limit to which you can translate so that it doesn't run away.


> 2> Every time I run my application ,the object..which is a surface appears
> from the center of the screen ,I am interested in starting it from left
> bottom of my screen ,any ideas?

That's just setting your view trasnsform properly isn't it?

> 3> I am using mouse behaviour class provided my java 3.Anyway that I can
> change the translation steps and rotational  angle.

Have a look at the source code. I think there is a private attribute
call x_factor and y_factor. I don't know if there is setFactor()
method but you can make one of your own without too much trouble.

rOnn c.

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to