Date post: | 08-Apr-2018 |
Category: |
Documents |
Upload: | aprender-libre |
View: | 249 times |
Download: | 0 times |
of 16
8/7/2019 Deformacionescon blender y python
1/16
1
DEFORMACIONES EN
BLENDER CON PYTHON
Daniel Monedero Trtola
Isabel Crespo Prez
NLS
8/7/2019 Deformacionescon blender y python
2/16
2
INTRODUCCIN CONCEPTOS
Blender
Python
Texturas
Mallas
8/7/2019 Deformacionescon blender y python
3/16
3
PYTHON VS C
#includevoidmain(argcc, argv *v){
printf('hola mundo');}
print('hola mundo')
8/7/2019 Deformacionescon blender y python
4/16
4
USO DE OTRA MQUINA
Se necesitan privilegios de administrador
para la instalacin de Blender y Python
8/7/2019 Deformacionescon blender y python
5/16
5
REQUISITOS PARA LA FUNCIONALIDAD
2.37a
http://www.blender.org
8/7/2019 Deformacionescon blender y python
6/16
6
MOTIVACIN
Make
ItReal
8/7/2019 Deformacionescon blender y python
7/16
7
8/7/2019 Deformacionescon blender y python
8/16
8
FINALIDAD
Facilitar la tarea de los modeladores 3dpara definir texturas y objetos con
deformaciones
8/7/2019 Deformacionescon blender y python
9/16
9
LA API DE PYTHON
Solo en ingls
Necesita primitivas
An no est completa
Surgen incompatibilidades
Bien documentada
Ofrece navegadores
Es amplia
Crece con cada versin
8/7/2019 Deformacionescon blender y python
10/16
10
IGU
8/7/2019 Deformacionescon blender y python
11/16
11
IGU DEFINITIVA
8/7/2019 Deformacionescon blender y python
12/16
8/7/2019 Deformacionescon blender y python
13/16
13
CDIGO (1)
#Aadimos los vrticesfor i in range(0,n):
for j in range(0,n):
x=sin(j*pi*2.0/(n-1))*cos(-pi/2.0+i*pi/(n-1))*ry=cos(j*pi*2.0/(n-1))*(cos(-pi/2.0+i*pi/(n-1)))*rz=sin(-pi/2.0+i*pi/(n-1))*rv=NMesh.Vert(miX+x,miY+y,miZ+z)me.verts.append(v)
#Enlazamos los vrtices con las caras...
#Aadimos lo necesario para poder deshacer...
8/7/2019 Deformacionescon blender y python
14/16
14
CDIGO (2)def event(evt, val):
if(evt==LEFTMOUSE):xCursor=Window.GetMouseCoords()[0]yCursor=Window.GetMouseCoords()[1]yMin=310+
Window.GetScreenInfo(Window.Types.SCRIPT)[0]['vertices
'][1]yMax=310+
Window.GetScreenInfo(Window.Types.SCRIPT)[0]['vertices'][1]+110
if((yCursor>=yMin)&(yCursor=20+Window.GetScreenInfo(Window.Types.SCRIPT)[0]['vertices'][0]) &(xCursor
8/7/2019 Deformacionescon blender y python
15/16
15
PROBLEMAS
Desconocimiento del lenguaje
Desconocimiento de la API Falta de documentacin, sobretodo en castellano.
IDE muy pobre (editor de textoque colorea)
8/7/2019 Deformacionescon blender y python
16/16
16
BIBLIOGRAFA
http://www.programcion.com/tutorial/python
http://blender.guanajuato.net ( G-Blender)
http://www.elysiun.com
http://www.dedalo-3d.com
http://www.programcion.com/tutorial/pythonhttp://blender.guanajuato.net/http://www.elysiun.com/http://www.elysiun.com/http://blender.guanajuato.net/http://www.programcion.com/tutorial/python