Oni Central Forum

A forum for the Oni community

You are not logged in.

#126 28/2/17 9:40

Iritscen
Moderator

Re: Creating the Lair - A level tutorial

The lack of sphere is definitely a problem, since I believe all collision is spherical.  I have a cube demo mod package which demonstrates this, since you can see the collision sphere surrounding the cubes when you spawn them.  Anyway, I don't think face size is the cause of the problem; Oni's collision is fairly precise even if it is simplistic, and my spheres have plenty of polys in them, yet they can be pushed perfectly well from any angle.


byproducts are fine, but where's the beef?

Offline

#127 28/2/17 9:47

s10k
Member

Re: Creating the Lair - A level tutorial

I will do a test project level with everything set up so you can easily check what may be the problem.

Offline

#128 28/2/17 10:39

EdT
Moderator

Re: Creating the Lair - A level tutorial

Ok, got the boxing bag working for me, here is the link:
https://www.dropbox.com/s/z4hupl8wo5csx … .zip?raw=1

First thing I discovered was the name of the object in the dae was "SketchUp",  so in the level I had M3GMSketchUp.oni not M3GMboxing_bag.oni.  Correcting this, produced the file M3GMboxing_bag.oni  However, Oni still crashed on me. 

Instead, I used Sketchup 8.11 to export the dae and now I have the movable boxing bag in game.

At the moment I cannot explain why this happens, just that it works for me.

Offline

#129 28/2/17 11:46

s10k
Member

Re: Creating the Lair - A level tutorial

Thanks EdT.

First thing I discovered was the name of the object in the dae was "SketchUp",  so in the level I had M3GMSketchUp.oni not M3GMboxing_bag.oni.  Correcting this, produced the file M3GMboxing_bag.oni  However, Oni still crashed on me.

How did you fix this? You just renamed the file or did you do it in sketchup? If this is the case where do I change it?

Offline

#130 28/2/17 13:06

EdT
Moderator

Re: Creating the Lair - A level tutorial

I opened boxing_bag_obj.dae in a text editor and changed the line <node name="SketchUp"> to <node name="boxing_bag">

FYI, your original model was textured on both sides of the face, make sure you only texture the front face.

Offline

#131 10/3/17 9:43

s10k
Member

Re: Creating the Lair - A level tutorial

I've been very busy and I wasn't able to test this out. Once I can I will tell. Thanks for the help.

Offline

Board footer

Powered by FluxBB