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? :confused: Here is my code: Code:
tex = viz.addTexture('wood.jpg') |
I think the problem is probably related to the texture wrapping. Because I can see texture on the side surface of the cylinder, but there is no texture on the top and bottom surfaces of the cylinder. However, the color of the top and bottom surfaces changed to the closest color to that of the texture I applied.
|
Did you ever find a solution to this? I'm trying to color an on-the-fly cylinder but am unable to get the color to appear on the top and bottom of the cylinder.
|
I think this might have been a lighting issue; without a specific light source, Vizard can make objects appear very dark in some situations. It's possible that the object was coloured, but I couldn't see the colour.
|
All times are GMT -7. The time now is 11:16 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC