Wednesday, August 17, 2011
3d house with sources
In this example I have loaded a 3ds file. Shadows are pre-rendered on the texture, so they run fast on video cards.
collisions are implemented in a very easy way. I used line collisions, that means that in order the camera not to go through a wall yo most provide the 2d coordinates of both ends, they form a line and camera always calculate the distance to that line and if is less than some precalcuated value, then there is a collision and the camera will not go in that direction. There is also in one room a fan working, Ive calculated the pivot point so I can rotate it. If you have any questions regarding this, post it here, anonymous comments are enabled.
here is the download link