Game Development Community

Mobs are not visible (fixed)

by genomegames · in Torque 3D Professional · 02/04/2011 (11:27 am) · 25 replies

Hello everybody!
I have a big problem, sometimes when I start my game, mobs aren't visible. If I switch the camera to free mode I can see mobs, if I return the camera to player mode, mobs aren't visible.
What is the reason?
Thank you for your time
Page «Previous 1 2
#1
02/04/2011 (12:14 pm)
What do you mean by mobs?
#2
02/04/2011 (12:26 pm)
mob is an AI character
#3
02/04/2011 (1:29 pm)
Are you using stock AIPlayer or something custom?
#4
02/04/2011 (3:27 pm)
More info would be helpful. Are you using custom shapes? Using custom camera methods? Using custom classes? Stock code/characters? If so, reproduction steps? etc etc...
#5
02/04/2011 (10:10 pm)
Sorry friends, I was sleeping until this moment :)
Yeah, I'm using custom shapes and custom classes of objects but I didn't modify camera methods and I didn't rewrite methods of repaint objects in custom object classes.
#6
02/05/2011 (6:46 am)
...and I wanna add that objects of standard AIPlayer class aren't visible too like objects of my custom classes
#7
02/05/2011 (9:49 am)
Ok, what version of T3D are you using? Can you duplicate this in a stock install and using only stock objects? The more information you can provide the better we can help you. If you can post your code and the exact steps to reproduce that would help the community to help you. But I haven't heard of anyone else having this kind of issue so I am betting its something you have modified.
#8
02/05/2011 (10:54 am)
I'm using Torque 3D 2009 Pro 1.1 Beta 1. No I can not duplicate this because I have made changes in the engine to work my objects. I can post a cod. What cod will I show? Classes of the objects?
#9
02/05/2011 (11:15 am)
Posting your code would help if you are able to. Have you tried using winmerge to compare your changes to stock code? I have tried that before to see if I changed something accidentally.
#10
02/05/2011 (11:23 am)
I didn't change player.cpp and aiplayer.cpp, for clear confidence I removed these files from clean version of Torque and recompile engine. But result is the same. Gideon and the other mobs aren't visible. This happens sometimes. Once I start my game - every mob is visible, but next start of the game - mobs aren't visible.
#11
02/05/2011 (4:50 pm)
What files would I post?
#12
02/05/2011 (5:03 pm)
Why don't we start with a list of the files that you have modified. I would use something like winmerge to make sure you get all the files. That might point us in the right direction from that.
#13
02/05/2011 (5:42 pm)
If you have a custom character, then make sure you have an Eye and Cam node in there. Plus also if you are seeing AI going right up to you and they vanish, you need to make their bounding box bigger.
#14
02/05/2011 (6:26 pm)
@JulianR
I sure my models have Eye and Cam nodes, and I will check the bound boxes.

@Ryan
Okay, this is a good idea. I have modified a lot of source cod files to fix Torque errors.
#15
02/16/2011 (4:26 pm)
Friends, problem is solved!
#16
02/18/2011 (5:03 pm)
I have the same error again...
For the first, how did I fix this mistake...
I moved all my modifications from the last working project to the new project which based on a clean engine version (T3D 1.1 B 1). I recompiled and my game was fine, mobs were visible every time! I made reserve copy. For some hours I was needed to make debug version of my game, I made full recompile and what.... I can't see my mobs, in release version too (after recompilation)... I deleted this version of the game and restore it from the reserve copy, it's fine, but after recompiling, mobs are invisible.
Is the result of a compilation depends of the time or stars places :)
Friends what do think about it? Any thoughts will help!
#17
02/19/2011 (10:36 am)
Dude, if you really want us to help you then post your code. Its a little difficult to help with out more context of your code.
#18
02/23/2011 (3:06 pm)
I really solved my problem!
True come true!
I needed to delete the eye node of my model because you can see my model from the third person camera everytime.
#19
02/24/2011 (6:58 am)
I'm not sure that's a solution. Are you saying that for some reason the player model is culling all other player models because the eye node is inside the player model? Something sounds fishy....
#20
02/24/2011 (7:40 am)
it's the truest true!
Many problems related with an eye node. Some time ago we had a mob, if he closely approached to main character he was twitched. After I deleted an mob's eye node, he began to walk well. And in this case we have collided with the same problem. And we've solved this!

In our game a main character appears with the third person camera, I had changed the parameter in the source cod, and therefore an eye node isn't needed.
Page «Previous 1 2