Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java 3D > Trouble Picking...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 726 of 832
Post > Topic >>

Trouble Picking with my own VirtualUniverse on Ortho Projection

by "tiago.cardoso" <tiago.cardoso@[EMAIL PROTECTED] > Jan 5, 2007 at 11:16 AM

Hello,

I made a simple app with a simpleUniverse. After testing it and using
picking (worked fine).

I decided to implement the real app. The real app has to be in Ortho
projection and have tranformations on the viewbranch.

So, I implemented the a class extending virtualuniverse. I did
everything "by the book" I think and everything worked fine as for the
visual aspect, object showed up in the right place and the view was
right.

Now, I'm trying to use pickcanvas but it doesn't work at all :(
I've search a lot on the web and I already saw that there some kind of
problem with the pickcanvas pickshape for the customized
virtualuniverse.
In fact, the PickShape orign point, direction and start point don't
seem to make any sense at all.
(my objects have about 100 of size and the camera is ver faraway, and
the pickshape point is about  (-0.07767107179733918,
-0.2967893129673346, 0.4174332443807395) although it changes - though I
don't understand how and why)

My universe has only a Locale. A world branch where I have my objects
and a view branch with my viewplataform and where I apply my
tranformgroup to change the camera point of view.
I use...

projection2.ortho(0, _width, 0, _height, -BACK_CLIP_DISTANCE,
BACK_CLIP_DISTANCE);

Transform3D cameratransf= new Transform3D();
	    this.getTransformGroup().getTransform(cameratransf);
projection2.mul(cameratransf);
view.setLeftProjection(projection2);

.... to have a ortho projection.

Any tips.. plz ?? :D

Thanks!

Tiago Cardoso
 




 4 Posts in Topic:
Trouble Picking with my own VirtualUniverse on Ortho Projection
"tiago.cardoso"  2007-01-05 11:16:04 
Re: Trouble Picking with my own VirtualUniverse on Ortho Project
Thomas Partsch <thomas  2007-01-05 20:52:08 
Re: Trouble Picking with my own VirtualUniverse on Ortho Project
"tiago.cardoso"  2007-01-06 13:23:37 
Re: Trouble Picking with my own VirtualUniverse on Ortho Project
Thomas Partsch <thomas  2007-01-07 18:50:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 4:34:19 CDT 2008.