Sign in to follow this  
Followers 0
kao_chen

How to import ".dae" files and test them in 0ad?

23 posts in this topic

Hello!

I don't know if I have got skills to do that, but I wanted to build a little mesh with textures and try to import it into the editor.

So I have build a water well with blender and I exported it into a collada file:

1330878152.png

http://ubuntuone.com...KZk6L9HovYbqLMd

But I didn't found how to past it in the "pyrogenesis -editor", I try to copy directly the files into the public.zip but without success ;)

I wondered how can I do such things in order to test my mesh and see if the all goes well, particulary the scale.

I run 0ad, blender and Gimp on a Ubuntu 64bits platform.

I found the editor here:

/usr/games/pyrogenesis -editor

Regards

Kao

Share this post


Link to post
Share on other sites

You'll have to extract the public.zip file's contents into the 'public' directory.

Then what you could do is use one of the existing Wells as a guide. Find this actor file:

\binaries\data\mods\public\art\actors\props\special\eyecandy\well_1_a.xml

Create a duplicate of it in the same folder and name it 'well_2_a.xml'

Within that file you'll see this code:


<variant frequency="100" name="Base">
<mesh>props/wrld_well_a.dae</mesh>
<props>
<prop actor="props/special/eyecandy/well_woodbit.xml" attachpoint="woodbit"/>
</props>
<texture>props/wrld_well_a_1.dds</texture>
</variant>

In the code are the collada and texture files that the existing Well uses. Change those references to point to your files, which should be placed into -

model: binaries\data\mods\public\art\meshes\props

texture: binaries\data\mods\public\art\textures\skins\props

The texture file can be either dds or png format, and the model a 'clean' collada file (see more info here)

You can remove the following lines from the actor file:


<props>
<prop actor="props/special/eyecandy/well_woodbit.xml" attachpoint="woodbit"/>
</props>

This references another model which your Water Well won't need.

In Atlas, you will then find your Well by putting 'well' into the filter and choosing the 'Actors: (all)' option:

actorsearch.jpg

Share this post


Link to post
Share on other sites

Thank, this is working perfectly.

I need to improve my mesh and texture now.

Regards

Kao

Share this post


Link to post
Share on other sites

I built another object in order to practice:

1331458865.jpg

356 for the bridge and 101 for the well

It's not perfect, but now I think I am ready to help the project. I could begin with a smaller mesh.

I'll go fill out the form now to see if I can help.

Regards

Kao

Share this post


Link to post
Share on other sites

Hi

I have "tinny" problem with getting my models ingame: im using Wings for modeling and max 2012 for mapping. Now: exporting .dae to 0.AD from wings3d work fine, but from max not (unable to load mesh). I followed wiki-tut but that didn't helped. What setting's i need to have in Max2012 .dae export?

edit for typos

Edited by Adij

Share this post


Link to post
Share on other sites

yes, i readed and followed the artdoc without luck :/

Share this post


Link to post
Share on other sites

Hmm, could you share a little more on exactly what the error is that your seeing in the game? Like, what is the message, and what your trying to do? Sharing the .dae file would be helpful too in order to help us troubleshoot.

Share this post


Link to post
Share on other sites

ahh sorry for not giving any response :throw-up:

Also got more problems with max - the new version's dont have "PS helper's" and "Prop Point" and looks that standard dummy's are not supported by 0ad... so no way to attach props to model's. I just used other software to export models to 0 A.D:

pyrogenesis201205112041.jpg

pyrogenesis201205112043.jpg

pyrogenesis201205112041.jpg

Edited by Adij
1 person likes this

Share this post


Link to post
Share on other sites

Dummy helpers work. You have to link them to the model and select both the model and the dummy helper when you "Export Selected."

Share this post


Link to post
Share on other sites

sorry if, revive this post, but i want to add a prop, i was export to collada, then i was edit the xml actor file, but didn't work.

Share this post


Link to post
Share on other sites

Can you give a step-by-step procedure of what you did, and what did or didn't work?

F.e. can you load your prop model as a standalone actor in the game (without binding it to a prop point)?

Share this post


Link to post
Share on other sites

Only I try to change the shape of Hele_hood.dae and save! then I open the file as text but I can find diffuse. So I'm not sure I'm doing.

Share this post


Link to post
Share on other sites

You can't find the model? Are you sure the scale is right? Sometimes it gets converted from meters to centimeters (or the other way around), and appears 100x too small.

Share this post


Link to post
Share on other sites

I need know that, haven't the proportion, or coordinates and other issues, I fear the wiki data base don't be updated.

Share this post


Link to post
Share on other sites

The wiki is quite updated. And I fear that, without dae files and actor files, we can't help you.

Share this post


Link to post
Share on other sites

@Lion. This plugin is useless since all models you need are in DAE format in the SVN repository.

To make the prop, you have to parent the "empty" object to the main model. and name it prop-something.

Share this post


Link to post
Share on other sites

@Lion. This plugin is useless since all models you need are in DAE format in the SVN repository.

To make the prop, you have to parent the "empty" object to the main model. and name it prop-something.

Unless it's propped to the "root". That's why I can't say anything about it without seeing the DAE and the actor files.

2 people like this

Share this post


Link to post
Share on other sites

I uploaded in Props ,dae in Aristeia. sorry im busy learning about Uv mapping... :) thanks for the care.

Share this post


Link to post
Share on other sites

I fling the problem was in need new texture for the new model.

Share this post


Link to post
Share on other sites

Where to put the files to play it?

Depends on the file. If you are more specific on what you need, I will help you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0