File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes m3g and pick in immediate mode! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "m3g and pick in immediate mode!" Watch "m3g and pick in immediate mode!" New topic

m3g and pick in immediate mode!

A AlAnsari

Joined: Jul 11, 2009
Posts: 1
Dear All:

can anyone tell me how can i pass rhe x,y coordinate of the pointerPrerssed(), to the pick(-1, , ,camera, ray) !

i just want to know how collide with the cubes that im creating randomly so i can touch them thenm they disappear. i cant use retained or world. thats hwy i want im using iimmeidate mode cos of hte wireframe engine im using

im creating the meshes and adding them in a group.addChild() in the init section! but as im using immediate mode i can’t add the camera in hte group! so i didnt!

bellow: the x. and y are assigned to global variables and the checkHit() was inserted into the pointerPressed() cos when i add it in the run( ) IT GIVES AN ERROR (

these are the funcitons:

I agree. Here's the link:
subject: m3g and pick in immediate mode!
jQuery in Action, 3rd edition