Chiblue Posted February 28, 2010 Share Posted February 28, 2010 After spending the entire day trying to understand this problem I am still none the wiser.. Basically I have a gun model with animation... in UU3D and Model Viewer everything works, when I use the model using a 3rd Person camera everything is fine... but when I set the model into the position the gun needs to be in world co-ordinates, when I level the gun model is disappears, when I move up or down it re-appears... the model is rotating with the camera actually it is set as a child entity for the camera... so the distance from the camera is not changing... so I don't see how CameraRange is the issue, this said I changed the camera near range to 0.0001... as small as I can go without causing render errors... If I move the model away from the camera in the z axis i.e. "forward" it does not disappear... even if I have the mesh shown and rotate it still disappears at certain points... this seems to be at 90 degree incrememnts from the spawn rotation, and anything that is level.... i.e. parallel or there abouts to the ground... see the attached now you see it now you don't... Any and all suggestions would be appreciated... Quote If it's not Tactical realism then you are just playing.. Link to comment Share on other sites More sharing options...
Chiblue Posted February 28, 2010 Author Share Posted February 28, 2010 This appears to be camera culling, I have set the EntityOcclusionMode for the model to 0, but this does not help, can anyone sggest why this is not forcing the camera to render the entity? Quote If it's not Tactical realism then you are just playing.. Link to comment Share on other sites More sharing options...
Canardia Posted February 28, 2010 Share Posted February 28, 2010 Have you tried UpdateNormals(mesh) on the gun mesh? When normals of a mesh are not correct, it will also randomly disappear from view. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Chiblue Posted February 28, 2010 Author Share Posted February 28, 2010 According to WIki, update normals is only valid for Terrain? Quote If it's not Tactical realism then you are just playing.. Link to comment Share on other sites More sharing options...
Canardia Posted February 28, 2010 Share Posted February 28, 2010 I meant UpdateMesh(). Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Chiblue Posted March 1, 2010 Author Share Posted March 1, 2010 Tried it still not working... It obviosly something to do with the camera culling the mesh but I don't know why the entire mesh when I have had culling issues previously. Just faces did not get rendered not the entire mesh, I will keep trying thanks for the help. Quote If it's not Tactical realism then you are just playing.. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.