This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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:

Don't get me started about those stupid light bulbs.
subject: m3g and pick in immediate mode!
jQuery in Action, 3rd edition