Skip to main content
GameDev.net gamedev.net
🔒 Locked

Is the world matrix called for every scene object?

Started by MarauderX Aug 2, 2006 at 2:22 PM 1 replies 650+ views
Original Post
MarauderX
MarauderX
I don't know if this is the right place to ask this question, but I'll try anyway.:) I'm using VC++ and Direct3D to create a scene. I read some documents about the projection, view and world matrices, but they confuse me sometimes. There for I want to ask this question: If there are 100 objects in a scene (a few walls, a few chairs, etc.), do I really set the world matrix just before each object so it will be drawn at the location represented by the world matrix? That way I will set the world matrix 100 times per frame, right?
haegarr
haegarr
Usually you will set 100 different world matrices for 100 walls each one given in a different local co-ordinate sytem. If you have, say, 4 walls building up a room, and the 4 walls are all given in the same co-ordinate system (e.g. the one of the room), then you need to set-up the belonging world matrix once (but only if you render the 4 wall consecutively, say without any geometry in-between that is given in another local co-ordinate system).
MarauderX
MarauderX
Thank you very much.

Topic Locked

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

Sign in to reply to this topic.