Jump to content


Notice about Feature Requests & Bug Reports

The bug reporting and feature request forums (except for the Urgent Help section) are going away soon! Please use Mantis to report any bugs and feature requests. the link to Mantis is:
3d-coat.com/mantis/

Read more about it HERE.

Photo

Voxels SDK


  • Please log in to reply
8 replies to this topic

#1 Andrew Shpagin

Andrew Shpagin

    3DC creator & admin

  • 3D-Coat Developer
  • PipPipPipPipPipPip
  • 6,593 posts

  • Gender:Male

Posted 11 January 2011 - 01:35 PM

This is simple Voxels IO SDK that allows to load, save and perform simple operations over 3b files that contain voxels.
This SDK may be used to make coversion between 3B files and other formats or for batching operations over 3B files.
Multiple objects in scene are supported.

Attached File  VoxelsSDK.zip   2.32MB   420 downloads

This is 3B file specification:

Attached File  3B_file_format_specification-changed1.doc   35KB   369 downloads

There are no restrictions on SDK files usage. It will be good if you will extend it by other useful examples.
  • fuad3d likes this

#2 dulo

dulo

    Neophyte

  • Member
  • Pip
  • 34 posts

Posted 11 January 2011 - 04:08 PM

Thanks a lot. Already looking into it !!

thx dulo
Posted Image
www.woogieworks.at

martin dulovits
technical director

#3 mm alex

mm alex

    Newbie

  • Member
  • 4 posts

Posted 05 September 2011 - 02:09 PM

thanks andrew for this very useful SDK. I've successfully loaded and parsed the test.3b file that is in the SDK example zip; however, when I create my own 3d coat voxel file (for example, just create a voxel sphere, and save), I find that the saved .3b file does not contain the expected 'VOL3' chunk. instead, these are the chunks that I find using the loading code from the SDK:
MESH
-- RNDR
-- NSYZ
-- NBLN
-- MSSK
-- SYPL
-- SSPC
-- LR01
-- MTLS
-- MTEX
-- OBJS
-- RNTS
-- UVST
-- SUBD
-- VMAP
-- VMTP
-- POS0
-- UVS0
-- SAR7

I must be doing something wrong! How do I save a .3b file with a VOL3 chunk that can be read by the SDK?
thanks!
alex

#4 Andrew Shpagin

Andrew Shpagin

    3DC creator & admin

  • 3D-Coat Developer
  • PipPipPipPipPipPip
  • 6,593 posts

  • Gender:Male

Posted 06 September 2011 - 07:32 AM

VOL3 appears only if scene contains voxels. Are you sure that there was voxes?

#5 mm alex

mm alex

    Newbie

  • Member
  • 4 posts

Posted 06 September 2011 - 05:47 PM

VOL3 appears only if scene contains voxels. Are you sure that there was voxes?

yes. unfortunately I can't seem to attach .3b files to the forum, but if you load the .3b file from the voxel sdk (test.3b), then touch it once with eg the voxel grow brush, then save it to a new file, that file doesnt seem to have a 3VOL chunk (ie you get the result above). it loads fine in 3d coat fine tho!
I'm using 3d coat 3.5.19A(DX64).
I must be doing something really dumb...? or did you change the chunk format? is there some group/layer chunk that I need to 'look inside'?

#6 mm alex

mm alex

    Newbie

  • Member
  • 4 posts

Posted 15 September 2011 - 07:02 PM

<bump>
sorry to bump this, still have no success loading voxel files from 3d coat.
I've uploaded an example .3b file here that contains a simple voxel shape made with voxel/sphere and voxel/grow tools:
http://dl.dropbox.co...8/testvoxels.3b

when I process it with the voxelsdk, I get a list of chunks as above, with no VOL3 chnuk.
I wonder what I am doing wrong?
thanks for your help.

#7 Andrew Shpagin

Andrew Shpagin

    3DC creator & admin

  • 3D-Coat Developer
  • PipPipPipPipPipPip
  • 6,593 posts

  • Gender:Male

Posted 15 September 2011 - 09:51 PM

Excuse for late reply. If I am not answering too long it is good idea to drop me letter to support :)

I downloaded both SDK and your file. Opened project, set command line to direct to downloaded file, set breakpoint at line 28, VoxelReader.cpp
The signature VOL3 was found successfully. So all works as expected :)

Possibly you was seeking directly VOL3 in binary. All signatures are in reverse order - there will be 3LOV in binary image.

#8 Andrew Shpagin

Andrew Shpagin

    3DC creator & admin

  • 3D-Coat Developer
  • PipPipPipPipPipPip
  • 6,593 posts

  • Gender:Male

Posted 15 September 2011 - 10:03 PM

I discovered a bit deeper. In newer version of 3b there is chunk of zero length and zero signature after SAR7. It should not be problem for reader, this block should be just skipped as other blocks. SDK reads file successfully. Probably it was source of your problems.


RDNR [8]
ZYSN [0]
NLBN [0]
KSSM [20]
HTPE [88]
LPYS [20]
CPSS [0]
10RL [626]
SLTM [360]
XETM [129]
SJBO [228]
STNR [367]
TSVU [386]
DBUS [0]
PAMV [4]
PTMV [49]
0SOP [0]
0SVU [8]
7RAS [32]
[0] <- this is block that you handled incorrectly
CSMC [61]
LITS [2236]
1PTR [240]
MMYS [8]
1MVU [232]

next one - 3LOV block

#9 mm alex

mm alex

    Newbie

  • Member
  • 4 posts

Posted 16 September 2011 - 08:12 AM

thanks so much Andrew, I knew it must be something stupid! I am using the SDK *almost* unmodified - but I must have broken this! sorry.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users