ThePentiumGuy Posted August 21, 2004 Posted August 21, 2004 Hey, Earlier I was pretty sure I understood the concept of World transformations - but now that I think about it more, it gets more confusing and more questions pop up. I understand that you must move the world to move an object, but where are YOU viewing the world from? I think i'm viewing from point 0,0,0 - Can someone clarify please (3D transformations) Thanks Pent Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Arch4ngel Posted August 21, 2004 Posted August 21, 2004 Aren't you viewing the world from a camera object ? Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
ThePentiumGuy Posted August 21, 2004 Author Posted August 21, 2004 No, but I move around my objects positions using Device.Transform.View = Matrix.LH(Position, Target,Up), but is that possible :)!!! Viewing the world from a camera object? That's exactly what I want to accomplsih, can I view the world from a different position, or must I do it the usual way and translate objects relative to you/ pent Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
*Experts* mutant Posted August 21, 2004 *Experts* Posted August 21, 2004 You can move the view while leaving other objects in the same place. You just have to build a new View matrix everytime you wish to move the "camera" (which refers to the View transformation). You don't have to be viewing the world from 0, 0, 0. Quote
ThePentiumGuy Posted August 21, 2004 Author Posted August 21, 2004 Could you explain that more clearly please (with a bit of code if possible)? Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
ThePentiumGuy Posted August 21, 2004 Author Posted August 21, 2004 Ahah, I think I figured it out: World transformations are done to 'move' the object. View tranformations are done to change your position around in the world. Please let me know if this is correct, Pent Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
*Experts* mutant Posted August 21, 2004 *Experts* Posted August 21, 2004 Yes, the View transformation specifies where are you viewing the world from. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.