[Resolved] - Draw shape being drawn in wrong place
Hi All,
I found something weird today which looks like a bug.
I am using 14 - Game Basics - 14 - Camera Modes and I added a second camera and viewport. I wanted to draw a pyramid and an edge to show where the camera is pointing which works great. However, if I add a terrain type object to the world, the shape will be drawn there unless I am actually looking at the camera.
I have attached my draw function below, the whole source to the post and a video showing it. I also attached the tree in question because i tried the same thing with the rock model and it did not happen which i find even weirder.....
Code:
void Draw()
{
Camera mainCam = Cam;
Renderer(Render);
D.text (0, 0.9, "Press Tab to switch camera modes");
That is a good thought. I added SetMatrix() right before the draw Pyramid and that seems to have worked. I did not even think about the matrix being moved in the previous render call, nice one.
I think that resolves it. Still not too sure why it only happens with the bamboo model but hey, whatever works.