Author Topic: Why don't names don't get serialized?  (Read 1872 times)

Offline laborg

  • byte
  • *
  • Posts: 2
    • View Profile
Why don't names don't get serialized?
« on: April 25, 2012, 02:44:21 pm »
Hi!

First off: Great library and impressive support!

Here's my question:
In the case of serializing an Object3D-Array to use it on android the names (originally coming from a .obj file created in blender) aren't serialized to the ser-file. Why?
(Background: I want to access 3d-Objects in Android by their name - if that's not possible I would be thankful for a hint on how to solve the problem of having a deterministic assignment between the identity of objects in blender and the android-world. Searched the forums for "naming" and "ordering" but found nothing.)

Thanks in advance!
Laborg

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Why don't names don't get serialized?
« Reply #1 on: April 25, 2012, 04:18:26 pm »
I have same problem in 3ds format... from this reason I can not use serialized files

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Why don't names don't get serialized?
« Reply #2 on: April 25, 2012, 10:04:48 pm »
I guess i simply forgot to add this. I'll look at it the next week, when i'm back home.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Why don't names don't get serialized?
« Reply #4 on: May 05, 2012, 12:53:07 am »
thanks for update, now it is ok :)
edit: I have problem with rotation pivot. I loaded 3ds file and used rotation pivot from it, serialized with reduce, but rotation pivot is bad in my android game.
« Last Edit: May 05, 2012, 01:39:58 am by Thomas. »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Why don't names don't get serialized?
« Reply #5 on: May 06, 2012, 12:54:32 am »
I don't think that the rotation pivot is being saved. The basic idea of serialized objects was to speed up the loading process. It wasn't meant to be used for serializing the actual Object3D as a whole. But i guess if the loader loads this pivot, it should be serialized as well...i'll look into it in the next few days...

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Why don't names don't get serialized?
« Reply #6 on: May 06, 2012, 01:05:07 pm »
Ok, thanks... and what mean compile of object?

Offline laborg

  • byte
  • *
  • Posts: 2
    • View Profile
Re: Why don't names don't get serialized?
« Reply #7 on: May 07, 2012, 09:35:02 am »
Thx, worked!

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Why don't names don't get serialized?
« Reply #8 on: May 07, 2012, 10:00:48 am »
...and what mean compile of object?
It's the process of converting, splitting, merging and optimizing the an Object3D for being rendered on the GPU most efficiently. But i don't understand what this question has to do with serialized objects!?

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Why don't names don't get serialized?
« Reply #9 on: May 07, 2012, 10:09:35 am »
This takes about 25% of loading process time, is possible to compile objects one time and save it to serialize file?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Why don't names don't get serialized?
« Reply #10 on: May 07, 2012, 10:13:32 am »
No. It has to happen on the target device.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Why don't names don't get serialized?
« Reply #11 on: May 16, 2012, 10:07:16 pm »
I've updated the jars with a version that saves/loads the rotation pivots too.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Why don't names don't get serialized?
« Reply #12 on: May 17, 2012, 02:46:42 pm »
it's working, thanks :)