Skip to main content
gamedev.net
🔒 Locked

View vs World

Started by FijiRasta Nov 6, 2002 at 6:21 AM 1 replies 250+ views
Original Post
FijiRasta
FijiRasta
Just wanting to know so that I dont generate bad habits: When moving around in a scene is it best, better coding practice or whatever, to set the view once and then move all objects based on new world coordinates, or simply move the view and leave the world coordinates alone? Cheers.
S1CA
S1CA
Rename "View" to "Camera" and "World" to "Object into universe" it all makes sense

i.e. To move the viewer around the scene, the common practice is to alter the view matrix. To move objects within the world, alter the world matrix.

Both matrices get concatenated by D3D internally anyway* so there''s no greater cost for one over the other, but view is more "usual" for cameras.


[as an aside, OpenGL takes a matrix it calls "WorldView" where you do the same concatenation yourself before calling the API]

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.