Mounted images only show in 3rd person
by Melvin Ewing · in Torque Game Engine · 07/25/2005 (5:52 am) · 5 replies
All the mounted weapon images on bots will only render when in the 3rd person camera.
How do I render bots weapons when in 1st person, but not the players?
thanks
MEL
How do I render bots weapons when in 1st person, but not the players?
thanks
MEL
#2
BUT, I guess my original question still remains... is there a way not to render the players mounted images, but still render the AI bots?
MEL
07/25/2005 (7:18 pm)
Thanks Ben for the reply. I'm assuming something like that has happened. But what setting would it be. I remember changing something so that the players weapon would not be rendered, but I thought that was simply the renderFirstPerson = true; but changing that had no effect. Maybe I need to check the prefs and see if I changed something. BUT, I guess my original question still remains... is there a way not to render the players mounted images, but still render the AI bots?
MEL
#3
07/26/2005 (12:21 am)
Yes.. They're being rendered in 3rd person mode, so as long as images show up in 3rd person and not in 1st, you're set, if I'm understanding your problem properly.
#4
I would desire that the weapons mounted on the AIPlayers always be rendered whether first person or third person camera. I would only like the weapons on the Player to be rendered when in 3rd person camera and not rendered when in first person camera.
Currently, no weapons (whether AIPlayer or Player) are being rendered when the player is using the 1st person camera, and they are all being rendered when the player is using the 3rd person camera.
Thanks Ben for helping me with this.
MEL
07/26/2005 (4:09 am)
Hum, it sounds like I have not explained the problem well enough, let me try again.I would desire that the weapons mounted on the AIPlayers always be rendered whether first person or third person camera. I would only like the weapons on the Player to be rendered when in 3rd person camera and not rendered when in first person camera.
Currently, no weapons (whether AIPlayer or Player) are being rendered when the player is using the 1st person camera, and they are all being rendered when the player is using the 3rd person camera.
Thanks Ben for helping me with this.
MEL
#5
07/26/2005 (12:13 pm)
Ah... Simplest thing would be to put an if statement in ShapeBase render code, and have a flag that the AIPlayers set to be true, that controls if images get their render code called. There might already be code to control this.. I haven't looked super closely at that part of Torque in a while.
Associate Ben Garney