Oni Central Forum

A forum for the Oni community

You are not logged in.

#51 19/5/14 12:15

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

Re: Playing with Unity3D

EdT wrote:

hides the quads that are in AKEV and shows the OBOA object.

Ouh, here it is - that's... odd, very odd (and awkward). But this is still an yet one piece solved in this puzzle.
Seems like i need to read IDXA to detect doors and operate with them, daym!
Edit: that's right, ONOA links to doors directly through IDXA.

Last edited by 6opoDuJIo (19/5/14 13:40)


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

Offline

#52 19/5/14 19:45

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

Re: Playing with Unity3D

Well, 2000 lines in one file - time to refactor and split this stuff is near.

Last edited by 6opoDuJIo (19/5/14 19:46)


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

Offline

#53 19/5/14 20:58

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

Re: Playing with Unity3D

Does this mean you were able to make progress with the doors? smile

Offline

#54 20/5/14 6:09

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

Re: Playing with Unity3D

Well... Seems like with ONOA i can detect static objects needs to be cut off. After that, through OBOA, i can place animated objects ( doors, cranes, stuffs). But i still see no links between. But as i guess, i may deal with it without links - seems, needed just cut and replace.


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

Offline

#55 20/5/14 22:31

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

Re: Playing with Unity3D

Why do you need static doors? Doesn't Unity has better physics than ONI? Isn't it possible to just use one mesh for the animated and non-animated state?

Offline

#56 21/5/14 11:42

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

Re: Playing with Unity3D

Mostly, i don't need static doors. Mesh collider can be animated as object, not as mesh (i mean, Unity doesn't support skinned colliders), so it's ok. This "remove static and place animated" stuff just surprised me for a lot, i didn't expect that.

Last edited by 6opoDuJIo (21/5/14 11:43)


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

Offline

#57 7/9/14 16:17

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

Re: Playing with Unity3D

So. After some break, tried to handle OBOA's again. And that's the result of applying initial transform matrix to OBOA object:
iRZmrt.jpg
(green's are fine, red'z are kinda retarded)
Red's scales are seems fine, positions too. But rotations looks pretty improper and i'm kinda desperate to determine what's wrong.
I checked doc's and it seems kinda odd : it tells that affine transform matrix build in this way:

[ a11, a12, a13, 0 ]
[ a21, a22, a23, 0 ]
[ a31, a32, a33, 0 ]
[ a41, a42, a43, 1 ]

Where "a" is OBAN initial transform matrix.
Is this right?
If it is, what's could go wrong then?

Last edited by 6opoDuJIo (7/9/14 16:19)


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

Offline

#58 7/9/14 20:09

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

Re: Playing with Unity3D

I think this page will give more information about what you are asking: http://wiki.oni2.net/XML:OBAN

Offline

#59 7/9/14 21:26

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

Re: Playing with Unity3D

Nope, it isn't, because affine transform matrix is a 4x4 matrix, not 3x4, as described there.
And curious thing - didn't detected flag "ZAxisUp" at any door OBAN.


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

Offline

#60 7/9/14 22:28

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

Re: Playing with Unity3D

professor-farnsworth.jpg
Rotations are fixed!
TgtkP4C9l7o.jpg

The bad news that normals are still bad as hell :

AzhZyLjNMis.jpg

So i can't light OBAN's nice and fancy.
p.s. I guess, Farnsworth should be at my avatar.

Last edited by 6opoDuJIo (7/9/14 22:31)


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

Offline

#61 7/9/14 22:47

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

Re: Playing with Unity3D

I'm glad you figured it out and that you are continuing with your Oni/Unity project.

Offline

#62 8/9/14 3:48

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

Re: Playing with Unity3D

Lighting for OBOA's fixed!
KFI6hO_9QJw.jpg
Aslike as doors positions and orientations. The next goal is - how the hell move doors? OBOA's contains no animations for doors.
As i guess, i should interact with triggers first?

Last edited by 6opoDuJIo (8/9/14 13:09)


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

Offline

#63 8/9/14 13:16

Jon God
Member
Registered: 17/1/07

Re: Playing with Unity3D

Unity is just too much fun. Which reminds me, I should get back to making my unity game...


Jon-God.jpg
PSN: Jon_God
XBL: Ernie The Bear

Offline

#64 8/9/14 13:22

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

Re: Playing with Unity3D

Seems like i must GIT this stuff for some cases.


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

Offline

#65 8/9/14 15:08

Knox
Member
From: (File Missing)
Registered: 15/8/11

Re: Playing with Unity3D

Words cannot describe how kick ass this looks.


"New car, caviar, four star daydream, think I'll buy me a football team."
Oni fan since 2001.

Offline

#66 10/9/14 7:13

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

Re: Playing with Unity3D

professor-farnsworth.jpg

At last, doors are basically work!

[video]https://www.youtube.com/watch?v=rsIzEYBwxAQ[/video]
The next goal is much less funny : i need to refactor current AKEV loader.

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


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

Offline

#67 10/9/14 10:53

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

Re: Playing with Unity3D

That is awesome news!

Offline

#68 27/10/14 2:59

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

Re: Playing with Unity3D

http://theloungeisback.files.wordpress.com/2013/07/professor-farnsworth.jpg
New ONLV loader basically done - geometry and textures are ok. Doors and other animated stuffs works fine too because of xml-based nature. Also, have stuffs at Github from now, if anyone curious:
https://github.com/6opoDuJIo/Oni-Round2
The next goals are :
- new xml-based character loader
- lighting calculation
- implementing more animations for Konoko

Last edited by 6opoDuJIo (27/10/14 5:30)


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

Offline

#69 27/10/14 11:44

Jon God
Member
Registered: 17/1/07

Re: Playing with Unity3D

That's awesome, I'll have to check it out at some point. Bravo!


Jon-God.jpg
PSN: Jon_God
XBL: Ernie The Bear

Offline

#70 28/10/14 1:18

Gumby
Member
From: Seattle, WA, USA
Registered: 30/8/07

Re: Playing with Unity3D

Good work!


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#71 28/10/14 15:51

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

Re: Playing with Unity3D

professor-farnsworth.jpg
Randomly, i have figured out how to fix content flip, which were present in geometry data, obtained using OniSplit. Now it's ok:

http://cs7009.vk.me/c619431/v619431477/2331b/XWwOHC1xr_o.jpg
ZArlyzrCm-U.jpg
BV2k8L1NObM.jpg


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

Offline

#72 28/10/14 23:16

Knox
Member
From: (File Missing)
Registered: 15/8/11

Re: Playing with Unity3D

I'm liking how this is going.


"New car, caviar, four star daydream, think I'll buy me a football team."
Oni fan since 2001.

Offline

#73 12/12/14 13:24

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

Re: Playing with Unity3D

Some news:
- Bad news : xml-based loader is kinda slow (up to 120 seconds to parse ONLV), so i decided to use binary data. This mean, i need to re-write all unity3d content builders again (3rd time).
- Good news : i used OUP  structure definitions to build binary data loaders, so they are already ready and they are bloody fast.


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

Offline

#74 12/12/14 17:00

TOCS
Member
From: Denmark
Registered: 4/4/07

Re: Playing with Unity3D

It's so nice that you're still working on this! It'd be a dream come true if Oni could be rebuild on Unity as it would allow a ton of other new mods and features!

Offline

#75 1/3/15 9:36

KaB
Member
Registered: 25/9/11

Re: Playing with Unity3D

Someone was able to export the character(!) animation in unity3d?

Offline

Board footer

Powered by FluxBB