3D Model view problem
3D Model view problem
Hi all,
i'm new to irrlicht and i'm trying to load a .3ds that i'v maked with Cinema 4D, but when i load the model on irrlicht i get a strange error, if i move or rotate camera (FPS custom camera) some faces of the model become invisible but they would have to be visible!!
Is this due to a programming error or i haven't add some stuff??
Please help me!
i'm new to irrlicht and i'm trying to load a .3ds that i'v maked with Cinema 4D, but when i load the model on irrlicht i get a strange error, if i move or rotate camera (FPS custom camera) some faces of the model become invisible but they would have to be visible!!
Is this due to a programming error or i haven't add some stuff??
Please help me!
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
In case you use the software renderer (tutorial 1 with a different model) than this is expected behavior. Simply change to directx or opengl or the burningvideo renderer. In case this happens all the time you should upload the 3ds somewhere for us to check. Could be a problem with materials in 3ds. Or it's simply the camera settings (near plane etc) which you can rule out by loading the mesh with the mesh viewer.
Yeah the problem are the near and far settings because now only far faces are invisible, what are the things to change?hybrid wrote:You could try to disable culling and change the near and far planes to very small and very large values (in case your mesh is large).
I'wll upload a screenshot and model soon.
Thanks for your help.
I have changed a bit far and near value, now the far faces are visible, but the problem is not completly solved, there are many strange bug...
There are some screenshots:
This is the normal tunnel:
And this is the bugged tunnel (it appears half invisible if a move the camera)
This is the normal wall:
And this is the bugged wall (it appears half invisible if a move the camera)
Finally, this is a wall that appears completly invisible, but is visible from the extern:
Any suggestions?
There are some screenshots:
This is the normal tunnel:
And this is the bugged tunnel (it appears half invisible if a move the camera)
This is the normal wall:
And this is the bugged wall (it appears half invisible if a move the camera)
Finally, this is a wall that appears completly invisible, but is visible from the extern:
Any suggestions?
Yeah I'm using OcTreeshybrid wrote:Do you use OctTrees?
Yes, is always invisible from the inside.hybrid wrote:And is the last wall always invisible from the inside?
I don't have changed culling settings so it are enabled (how change it?)hybrid wrote:Please not that if you have backface culling enabled (default) you won't see backfaces. So maybe the wall is just wrongly orientated.
For the invisible wall the problem may be this, but for the other face that become half invisible if a move camera?
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
The invisible wall should be fixed with a 3d modeller, because enabling backface drawing is fillrate consuming. But you can change the material flag to disable the culling.
OctTrees should work for other models as well, but there are some pecularities with the culling which may lead to holes. These are probably bugs in the algorithms, who knows. BTW: Do you use Irrlicht 1.3.1?
OctTrees should work for other models as well, but there are some pecularities with the culling which may lead to holes. These are probably bugs in the algorithms, who knows. BTW: Do you use Irrlicht 1.3.1?