Oni Central Forum

A forum for the Oni community

You are not logged in.

#26 05/11/14 02:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

>>How good is the performance in the real unity program?
It's fine until you making a crappy code. And performance there was ok, the character reaction was not ok, it's different things.

>>Does your Unity demo also work on a Mac?
Unity Indie (proper name) can build on mac, pc, linux, web player. But you still need a mac to build for mac. Sad, but true.

Last edited by 6opoDuJIo (05/11/14 02:05)


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#27 05/11/14 18:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

Smoother from now:
[video=480,360]http://youtu.be/T2CiKscQczs[/video]


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#28 05/11/14 22:05

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/07
Website

Re: Playing with Unity3D

Nice to see the improvements, can you add ragdoll physics to the animations?  Or are you restricted to the animations from Oni?

Offline

#29 05/12/14 00:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

If you mean ragdoll for corpses, then - yes, i can. If you mean kinda IK for characters during figting - nope, currently it's too complex for me.


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#30 05/15/14 04:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

I got rid of all doors and markers and there what i got:
[video=480,360]http://youtu.be/BsWRdJMRS7o[/video]


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#31 05/15/14 08:05

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: Playing with Unity3D

"This video contains content from [Merlin] Earache Records Ltd and EMI, one or more of whom have blocked it in your country on copyright grounds."


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#32 05/15/14 10:05

Vadell Gabriel
Member
From: Halifax, Nova Scotia, NS
Registered: 03/19/14

Re: Playing with Unity3D

Iritscen wrote:

"This video contains content from [Merlin] Earache Records Ltd and EMI, one or more of whom have blocked it in your country on copyright grounds."

That's weird, the video works fine for me. (And I live in Canada, where they always block everything on Youtube! tongue)

That aside, this is some dope work you've done man. I can't wait to see what else you'll do.

Offline

#33 05/15/14 13:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

Iritscen wrote:

"This video contains content from [Merlin] Earache Records Ltd and EMI, one or more of whom have blocked it in your country on copyright grounds."

LOL
I thought this is a limit only for arabic countries or something. Fixed, enjoy this stuff.

Last edited by 6opoDuJIo (05/15/14 13:05)


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#34 05/15/14 19:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

Woops:
[video=480,360]http://youtu.be/ogpYDcDnXbc[/video]


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#35 05/15/14 20:05

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/07
Website

Re: Playing with Unity3D

Great work on the Warehouse Walk video.  How were you able to handle stairs and the jumps?

LOL on the Wrong cake video.  I think it is more like wrong coding smile

Offline

#36 05/16/14 02:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

Jumps are different from Oni's jumps, coz i don't know used equations for this. So i just tried to get a similar look.
Stairs - character is sliding along them, hehe.
About the cake - actually, all whole content is flipped, so i tried to flip it back. I failed at animations, but got a lollery video instead.

Last edited by 6opoDuJIo (05/16/14 02:05)


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#37 05/17/14 09:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

It seems like i really need help now. The problem is with doors : how they activating? Where is those door triggers located? How this doors are animating? And what's the purpose of flat door markers? I'm stuck with this stuff.

Last edited by 6opoDuJIo (05/17/14 10:05)


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#38 05/17/14 15:05

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/07
Website

Re: Playing with Unity3D

6opoDuJIo: Did you try my demo: http://edt.oni2.net/Unity3d/oni_airport.html

Unfortunately, I don't remember exactly how I got the doors to work.  But I used iTween Event Editor to animate the doors.  Event Type was Move by time with a setting of 4, amount 3 on the y axis, but the axis would depend on which way the door was facing.  Then I created a Box Collider trigger for each door, used the following script for single doors:

[== Undefined ==]
var target : GameObject;
var eventName1 : String;
var eventName2 : String;
var sound1 : AudioClip;

function OnTriggerEnter () {

iTweenEvent.GetEvent(target, eventName1).Play();
audio.clip = sound1;
audio.Play ();
}

function OnTriggerExit () {

iTweenEvent.GetEvent(target, eventName2).Play();
audio.clip = sound1;
audio.Play ();
}

function Update () {

}

The flat door markers were used by the Oni engine, but not needed for Unity.  In the BINACJBODoor.oni file contains the activation radius and other flags regarding the door.  Each door has an OBAN which is used to animate the door.

Offline

#39 05/17/14 16:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

I meant, "how this stuff is stored in ONI". I want to import as much as possible, without any manual tweaks. About obans - i still dunno how they linked to objects. Tried with id's but failed - always different, with no matches in scene.

Last edited by 6opoDuJIo (05/17/14 16:05)


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#40 05/18/14 02:05

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: Playing with Unity3D

In BINACJBODOOR.xml read the <Class> tags. If the name is "AIRglass01", get the DOORAIRglass.xml file.

In DOORAIRglass.xml read the <Animation> tag. There's the OBAN.

Offline

#41 05/18/14 06:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

It's seems you still don't know what i need. For example -  i got referenced m3gm in ONLV. And i got some DOOR instances in level0_Final.dat. How DOOR instances links to m3gm? Instance names are different.
Edit: Im reading an AKEV geometry. Some triangles got object IDS set. And there is no any triangle with object ID same to any index of DOOR instance.

Last edited by 6opoDuJIo (05/18/14 09:05)


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#42 05/18/14 11:05

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: Playing with Unity3D

"How this doors are animating?"
"About obans - i still dunno how they linked to objects"

I was replying to these questions.



"How DOOR instances links to m3gm?"

DOOR contains itself an M3GM instance.
However, importing a door will create a static door and an animated door.
So you have to be specific about what you want.



Im reading an AKEV geometry. Some triangles got object IDS set. And there is no any triangle with object ID same to any index of DOOR instance.

AFAIK, double doors in AKEV are merged objects.
So, the attempt to animate the individual parts with this data will be fruitless.
Of course you are welcome to try it anyway and find a workaround.

I would stick to the BINACJBODoor.xml file and pursue the links to get all geometry and animations.

Last edited by paradox-01 (05/18/14 11:05)

Offline

#43 05/18/14 12:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

paradox-01 wrote:

AFAIK, double doors in AKEV are merged objects.

Curious, i got two separate objects instead (for double doors).

paradox-01 wrote:

I would stick to the BINACJBODoor.xml file and pursue the links to get all geometry and animations.

Well, not bad, but im reading raw data instead of XML, so i have no idea what about you talking hmm
And how to get to BINA/OBJC/DOOR i have no any idea, im just enumerating descriptors of ONLV when loading level.
Edit : seems like i got it. Sorry, instance file may have kinda subfiles. Damn, it's getting deeped and deeper.

Last edited by 6opoDuJIo (05/18/14 12:05)


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#44 05/18/14 12:05

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: Playing with Unity3D

i'm reading raw data

*.raw and *.dat files? Or are you reading *.oni files?

Offline

#45 05/18/14 12:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

Im reading *.dat files only (still wasn't dealing with true *.raw)

Last edited by 6opoDuJIo (05/18/14 12:05)


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#46 05/18/14 12:05

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: Playing with Unity3D

Reading dat/raw, interesting, but I guess that's too high for me.



If it's any help: those object Ids are two merged values. So you would have to split it again.
If <ObjectId> is 50331739, (In your case it should be already hex.) the converted hex value is (0)3 00 00 5b. With that you get the type 03 = door and id 5b = 91 being the id in the door collection.

Im reading an AKEV geometry. Some triangles got object IDS set. And there is no any triangle with object ID same to any index of DOOR instance.

Last edited by paradox-01 (05/18/14 12:05)

Offline

#47 05/18/14 13:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

Well, it's quite useful stuff seems like. Need to check.
Edit: wrong.
Edit2 : accessing CJBODoor not worked - there is classes stored, with no links to door instances.

Last edited by 6opoDuJIo (05/18/14 16:05)


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#48 05/18/14 19:05

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/07
Website

Re: Playing with Unity3D

Could this help: http://wiki.oni2.net/DOOR

I'm curious, how are you getting Oni's environment, animations and character into Unity?  I had assumed you were extracting the dae and animations from Oni and then importing them into Unity.  That's how I did it with the Airport level.

Offline

#49 05/19/14 02:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/13

Re: Playing with Unity3D

Im using OniSplit as library, so that's how im importing all stuff at runtime with no conversions. And i already tried with OBD:BINA/OBJC/DOOR and failed - as i noticed before, ID's never same to iD's stored in AKEV.

Last edited by 6opoDuJIo (05/19/14 02:05)


Implement Oni with Unity3D engine :
https://github.com/6opoDuJIo/Oni-Round2

Offline

#50 05/19/14 10:05

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/07
Website

Re: Playing with Unity3D

Talked with a knowledgeable person and he said that doors are objects OBOA http://wiki.oni2.net/OBOA and there is reference to doors in ONOA http://wiki.oni2.net/ONOA

He also said that when a door needs to be opened the engine hides the quads that are in AKEV and shows the OBOA object.

Hopefully, that will give you a clue to find what you need.

All I can say it that you are doing some incredible, amazing stuff combining Unity and Oni.

Offline

Board footer

Powered by FluxBB