I've modeled simple cube and I cut out rectangle in which I put half sphere.
in blender it looks nice but ...
When I load it in irrlicht its invisible from one side and there aren't collisions when object falls on it.
My model
In Mesh viewer:
from inside:
How could i fix this ?
Last edited by serengeor on Sat Jun 06, 2009 8:33 pm, edited 1 time in total.
It worked for rendering.
but collisions still don;t work.
I'm using irrnewt and irrlicht 1.5 . (btw collisions work on other maps like quake one in examples)
I guess collision doesn't like backfacing triangles either. Try going back into the modeler and flipping the triangles that can not be seen. This way, they should be seen in the program and affect collision.
Lonesome Ducky wrote:Try going back into the modeler and flipping the triangles that can not be seen. This way, they should be seen in the program and affect collision.
I agree with Lonesome Ducky here, because you can see it from inside the cube, but not from the outside, so the faces are showing in the wrong direction...
but it's strange that they seem to be right orientated inside Blender ???
(backface culling is not an option, because you still won't see the faces then, but only the backfaces)
Yep, that's the problem. Select the spherical section in Blender and click "flip normals" in the edit pane. If you turn on the normals you'll find that they're facing the wrong way.
(double sided has *no effect* in Blender export to Irrlicht, if you want a double sided object you have to duplicate it in place and flip the normals of the duplication)
Acki wrote:ahhh, so Blender creates double sided faces (I don't use Blender) !?!?!
in this case it isn't strange then...
It's ok acki even though you aren't qualified to answer this question as well as joshcryer it won't stop you from getting your post count out of this thread.
btw acki when are you going to actually "release" something that isn't stamped and sealed by the acki brand?
don't get me wrong acki I like your devotion you just bug me. and I swear that is a dick he's holding
and I don't care about anything a noob who is proud to post a crappy/simple hello world example into the code snippets forum says...
if that's the best you can do I have only compassion for you !!!
I won't get down to your level (I wonder who is able to get that low)...
try to offend other people, I won't reply to any post from you now...