Oni Central Forum

A forum for the Oni community

You are not logged in.

#51 05/19/14 12:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/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 (05/19/14 13:05)


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

Offline

#52 05/19/14 19:05

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

Re: Playing with Unity3D

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

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


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

Offline

#53 05/19/14 20:05

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

Re: Playing with Unity3D

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

Offline

#54 05/20/14 06:05

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

paradox-01
Member
From: Germany
Registered: 01/14/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 05/21/14 11:05

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/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 (05/21/14 11:05)


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

Offline

#57 09/07/14 16:09

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


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

Offline

#58 09/07/14 20:09

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/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 09/07/14 21:09

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/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 09/07/14 22:09

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/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 (09/07/14 22:09)


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

Offline

#61 09/07/14 22:09

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/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 09/08/14 03:09

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/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 (09/08/14 13:09)


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

Offline

#63 09/08/14 13:09

Jon God
Member
Registered: 01/17/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 09/08/14 13:09

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/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 09/08/14 15:09

Knox
Member
From: (File Missing)
Registered: 08/15/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 09/10/14 07:09

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/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 (09/10/14 07:09)


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

Offline

#67 09/10/14 10:09

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

Re: Playing with Unity3D

That is awesome news!

Offline

#68 10/27/14 02:10

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/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 (10/27/14 05:10)


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

Offline

#69 10/27/14 11:10

Jon God
Member
Registered: 01/17/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 10/28/14 01:10

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/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 10/28/14 15:10

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/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 10/28/14 23:10

Knox
Member
From: (File Missing)
Registered: 08/15/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:12

6opoDuJIo
Member
From: Ukraine
Registered: 03/18/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:12

TOCS
Member
From: Denmark
Registered: 04/04/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 03/01/15 09:03

KaB
Member
Registered: 09/25/11

Re: Playing with Unity3D

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

Offline

Board footer

Powered by FluxBB