Article #13 - gluUnproject
hi! i haven't been into the OpenGL coding for a while, so naturally i've forgotten a lot of things...i've usually been programing in C++ but as i had to make a 3D Studio Max type of program it's occured to me that it's best to use C# and CsGL.dll...the thing is, i want to be able to draw a quad in 3D using just my mouse as in most 3D modeling programs but i haven't been able to convert the CVector3 GetOGLPos(int x, int y) function from C++ into C#...if anyone managed to do that please tell me how...it says a have a lot of invalid conversions like object [] -> double, float -> object and so on.... thanks in advance :) best regards
follow the yellow brick road
Hi,
I wrote that article, if I knew C# id give it a go but ive never used it in my life. If anyone does convert that function to C# let me know via PM and i'll contact NeHe about adding it to the bottom of the article. (like the Delphi code)
Luke.
I wrote that article, if I knew C# id give it a go but ive never used it in my life. If anyone does convert that function to C# let me know via PM and i'll contact NeHe about adding it to the bottom of the article. (like the Delphi code)
Luke.
Member of the NeHe team.
i've managed to patch something up, but need to test it some more...if everything turns up allright, i'll post the code, and mail it to you Kazade...
regards
p.s. whish me luck :)
regards
p.s. whish me luck :)
follow the yellow brick road
Had any luck with the C# code? If you email it to me with your name, and any comments you would like posted with it. I'll contact Nehe on Monday when I get back from London. Cheers.
Luke.
Luke.
Member of the NeHe team.
unfortunatelly, i'havent managed to write any code that actually works :(
i think that CsGL.dll library is a bit buggy...some of the functions' arguments are of different types and i haven't been able to convert them acording to openGL functions' requirements...i'll try to post the problem on openGL related news groups, and if anyone gives me an answer, i'll mail the code to you...
best regards,
miran
i think that CsGL.dll library is a bit buggy...some of the functions' arguments are of different types and i haven't been able to convert them acording to openGL functions' requirements...i'll try to post the problem on openGL related news groups, and if anyone gives me an answer, i'll mail the code to you...
best regards,
miran
follow the yellow brick road
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement