#1
|
|||
|
|||
How to apply texture on an on-the-fly 3d object
This question may be naive. But I could not find the answer in the forum or from the vizard help file.
I used vizshape.addCylinder() to create an on-the-fly cylinder. Then, I used <3d_node>.texture to add a texture on it. But, the texture does not appear on the top and the bottom circular faces of the cylinder. What shall I do? Here is my code: Code:
tex = viz.addTexture('wood.jpg') tex.wrap(viz.WRAP_R,viz.REPEAT) tex.wrap(viz.WRAP_T,viz.REPEAT) tex.wrap(viz.WRAP_S,viz.REPEAT) circle = vizshape.addCylinder(height=0.15, radius=0.5) circle.texture(tex) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to render a texture of the transparent object and then blur it | whj | Vizard | 1 | 09-25-2012 03:15 PM |
how to apply two textures to one 3D object? | sqwiggily | Vizard | 3 | 03-15-2012 07:39 PM |
How to apply shader and render texture to an object | whj | Vizard | 0 | 04-23-2010 12:23 PM |
Applying texture or colour to an on-the-fly object | tomo_the_third | Vizard | 1 | 06-22-2009 11:12 AM |
Move texture from one object to another | Johannes | Vizard | 2 | 02-09-2005 03:55 PM |