Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Desrialize "rObj" chunk #31

Open
laijingquan opened this issue Oct 22, 2019 · 4 comments
Open

Can't Desrialize "rObj" chunk #31

laijingquan opened this issue Oct 22, 2019 · 4 comments

Comments

@laijingquan
Copy link

can't not find doc in the readme of MagicaVoxel-file-format-vox-extension.txt

@kchapelier
Copy link

I think that's the rendering settings as discussed here.

the rendering setting are not open yet because they are changing frequently. But you can still read it since it is just in the DICT format.

@laijingquan
Copy link
Author

ok,thank you for your help

@kevzettler
Copy link

Anyone deserialize this yet?

@hugodecasta
Copy link
Contributor

rOBJ is a DICT

It seems to contain information about the rendering configuration

Here is a parsed example of multiple rOBJ in my file (is JSON format)

[
  {
    _type: '_bounce',
    _diffuse: '2',
    _specular: '5',
    _scatter: '5',
    _energy: '3'
  },
  { _type: '_env', _mode: '0' },
  {
    _type: '_inf',
    _i: '0.32',
    _k: '255 255 255',
    _angle: '22 50',
    _area: '0.07',
    _disk: '0'
  },
  { _type: '_uni', _i: '0.44', _k: '255 255 255' },
  { _type: '_ibl', _path: 'HDR_041_Path_Env.hdr', _i: '1', _rot: '0' },
  {
    _type: '_atm',
    _ray_d: '0.4',
    _ray_k: '45 104 255',
    _mie_d: '0.4',
    _mie_k: '255 255 255',
    _mie_g: '0.85',
    _o3_d: '0',
    _o3_k: '105 255 110'
  },
  { _type: '_fog_uni', _d: '0', _k: '255 255 255', _g: '0.6' },
  {
    _type: '_lens',
    _proj: '0',
    _fov: '45',
    _aperture: '0.25',
    _blade_n: '0',
    _blade_r: '0'
  },
  { _type: '_film', _expo: '1', _vig: '0', _aces: '0', _gam: '2.2' },
  {
    _type: '_bloom',
    _mix: '0.5',
    _scale: '0',
    _aspect: '0',
    _threshold: '1'
  },
  { _type: '_ground', _color: '80 80 80', _hor: '0.1' },
  { _type: '_bg', _color: '0 0 0' },
  { _type: '_edge', _color: '0 0 0', _width: '0.01' },
  {
    _type: '_grid',
    _color: '0 0 0',
    _spacing: '1',
    _width: '0.02',
    _display: '0'
  },
  {
    _type: '_setting',
    _ground: '1',
    _grid: '0',
    _edge: '0',
    _bg_c: '0',
    _bg_a: '0',
    _scale: '1 1 1',
    _cell: '1'
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants