Inverted Model!!!

Started by Birdron, May 08, 2014, 12:25:09 AM

Previous topic - Next topic

Birdron

Hi,
I am having a very strange problem. I am using blender to create my level and exporting the model as obj, as I normaly do. When I load the model in jpct, it loads upside down. I am also loading a md2 model, which is also upside down. And most interesting thing is, the camera seems like totaly inverted. I am 100 percent sure my obj is correct, cos I tested it in irrlicht. So, what I am missing here?

Edit: do I hv to setup my scene inverted. I mean '+' will be '-'?

Thanks.

AGP

It's not a matter of being "correct." Each engine or 3d software has its own coordinate system. Jpct's system has NEGATIVE y going up and positive (I think) z going into the screen. What do you mean by "the camera seems inverted?" You can't import cameras from OBJ. By the way, if you're already using Blender, have you tried the Blender scene loader that's posted in the projects board? I'll bet that this solves your problem.

EgonOlsen

Or, to "correct" the orientation do something like this right after loading the model:


obj.rotateX((float)Math.PI);
obj.rotateMesh();
obj.clearRotation();

Birdron

I did not know about blender exporter, I most probably missed it. I will try that. I hv
setup my scene on negative coordinate. I cant try the blender exporter now cos I dnt have net on my pc.

Inverted camera mean, if I place the on y axis(positive), it rotates the camera 180 on z axis.

ank you.

EgonOlsen


Birdron

Yeah thanks, somehow I missed it.

Thank you