Re: 3d gl camera

new topic     » goto parent     » topic index » view thread      » older message » newer message

i came close to the desired feel using the following code

                gl_translatef({-camdiff[X],-camdiff[Y],0.0})

                gl_rotatef(1.0,{camdiff[Y],0.0,0.0 })
                gl_rotatef(1.0,{0.0,camdiff[X],0.0 })

it just doesn't cut it tho :(


On Fri, 19 Nov 2004 13:34:21 +1000, spent memory <spent.memory at gmail.com>
wrote:
> 
> 
> ok heres the problem, i am able to get camera fluctuations from the
> program, like X points to the right or left and up or down, i am
> having an extremely hard time sending these values to an equation to
> get a desirable 3d camera feel. i have trawled the net and everything
> out there either wants to be a class or structures and now i see a
> piece of c++ code i feel like crash tackling my computer off the desk.
> can any 1 suggest a simple camera translation algorithm for rotating
> the camera around its own y axis and x axis i can handle the rest
> 
> thanx Joe
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu