Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

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

Posted
Aren't you viewing the world from a camera object ?

"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

Posted

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

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*
Posted
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.
Posted

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...