Jump to content

[Help] 3D Object Magnification [Java]

Alif Robby A

Hello Again, I Need another help, after your help at my other Topic that help me a lot.
how do i use my mouse scroll to do magnification in Java OpenGL?

 

this is my Project so far

 

Thanks Again

Link to comment
Share on other sites

Link to post
Share on other sites

What do you exactly mean by magnification. Isn't that just zooming in really far in to the object would mean just move the camera close up. If you want a part of the screen to be zoomed in, you would have to render to a texture, then draw a circular area of that texture onto the frame buffer.

When I read your code I can't really figure out what you are trying to do. Commenting would really help. I do however see that you are using immediate rendering functions (glBegin and glEnd). You should also consider learning about VBO's, which is the more 'modern' and the more common way of doing things.

Link to comment
Share on other sites

Link to post
Share on other sites

sorry for the late reply 

yes i mean zoom in / out .
the reason why there is no comment because my comment still in Indonesian language and i still working to make the English one.

my lecturer teach me using glBegin and glEnd, so i don't know what is VBO, can you give simple explanation about VBO ?

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×