View Single Post
  #1  
Old 05-17-2011, 07:18 AM
jaclyn.bill jaclyn.bill is offline
Member
 
Join Date: Oct 2007
Posts: 42
texture .ive or .wrl

Dear all,

I'm trying to wrap a checkerboard texture round a spherical object. I've tried using the default ball.wrl and a soccerball.ive

Code:
check = viz.add('checker.jpg',wrap=viz.REPEAT)
ball = viz.add('ball.wrl')
#ball = viz.add('soccerball.ive')
ball.texture(check)
ball.texmat( viz.Matrix.scale(1,1,10) )
This does not work at all with the soccer ball, which I'd have preferred as it's more spherical. It does work with the .wrl object but the checker board is normal on some surfaces and stretched on others - regardless of how much I play with the repeats and scales.

I essentially want it to look like a 3D version of the attached .bmp. Is my only option to draw one myself with many small black and white vertices?

Many thanks. Jac
Attached Images
File Type: bmp sphere.bmp (803.6 KB, 1017 views)
Reply With Quote