Alice Community  

Go Back   Alice Community > Alice 3 > How Do I?

Reply
 
Thread Tools Display Modes
Importing objects into Alice 3.0
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default Importing objects into Alice 3.0 - 02-08-2012, 10:14 AM

I haven't really checked into Alice 3.0, but started pondering whether or not the object files would be the same extensions as the .ASE or .A2C? If not what would they be? since I haven't even tried the beta yet, I don't know if they are the same, but since I like to create models for the community when I can, it would be nice to know which format the model should be in?


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Arrow 02-08-2012, 05:16 PM

Alice 2 objects are zip files containing lots of stuff in a hierarchical structure, with main info, binaries, data at the top in several files and then the same, but in subdirectories, for each subpart.

Alice 3 objects seem to just be a zip object (literally with the extension .zip) with a single element.bin file inside.

I'm guessing element.bin is actual model data (polys etc), the only other information it uses is the model name (unlike Alice 2 objects, which store lots, like author name and dimensions), which it can get by splitting off the extension from the filename.

The closest I can find for a match to the element.bin file is the indices.bin and vertices.bin files inside a2c files, but they are two separate files and they exist for every subpart, whereas Alice 3 models do keep track of subparts, but everything seems to be stored inside that one file.

An alternative explanation as to the purpose of element.bin is that it is a complete compiled Java class, stored in some format I am unaware of. The classes for models in Alice (2) use lots of encapsulation, but the basic class that holds all the stuff you need about a model is the Element class, which fits in nicely with element.bin .

That being said, Alice 3 is fresh code and I'm not too sure how the Element class in Alice 2 translates to Alice 3, it might be completely different.

In conclusion, the results are inconclusive. It can be asserted that there is no direct correlation between models in Alice 2 and Alice 3, but ... there might be ... or not.


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬
   
Reply With Quote
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Default 02-08-2012, 05:33 PM

Fast working on a way of hacking in and getting myself a console (a command line style interpreter) in there so I can run custom code. From there I can understand more than I get from the Java decompiler.


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬
   
Reply With Quote
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Default 02-08-2012, 05:52 PM

OK, after quick inspection of the Alice 3 code I have found that it has loaders for these files:
- ASG, Alice Scenegraph, supported by Alice 2 as well, not sure what its for though.
- BIN, binary, I'm not too sure, but its related to the models.
- OBJ, Wavefront, a standard 3D model format, Alice 2 had support for this, but it was rubbish, hence it was hidden within the code.
- VFB, 3DS Max V-Ray Frame Buffer (maybe), again related to models.

They are in an IO package, but I'm not sure if they are all in and out, or just in or out. Either way, harnessing them would be the way to get models in and out.

I also found the code that loads the actual Alice 3 objects, but its long and confusing, so I will look at it another time.

Sorry for the triple post.


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 02-09-2012, 07:14 AM

well with the information you posted, it looks like models formatted in .A2C will not be compatible, however, if it supports .obj, that would be nice since Blender exports as wavefront. Thanks arty


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 02-09-2012, 09:53 AM

Alice 3 has OBJ support? Let's try porting it to 2.2.
   
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.