LWJGL 3.0 - unproject

Started by jmguillemette, December 03, 2014, 05:56:55

Previous topic - Next topic

jmguillemette

is there any plans to implement glUnproject in lwjgl 3.0?

reason i ask is its a key part for my raycasting util .. and rewriting the c code seems like a painful task for a pure java guy like me :P (ok and im being a bit lazy right now :P )


quew8

It's actually gluUnproject(), since it is part of the GLU library. The GLU library mainly provides utilities for the deprecated functionality in OpenGL and I don't think there are any plans to have it in LWJGL3. I'd be surprised if there were frankly.

It's a really trivial method to implement yourself. Even if you don't know the maths, the function's doc page details how to implement it pretty thoroughly. As I recall, LWJGL used to implement this itself in Java so you could even just go use the old LWJGL2's implementation (with proper accreditation of course). And if you are really that lazy then I don't know how you've mustered the will power to switch to LWJGL3 in the first place.

jmguillemette

lol.. lazy only in terms of wanting to solve new problems not reverse engineer ones that likely have already been solved :)