[Import Plugin] ZMS import plugin for Blender3D

This forum is for Graphics and 3D objects discussions.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Forum rules
Client Editing is a delicate subject. osRose and osiRose will not support or use any Client Editing tool or results as a standard. So you are free to experiment, test, and develop there on Client Editing, but at your own risk

[Import Plugin] ZMS import plugin for Blender3D

Postby cssvb94 on Fri Aug 01, 2008 1:47 pm

Hi guys,
This is a blender import plugin scripted by me in Python.

import_bin_zms.zip
Python import script
(2.04 KiB) Downloaded 907 times


Usage:
1. Install blender 3d [Download link: http://www.blender.org/download/get-blender/]
2. Open C:\Program Files\Blender Foundation\Blender\.blender\scripts in your explorer and paste import_bin_zms.py file there
3. Start Blender and go to : [see attached image]
Blender_ImportZMS.jpg
File import select

4. Select the zms file from the file dialog:
* First click the filename then click [Import RoseOnline ZMS] button how is shown on the second attached image.
Blender_ImportZMSDialog.jpg
Import dialog


You should see result similar to this:
Blender_ImportZMS_ImportedCarBody.jpg
Imported car body


Some additional info:
:!: Bones are not imported yet!
:!: Animation is not imported yet!
No Python installation is needed.
The script works with build-in python interpretator in Blender.
I'll try not to use external modules.

[Edit]
Feature plans:
- ZMS export script, first for static then for animated mesh
- Extend the script to import ZMD (bones) and animation (ZMO)

My work is free for use and modify, but make a reference to me as author.

Enjoy :D
Last edited by cssvb94 on Sat Aug 23, 2008 3:23 pm, edited 7 times in total.
aka Spark (ZMSViewer, Blender ZMS plug-in, RoseOnline ZMS/ZMD/ZMO to SMD and vice versa converter)
User avatar
cssvb94
Pomic
Pomic
 
Posts: 109
Joined: Thu May 01, 2008 7:22 am
Location: GMT +1

Re: [Import Plugin] ZMS import plugin for Blender3D

Postby Rescudo on Fri Aug 01, 2008 2:38 pm

Hehe, I always wondered why no one had made any sort of plugin for ZMS for 3DS Max / Blender. Very nice job ;)
SEARCH - it's there for a reason!
User avatar
Rescudo
El Verloon Marshall
El Verloon Marshall
 
Posts: 872
Joined: Tue Mar 11, 2008 7:20 am

Re: [Import Plugin] ZMS import plugin for Blender3D

Postby lmame on Fri Aug 01, 2008 4:43 pm

Woot, nice job :D
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8994
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [Import Plugin] ZMS import plugin for Blender3D

Postby cssvb94 on Fri Aug 01, 2008 8:42 pm

Thank you =)
aka Spark (ZMSViewer, Blender ZMS plug-in, RoseOnline ZMS/ZMD/ZMO to SMD and vice versa converter)
User avatar
cssvb94
Pomic
Pomic
 
Posts: 109
Joined: Thu May 01, 2008 7:22 am
Location: GMT +1

Re: [Import Plugin] ZMS import plugin for Blender3D

Postby Sethanye on Wed Aug 06, 2008 12:19 pm

there is one for max also but it private so idk if its around the net or not
~ Learning Flash ~ Anyone Know Any Good Tutorial DVDs? ~
Image
"Come Into My Dream, Let Me Show You Where I've Been.
Its You And Me I've Seen, Let Me Tell You What I Mean."
User avatar
Sethanye
Neko Chan
Neko Chan
 
Posts: 2600
Joined: Fri Jan 18, 2008 11:23 am
Location: ~ Resident Graphics Artist ~

Re: [Import Plugin] ZMS import plugin for Blender3D

Postby DragonXX on Thu Feb 26, 2009 4:32 am

I made a little mod in script to load bones informations from ZSC (no ZMD).

  1. # define empty lists
  2. bones = []
  3. vertices = []
  4. uvs = []
  5. normals = []
  6. faces = []


  1.     for i in range(bBoneCount):
  2.         bBoneID = readVal(fBoneID)[0]
  3.         bones.append(bBoneID)
  4.  


  1.     bnum = len(bones)
  2.     vnum = len(vertices)
  3.     nnum = len(normals)
  4.     unum = len(uvs)
  5.     fnum = len(faces)
  6.  
  7.     print "Statistics:"
  8.     print "Bones:\t", bnum
  9.     print "Vertices:\t",  vnum
  10.     print "Vertex Normals:\t", nnum
  11.     print "UVs:\t\t", unum
  12.     print "Faces:\t\t", fnum
  13.  


Well, now ill try to find if this information is useable :P
DragonXX
Rackie
Rackie
 
Posts: 155
Joined: Tue Aug 07, 2007 11:10 pm


Return to 3D discussions

Who is online

Users browsing this forum: No registered users and 1 guest