Camera questions (in-game item not system)
by Nathaniel Edwards · in Torque Game Engine · 04/21/2008 (9:26 pm) · 2 replies
Hello all! if there is already a thread about this im sorry. searching for "camera" yields a lot of what im not looking for :P
im making a game that uses a camera to take pictures and i was wondering how i should capture/record the images? should i just turn off the gui and snap a screen shot and pop the gui back on? if so can i view the pictures ingame once ive saved them as jpg screen shots?
question number 2: i want the game to "know" what your taking a picture of. how would i go about "marking" special photographic objects? can i create invisible markers with information like the angle at which you can see the item and max distance. i would also need to check if anything is in between you and the object.
thanks :)
Nate
im making a game that uses a camera to take pictures and i was wondering how i should capture/record the images? should i just turn off the gui and snap a screen shot and pop the gui back on? if so can i view the pictures ingame once ive saved them as jpg screen shots?
question number 2: i want the game to "know" what your taking a picture of. how would i go about "marking" special photographic objects? can i create invisible markers with information like the angle at which you can see the item and max distance. i would also need to check if anything is in between you and the object.
thanks :)
Nate
About the author
#2
A2: To be able to tell if someone has taken a photo of the object in question, you should be able to tell if you check what is in the area, and if its your object then they took the photo. Or even easier you could make it fire a projectile that only lasts a short distance, that will hit the object.
A3: if you want them to not be able to move then you could put them as a passenger in a vehicle, which is controlled by AI. But I think the moveable platforms would be nicer/easier, just make them unable to move. E.g increase their carried mass to unmoveable extremes - so they can still look around easily.
04/25/2008 (4:51 am)
A1: I think you should look in to the screen shot stuff, and then you can just draw the image back in a GUI.A2: To be able to tell if someone has taken a photo of the object in question, you should be able to tell if you check what is in the area, and if its your object then they took the photo. Or even easier you could make it fire a projectile that only lasts a short distance, that will hit the object.
A3: if you want them to not be able to move then you could put them as a passenger in a vehicle, which is controlled by AI. But I think the moveable platforms would be nicer/easier, just make them unable to move. E.g increase their carried mass to unmoveable extremes - so they can still look around easily.
Torque Owner Nathaniel Edwards
Thanks :)
Nate