I lied. Ran across this: http://processing.org/discourse/yabb2/YaBB.pl?board=OpenGL;action=display;num=1176483247
Spent about 20 minutes bringing it up to date and voila https://gist.github.com/1008742 Near as I can tell, this captures the object space coordinates of the object nearest the mouse cursor. I'll get back to "work" on moving it around. If that works out we'll see how it works in Penumbra. Exciting! On Jun 7, 12:53 am, Daniel <doubleagen...@gmail.com> wrote: > Meh. I'm more or less giving up. Being stuck on a peripheral problem > I have neither ability or desire to solve is about as fun as hacking a > four-year old program already written using java2d (having fun being > the main objective here).... > > On Jun 6, 7:32 pm, yair <yair....@gmail.com> wrote: > > > > > > > > > I'm using processing in a Java2D program. It doesn't have to be 3D... > > > On Jun 4, 5:24 pm, Daniel <doubleagen...@gmail.com> wrote: > > > > I suppose the noob tag is appropriate ie I was around sometime last > > > year and earlier but RLing got in the way of doing anything useful > > > with this lovely language. > > > > Anyway, I've got this old project (https://github.com/doubleagent/ > > > Magic--legacy- ) which I've recently gained a renewed interest in, and > > > simultaneously am less concerned about the potential legal issues > > > which made me disinterested enough to drop it 4 years ago. I'm proud > > > that it still builds and runs, but don't take the readme too > > > seriously, and I highly doubt the perl scripts work anymore. The > > > intent was to write a program which assisted MTG (Magic: The > > > Gathering) players by providing them with robust deck building tools > > > and a way to compete over a network using the honor system. Several > > > features are still unimplemented, and some were removed in this > > > version because the java2d worked too poorly to accommodate them. > > > > I'd like to port it to Clojure, but in the process I'd also like to > > > solve some fundamental problems. More specifically, real estate. In > > > a real game you would not be able to see any of the cards in great > > > detail, but get an overall view of the board, and be able to inspect > > > cards more closely by zooming and panning (over the whole board - I > > > find Wotc's way of zooming on individual cards undesirable). This is > > > even more critical when there are a lot of cards on the field eg some > > > decks can blast tokens onto the field which number into the hundreds. > > > > I'm unsure how to approach this core problem in Clojure. clj- > > > processing looks interesting, but I would prefer something more high > > > level b/c 3d graphics is difficult for me to wrap my head around. In > > > particular, mapping a mouse click to the nearest movable object in 3d > > > space and ensuring proper draw updates on the object with dragging.... > > > *head asplode* > > > > But I'm sure to be missing plenty. Suggestions? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en