Unreales / UDK Español

como exportar de blender a udk!!??

« Older   Newer »
  Share  
halocreed
icon7  view post Posted on 1/3/2012, 00:19




ya llevo todo el dia intentando de ver como hacer para exportar de blender a udk en formato .ase !! :angry: ..... y no encuentro nada que me haya servido ...... e investigado y la unica fomra es descargar un script y ponerselo al blender ... y veo que el script es del lenguaje python (osea del lenguaje de blender) ... y cuando lo pongo donde van esos scripts ... abro el blender , le doy a exportar..... Y SIGO SIN VER EL FORMATO .ASE!!... y nisiquiera aparece donde se activan esas cosas de importar y exportar!..porfavor aydua TTOTT!!
 
Top
zeebhaax1
view post Posted on 1/3/2012, 00:55




hay un pluglin para blender, te daria el link pero lo perdi DDD: bueno busca en google asi lo encontre yo creo que esta en la pagina de blender .... el plugin sirve para exportar a fbx que es lo que soporta udk ademas de a otros formatos

mira abre el bloc de notas y colocale esto:
SPOILER (click to view)
def parse_fbx(path, fbx_data):
DEBUG = False

f = open(path, 'rU')
lines = f.readlines()

# remove comments and \n
lines = [l[:-1].rstrip() for l in lines if not l.lstrip().startswith(';')]

# remove whitespace
lines = [l for l in lines if l]

# remove multiline float lists
def unmultiline(i):
lines[i-1] = lines[i-1] + lines.pop(i).lstrip()

# Multiline floats, used for verts and matricies, this is harderto read so detect and make into 1 line.
i = 0
while i < len(lines):
l = lines[i].strip()
if l.startswith(','):
unmultiline(i)
i-=1
try:
float(l.split(',', 1)[0])
unmultiline(i)
i-=1
except:
pass

i += 1

CONTAINER = [None]
def isfloat(val):
try:
CONTAINER[0] = float(val)
return True
except:
return False

def isfloatlist(val):
try:
CONTAINER[0] = tuple([float(v) for v in val.split(',')])
return True
except:
return False


def read_fbx(i, ls):
if DEBUG:
print "LINE:", lines[i]

tag, val = lines[i].split(':', 1)
tag = tag.lstrip()
val = val.strip()


if val == '':
ls.append((tag, None, None))
if val.endswith('{'):
name = val[:-1].strip() # remove the trailing {
if name == '': name = None

sub_ls = []
ls.append((tag, name, sub_ls))

i+=1
while lines[i].strip() != '}':
i = read_fbx(i, sub_ls)

elif val.startswith('"') and val.endswith('"'):
ls.append((tag, None, val[1:-1])) # remove quotes
elif isfloat(val):
ls.append((tag, None, CONTAINER[0]))
elif isfloatlist(val):
ls.append((tag, None, CONTAINER[0]))


#name = .lstrip()[0]
if DEBUG:
print 'TAG:', tag
print 'VAL:', val
return i+1

i=0
while i < len(lines):
i = read_fbx(i, fbx_data)



# Blender code starts here:
import bpy
def import_fbx(path):
fbx_data = []
parse_fbx(path, fbx_data)
# Now lets get in the mesh data for fun.

sce = bpy.data.scenes.active
sce.objects.selected = []

for tag1, name1, value1 in fbx_data:
if tag1 == 'Objects':
for tag2, name2, value2 in value1:
if tag2 == 'Model':
print tag2, name2
# we dont parse this part properly
# the name2 can be somtrhing like
# Model "Model::kimiko", "Mesh"
if name2.endswith(' "Mesh"'):
verts = None
faces = None
# We have a mesh
for tag3, name3, value3 in value2:
# print 'FOO ', tag3, name3
if tag3 == 'Vertices':
#print value3
verts = value3
elif tag3 == 'PolygonVertexIndex':
#print value3
faces = value3

# convert odd fbx verts and faces to a blender mesh.
if verts and faces:
me = bpy.data.meshes.new()
# get a list of floats as triples
me.verts.extend( [verts[i-3:i] for i in xrange(3, len(verts)+3, 3)] )

# get weirdo face indicies
face = []
blen_faces = [face]
for f in faces:
if f<0:
face.append(int(-f)-1)
face = []
blen_faces.append(face)
else:
face.append(int(f))

if not blen_faces[-1]:
del blen_faces[-1]

me.faces.extend(blen_faces)

sce.objects.new(me)

#import_fbx('/test.fbx')

import Blender
if __name__ == '__main__':
Blender.Window.FileSelector(import_fbx, 'ASCII FBX 6.1', '*.fbx')


el archivo guardalo asi fbx_import.py ** importante que quede con extencion || py || ** y lo guardas en la carpeta plugins de el blender ;)
 
Top
Irontauren
view post Posted on 1/3/2012, 01:53




Pues en las versiones recientes del blender, ya se puede exporta a fbx solo le das exportar, y exportas el objeto en ".fbx" y ya.
 
Top
srak
view post Posted on 2/3/2012, 21:10




pues hay un addon para exportar skeleton mesh/ data animaton formato ( psk/psa) este tambien sirve para el unreal no ?, solo activalo en file-user preferences-addons , espero te sirva de algo,saludos
 
Top
subdir
view post Posted on 22/11/2012, 16:44




blender aun tiene una versión vieja de fbx
 
Top
view post Posted on 22/11/2012, 17:46
Avatar

Member

Group:
Member
Posts:
523
Location:
uruguayo hasta los dientes!!!

Status:


sip, la 6.1 y udk tiene la 7.2
 
Top
dkebeoz
view post Posted on 1/4/2013, 14:51




Aca te dejo tutorial



Video


:B): fue algo que me tenia atascado hace un buen tiempo pero ya lo supere jejejeje suerte con eso.
 
Top
derini
view post Posted on 14/5/2017, 11:26




a mi me sale con la malla del personaje rotada como puedo ponerla derecha en udk?
 
Top
7 replies since 1/3/2012, 00:19   1137 views
  Share