[Tutor] How do I add uvs to each vert line if a texture/bump map is used?
Kent Johnson
kent37 at tds.net
Sat Sep 15 07:55:44 CEST 2007
Does this have something to do with Python? What are uvs? vert line?
texture/bump map?
Kent
Paul Coones wrote:
> C3DModel
> 4
> 2
> 0,50
> Cube
> 1
> 1
> 8,1,12,0
> v1
> 1.000000,0.5000000,0.5000000,0,1,NULL.TIF
> "null.bump.tif"
> -7.028856,3.349522,4.785803,0.333323,0.666646,
> -0.666646,0.000000,0.000000
> -7.028856,1.349522,4.785803,0.816492,-0.408246,
> -0.408246,0.000000,0.000000
> -9.028855,1.349522,4.785803,-0.577349,-0.577349,
> -0.577349,0.000000,0.000000
> -9.028855,3.349522,4.785803,-0.577349,0.577349,
> -0.577349,0.000000,0.000000
> -7.028855,3.349521,6.785803,0.666646,0.333323,0.666646,0.000000,0.000000
> -7.028856,1.349521,6.785803,0.408246,
> -0.816492,0.408246,0.000000,0.000000
> -9.028855,1.349522,6.785803,-0.408246,
> -0.408246,0.816492,0.000000,0.000000
> -9.028855,3.349522,6.785803,
> -0.666646,0.666646,0.333323,0.000000,0.000000
> 4, 0, 7
> 0, 3, 7
> 2, 6, 7
> 2, 7, 3
> 1, 5, 2
> 5, 6, 2
> 0, 4, 1
> 4, 5, 1
> 4, 7, 6
> 4, 6, 5
> 0, 1, 2
> 0, 2, 3
> Plane
> 1
> 1
> 4,1,2,0
> v1
> 1.000000,0.5000000,0.5000000,0,1,NULL.TIF
> "null.bump.tif"
> 0.991230,-2.242427,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000
> 0.991230,-4.242427,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000
> -1.008770,
> -4.242427,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000
> -1.008770,
> -2.242426,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000
> 0, 3, 2
> 0, 2, 1
>
> NOTE: each vert line contains x,y,z,nx,ny,nz,u,v
> Location of smf_export.py file on savefile:
> http://www.savefile.com/files/1054095
>
> Thanks, Paul ( upretirementman )
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list