Crystal Space
Welcome, Guest. Please login or register.
August 20, 2014, 06:18:02 am

Login with username, password and session length
Search:     Advanced search
9008 Posts in 2046 Topics by 8327 Members
Latest Member: Jacquelynsims
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  General Crystal Space Discussion
| | |-+  blender2cald3d for blender 2.41 which seems work fine
« previous next »
Pages: [1] Print
Author Topic: blender2cald3d for blender 2.41 which seems work fine  (Read 1882 times)
kiper
Newbie
*
Posts: 17


View Profile Email
« on: June 03, 2006, 12:16:44 pm »

Hi!

I found this script in blender forums to export from blender 2.41 to cal3d (export for soya supported).

the file: http://www.geocities.com/inkoia/project/blender2cal3d_4.zip
the code: http://www.geocities.com/inkoia/project/blender2cal3d_4.py.txt

In the tries I've given it seems to work, but I think in the same forum someone posted some problem (sorry, I don't remember the forum, I'll try to find), so let's test it.
« Last Edit: June 03, 2006, 05:08:54 pm by kiper » Logged

1800MHz Intel Centrino
1GB RAM
128 ATI Mobility Radeon X700
Win XP Pro SP2
kiper
Newbie
*
Posts: 17


View Profile Email
« Reply #1 on: June 04, 2006, 10:41:11 am »

personally I had only one problem with the script: exporting the UV textures, I got "outputuv variable not found" error.
I haven't check the code to understand it, but I have done a quick and dirty modification removing this part of the code, and works with me!! =P

If someone trying gets the same error, I changed this in the script:

original:
Quote
...                       
if outputuv: vertex.maps.append(Map(*uv))
   ...           
if outputuv: vertex.maps.append(Map(*uv))
...

changed:
Quote
...                       
#if outputuv:
 vertex.maps.append(Map(*uv))
   ...           
#if outputuv:
 vertex.maps.append(Map(*uv))
...


Anyway, I had to flip the textures and correct the mesh with hardtransform to see it well in the game, but the textures appear mirrored in Y axis... Maybe there is some option to mirror it, here is the config file I'm using:

Quote
<library>
  <textures>
    <texture name="skin">
      <file>ant/ant.png</file>
    </texture>
</textures>
<meshfact name="ant">
<plugin>crystalspace.mesh.loader.factory.sprite.cal3d</plugin>
<params>
   <options flip_textures="yes" />
   <scale value="0.075" />
   <path dir="ant/" />
   <mesh
      file="antant.cmf"
      name="body"
      material="skin" />
   <skeleton file="antcal3d.csf" />
   <animation
      file="antwalk.caf"
      type="travel"
      name="Walk"
      base_vel="2"
      min_vel="0"
      max_vel="4" />
     <hardtransform
          rot_axis_x="0"
          rot_axis_y="1"
          rot_axis_z="0"
          rot_angle="180" />
     <hardtransform
          rot_axis_x="1"
          rot_axis_y="0"
          rot_axis_z="0"
          rot_angle="-90" />
</params>
</meshfact>
</library>
Logged

1800MHz Intel Centrino
1GB RAM
128 ATI Mobility Radeon X700
Win XP Pro SP2
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.229 seconds with 15 queries.