Oni Central Forum

A forum for the Oni community

You are not logged in.

#26 11/5/14 2:53

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 (11/5/14 2:54)


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

Offline

#27 11/5/14 18:17

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 11/5/14 22:55

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/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 12/5/14 0:05

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 15/5/14 4:14

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 15/5/14 8:27

Iritscen
Moderator
From: NC, USA
Registered: 22/10/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."


byproducts are fine, but where's the beef?

Offline

#32 15/5/14 10:05

Vadell Gabriel
Member
From: Halifax, Nova Scotia, NS
Registered: 19/3/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 15/5/14 13:25

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 (15/5/14 13:42)


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

Offline

#34 15/5/14 19:16

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 15/5/14 20:22

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/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 16/5/14 2:26

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 (16/5/14 2:27)


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

Offline

#37 17/5/14 9:59

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 (17/5/14 10:00)


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

Offline

#38 17/5/14 15:12

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/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 17/5/14 16:21

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 (17/5/14 16:25)


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

Offline

#40 18/5/14 2:07

paradox-01
Member
From: Germany
Registered: 14/1/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 18/5/14 6:09

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 (18/5/14 9:04)


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

Offline

#42 18/5/14 11:50

paradox-01
Member
From: Germany
Registered: 14/1/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 (18/5/14 11:54)

Offline

#43 18/5/14 12:07

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 (18/5/14 12:19)


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

Offline

#44 18/5/14 12:15

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

Re: Playing with Unity3D

i'm reading raw data

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

Offline

#45 18/5/14 12:20

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

Re: Playing with Unity3D

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

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


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

Offline

#46 18/5/14 12:41

paradox-01
Member
From: Germany
Registered: 14/1/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 (18/5/14 12:41)

Offline

#47 18/5/14 13:09

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 (18/5/14 16:03)


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

Offline

#48 18/5/14 19:40

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/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 19/5/14 2:13

6opoDuJIo
Member
From: Ukraine
Registered: 18/3/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 (19/5/14 2:16)


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

Offline

#50 19/5/14 10:02

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/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