MUHAHAHAhahah....3D isnt THAT difficult!
BlitzMax Forums/BlitzMax Beginners Area/MUHAHAHAhahah....3D isnt THAT difficult!
| ||
Hey peeps. ive been playing around with the Terrabit demo, and ive added some b3d like commands like positionentity and turnentity... and cameras..... snot that difficult y'know.... Sorry i dont have a link. But this OpenGL is realy not as killer as i first thought! [edit] I just hit the point where i need to do "local" transformations... This, is, as a beginer, where i fail!!!! ...So i suppose this is where this thread becomes useful.... I have the pitch/yaw/roll values stored. i have a local x/y/z vector to move by. How do i apply that vector so that 0,0,1 always moves the object the way its facing? |
| ||
These pages *might* provide some insight http://www.geocities.com/SiliconValley/2151/graphics.html http://www.magic-software.com/index.html I have a book called 3D Maths Primer for Graphic and Game Development which explains this quite well. |
| ||
If you have a look at the 3D Engine demo code, (in the BlitzMax showcase) there is a fair bit more in the engine than is demonstrated by the demo. Including local translation. MoveEntity as opposed to TranslateEntity, cameras etc. Most of it is in there. |
| ||
ooOOoh.. then i shall have a look... cheers :D |
| ||
You probably need to use the stack to push and pop matrices so that you can move into local coordinates rather than global? Something like that. |
| ||
You probably need to use the stack to push and pop matrices im already doing that Terrabit, youre engine is cooool... i like it! i only used the glhead demo to do mine- and so far its 100%b3d compatible... |