Importador de objetos LightWave con texturas y coordenadas UV

Caronte - 27/08/2005 14:59
En versión alfa, pero ya usable:
[url]http://uaraus, altervista.org/index.php?filename=en/content/categories/blender/lwo_importer.html[/url].
viriathus - 27/08/2005 15:50
No he conseguido hacerlo funcionar. Me da error al importar el módulo mod_vector de Python. Los demás scripts me funcionan bien.

Posdata: tengo una versión cvs de Blender compilada con Python 2.4.
Caronte - 27/08/2005 15:53

No he conseguido hacerlo funcionar. Me da error al importar el módulo mod_vector de Python. Los demás scripts me funcionan bien.

Posdata: tengo una versión cvs de Blender compilada con Python 2.4.

requirements.

The script has ben developed with Blender 2.37a and Python 2.3.4.
Leander - 27/08/2005 18:06
Nunca uso la 2.4. Precisamente por motivos como ese.
viriathus - 27/08/2005 19:20
Nada, ni usando la versión oficial de [url]www.blender.org[/url]. He probado con dos ficheros bajados de [url]http://scifi3d, theforce.net[/url] y me da este error al importar el.lwo.

#===================================================================#.

Processing object: no name.
#===================================================================#.

Tracebak (most recent call last):
File , line 1544, in fs_callback.

File , line 178, in read.

File , line 329, in read_lwo2.

File , line 1061, in recalc_faces.

File , line 983, in reduce_face.

Nameerror: global name vcross is not defined.

Caronte - 27/08/2005 20:12
Pero. ¿has instalado el Python 2.3 y has cambiado la variable de entorno?
viriathus - 27/08/2005 20:33

Pero. ¿has instalado el Python 2.3 y has cambiado la variable de entorno?

Tengo tanto Python 2.3.5-7 como 2.4.1-3. El caso es que cuando inicio el Blender oficial me dice usando Python 2.3 y todo funciona menos la importación de ese script. El antiguo lightwave_import, py si funciona.

Muchas zanquius.
Caronte - 27/08/2005 20:42
Entonces quizás sea un bug del script (recuerda que ni siquiera es una beta) y deberías notificárselo al autor.
uaraus - 27/08/2005 20:53
Hola todos. Ok, my español estops here. I hope not todo break any policy, making a posting in english. The problem is the use of a module todo Perform fast math on vectors.

This module has ben part of the Blender standard distribution, except with the latest.

I have not aware of this because i Simply install every new reléase on top of the old one, keping all the old modules.

Lo siento for any inconvenience: from the webpage above you can download a patched reléase (0.1.14) that hopefully fixes that. Hasta luego.
Caronte - 27/08/2005 20:55
Gracias you very much uaraus.
Caronte - 27/08/2005 21:13

He probado con dos ficheros bajados de http://scifi3d, theforce.net.

Tienen que ser ficheros guardados en el nuevo formato lwo2 según pone en la documentación en pdf que viene en el zip.
8tintin - 27/08/2005 23:30
Funciona perfecto, aunque no tengo ningún modelo con texturas UV para probar, pero en los que tengo ha importado la malla y los materiales perfectamente (Caronte, por fin he podido abrir los archivos del cid que nos pasó bren).

Thanks uaraus, it works perfectly for meshes and materiales. Saludos.
Caronte - 27/08/2005 23:44

(Caronte, por fin he podido abrir los archivos del cid que nos pasó bren).

¿crees que, aún llegaremos a tiempo para presentar algo?
8tintin - 28/08/2005 00:32
Calla, calla. Eso sí, todo lo que sé de animación fue gracias al proyecto. Pal próximo haremos nuestra propia dirección. Saludos.
Caronte - 28/08/2005 00:53

Eso sí, todo lo que sé de animación fue gracias al proyecto.

Ídem.
viriathus - 28/08/2005 01:54
Uaraus, the new versión works for me. A lot of gracias. Por cierto, los tres ficheros que me bajé de sci-fi los a abierto correctamente (lw versión 5 y 6).
Caronte - 28/08/2005 02:48
Pero ¿con texturas?
viriathus - 28/08/2005 03:32
Sin texturas, aun teniendo el objeto y las texturas en el mismo directorio.
uaraus - 29/08/2005 09:18
If i understand correctly you are experiencing some other problems importing textures. In this case, por favor, it could be very helpful if you can send me by mail the blend file resulting from the import (Compleete with the log text object: i ned at least this todo make some Analysis).

Pléase use this mail: uaraus-dem (at) Yahoo (Dot) it.

It could be wonderful if i can grasp the lwo file you are trying todo import: if it is frely downloadable from the net could you point me todo its url?
Sorry.

I do not want todo make experience on the skin of anybody, or going on in english on a español forum, but really this is the only useful feedbak i got in months (not complaining, just stating the facts).

Gracias you in advance (for the patience).

Alessandro.
viriathus - 29/08/2005 10:05
Hi uaraus. Not problem for english language. I downloaded some LightWave files from [url]http://scifi3d, theforce.net[/url], file versións go from 5.x todo 8 (what LightWave save in lwo2 formatí). When ill go todo home, ill do more tests.

Chers.

Viriathus.
uaraus - 01/09/2005 11:38
Hi. Some testing made with Star Wars models. They come up quite neatly (?)
Tried the imperial Shuttle and jarjar character.
(Btw, starting from lw6.x on they are lwo2 files).

I guess that the problem maybe that the script (up to now) maps UV and images at the material level, not at the face game settings level (that are 2 sepárate things).

So if you import an render you get texture, if you import and go todo the uwmap editor or uwmap viewport Shading, than you se, nothing.

If this is the case, well, now it works in both modes (reléase 0.1.15, from usual place).

If not, give me ha call.

Chers.

-- IMÁGENES ADJUNTAS --

🖼️

Estamos trabajando para mostrar las imágenes del foro

Adjunto #18767

viriathus - 01/09/2005 11:54
Great. When ill go todo home, ill try it. Thanks.
viriathus - 02/09/2005 23:02
Hi uaraus. I imported tyderiumlw6 without problems but i have problems with geometry of two meshes (lw 7 and LightWave 8). Hear the errors:
[code]This is: lwo_import 0.1.15.

Importing file:
/home/viriathus/blender/lw/estormtroper2(lw7)/troper_mocap, lwo.

LightWave 6 (and above) format.

Tracebak (most recent call last):
File lwo_import.0.1.15.py, line 1525, in fs_callback.

File lwo_import.0.1.15.py, line 174, in read.

File lwo_import.0.1.15.py, line 330, in read_lwo2.

File lwo_import.0.1.15.py, line 1217, in create_objects.

File lwo_import.0.1.15.py, line 1181, in set_subsurf.

Attributeerror: attribute not found.

Using old mod_meshtols.
#####################################################################.

This is: lwo_import 0.1.15.

Importing file:
/home/viriathus/blender/lw/jar-jar2(lw /jarjar, lwo.

LightWave 6 (and above) format.

Tracebak (most recent call last):
File lwo_import.0.1.15.py, line 1525, in fs_callback.

File lwo_import.0.1.15.py, line 174, in read.

File lwo_import.0.1.15.py, line 330, in read_lwo2.

File lwo_import.0.1.15.py, line 1217, in create_objects.

File lwo_import.0.1.15.py, line 1181, in set_subsurf.

Attributeerror: attribute not found.
[/code]

Files: estormtroper2(lw7) and jar-jar2(lw from scifi3d.

System: Linux, cvs Blender 2.37a, Python 2.4 (ill try later with Python 2.3).

Chers.

-- IMÁGENES ADJUNTAS --

🖼️

Estamos trabajando para mostrar las imágenes del foro

Adjunto #18873



🖼️

Estamos trabajando para mostrar las imágenes del foro

Adjunto #18874

viriathus - 02/09/2005 23:22

But i have problems with geometry of two meshes (lw 7 and LightWave 8).

Lo siento. With Blender 2.37a oficial and Python 2.3 works very well. Some screenshots.

Star Wars powa.

-- IMÁGENES ADJUNTAS --

🖼️

Estamos trabajando para mostrar las imágenes del foro

Adjunto #18880



🖼️

Estamos trabajando para mostrar las imágenes del foro

Adjunto #18881



🖼️

Estamos trabajando para mostrar las imágenes del foro

Adjunto #18882



🖼️

Estamos trabajando para mostrar las imágenes del foro

Adjunto #18883

Caronte - 03/09/2005 00:23
La segunda imagen está mal mapeada (toda la textura en cada polígono), ¿es el resultado de la carga o has cambiado el mapeado UV?
viriathus - 03/09/2005 00:26

La segunda imagen está mal mapeada (toda la textura en cada polígono), ¿es el resultado de la carga o has cambiado el mapeado UV?

Esta importado el objeto y renderizado tal cual. Lo que pasa es que de lejos cómo se veía bien, no le he dado importancia a que se viera como en un periódico, a puntitos.
Caronte - 03/09/2005 00:46
Hombre, si no importa las coordenadas UV bien, tendrá que mirarlo por si es un bug o el objeto está mal grabado.
viriathus - 03/09/2005 01:02
Estas imágenes están mejor. Esta vez, después de importar el fichero, he ido objeto por objeto pulsando la tecla f para entrar y salir en modo face. Seguimos probando cosas.

-- IMÁGENES ADJUNTAS --

🖼️

Estamos trabajando para mostrar las imágenes del foro

Adjunto #18890



🖼️

Estamos trabajando para mostrar las imágenes del foro

Adjunto #18891

viriathus - 03/09/2005 01:12
Ya está. No hace falta ir objeto por objeto pulsando f. Instrucciones de uso:
1. Importas el fichero LightWave.
2. Guardas el fichero como blend.
3. Abres el fichero blend. (no hace falta salir y entrar de Blender).
4. Render.

Edito: gracias Caronte por ser tan observador.
Caronte - 03/09/2005 01:51
¿Qué dices? Gracias a ti por probarlo a fondo (yo ando muy liado) y naturalmente a uaraus por actualizar el script. Toda importación es útil, nunca se sabe cuándo vas a necesitar trabajar con alguien que usa otro software.
uaraus - 03/09/2005 08:55
Gracias you all boys, for testing the script. Believe me, y appreciate very much your valuable feedback. Anyway, if something happens, mensaje on elysiun or here. Hasta luego.