Cameraproject Problem

Blitz3D Forums/Blitz3D Programming/Cameraproject Problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Sorry, but I'm not really sure what your attempting to achieve here?

You're axis issue is simply because the mousex() and mousey() positions will be in the region 0-799 and 0-599 respectively. When you project this coord into 3d space you will always be positive in the x direction and positive in the z direction. You could do something like this ...

Cx# = Mousex() - graphicswidth()*.5
Cz# = mousey() - graphicsheight()*.5
Cameraproject cam , Cx, 0 , Cz

and ...

MoveMouse graphicswidth()*.5, graphicsheight()*.5


If you can explain better it'd help?

Stevie