• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 475
  • Last Modified:

getting 3D images

Hi,
I am wanting to use away3D with actionscript/flash with more than a cube /sphere :)

I am having real problems getting freeware 3D models. I tried using Blender to import/export 3D files from obj in dae formats withour success.

I found some 3D shapes  at reiners tilesets but they were obj files which wont load in away3d.
What do people do to get 3D images and how do you convert them for away3D. Is it common to convert everything to AS classes?

I have spent hours on on and so far i one 3D image of a  cow!!
0
jagguy
Asked:
jagguy
  • 7
  • 5
1 Solution
 
tomaugerdotcomCommented:
I guess this is more like 2 or 3 questions, so I'll just deal with the one in the title - getting 3D images.

Unfortunately, quality "free" 3D models is a tough call. You can, of course, type in "3d obj models free" into Google and a busload of stuff comes up - but beware of popups and all that. I guess it really depends what genre of models you're looking for. If all you want to do is test Away3D's properties, then go ahead and use that cow! However, if you're looking to create a game of some sort, well, it's going to be tough getting all of those for free.

Here's a blog post that might get you started in your quest for free 3D models:
http://www.digitalimagemagazine.com/blog/featured/25-free-3d-model-sites/

If you're not up to doing the modeling yourself in Blender, 3DS Max or other 3D modeling and animation software, then you'll need to turn to stock 3d vendors - at least there you will get a decent selection, you will have some control over poly counts (you want to keep them VERY LOW for Away3D - at least until Molehill is released).

TurboSquid,com, 3D Cafe, stock-3d.com, renderosity.com all come to mind, though their offerings are quite varied from each other. You can expect to pay from $10 to $250 depending on the complexity of the models and the texture files that come with. I would think you would be on the lower end of the dollars scale just because you need low poly models, but that's not always a guarantee.
0
 
tomaugerdotcomCommented:
As for loading the .OBJ files into Away3D, just use the Obj class and its load() method:

loader = Obj.load( "my3DObjFile.obj", { scaling:1, bothsides:true } );
 loader.addOnSuccess( ojbectLoadedFunction );

Open in new window

0
 
tomaugerdotcomCommented:
Finally, no, you're not required to load classes. The disadvantage of using classes is that (most) programmers will tend to compile them into their main application, causing the application to be quite bulky (3D class files can be huge, relatively speaking). The advantage of using Obj.load() or Collada.load() (as you have no doubt figured out with that cow tutorial!!) is that it loads asynchronously. With a little creativity, you can create a preloader that loads in all your models in the background, allowing the user to interact with the application / game in a limited fashion until the models you need are ready.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jagguyAuthor Commented:
I have worked out how to convert obj to classes as obj just would not load no matter what.

I might close this thread unless someone wants to have a stab at loading the obj files I have? I had to convert them to AS3 classes for it to load after i edited the mtl original files.

Obj isnt simple it seems.
0
 
jagguyAuthor Commented:
I should have asked to questions my mistake.

i dont get an error but just nothing.


loader = Obj.load( "my3DObjFile.obj", { scaling:1, bothsides:true } );
 loader.addOnSuccess( ojbectLoadedFunction );
0
 
tomaugerdotcomCommented:
I think my code might be old - it looks like addOnSuccess() is not firing, and to be honest, I'm not seeing it in the Away3D documentation. Assuming you're using the latest version, here are the full docs, for your reference:

http://away3d.com/livedocs/3.6.0_lib/index.html

Okay, it looks like the best event to use would be the parseSuccess event.

import away3d.events.ParserEvent;

loader.addEventListener(ParserEvent.PARSE_SUCCESS, objectLoadedFunction);

Open in new window


And then, inside your objectLoadedfunction, you can access your 3D object using the result property of your event.

T
0
 
tomaugerdotcomCommented:
If that doesn't work, upload your objs.
0
 
jagguyAuthor Commented:
I couldnt upload these obj files (here restrictions)

bottom left corner house i couldnt load

http://reinerstileset.4players.de/3DbuildingsE.html
0
 
tomaugerdotcomCommented:
Sorry jagguy - I have been experiencing some hardware issues that have prevented me from testing your solution. These issues are now resolved. I will try to have an answer for you shortly. Thanks for your patience.

Tom
0
 
jagguyAuthor Commented:
 i dont need the question anymore
0
 
tomaugerdotcomCommented:
Accept your last post, which will start the close process and refund your points. Sorry I couldn't be more helpful.
0
 
jagguyAuthor Commented:
last comment
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now