#1
|
|||
|
|||
how to apply two textures to one 3D object?
Hello,
How can I attach two different textures (that is, two different JPGs) to one 3D object, i.e. a box model (box.wrl), such that each texture can only be seen from one side? I´m trying to create walls in a maze (box objects which have been stretched), on one side of the box I want to apply a JPG texture so the wall looks as if it has a photo hanging on it. I would like to have the photo on one side of the wall and only a wall texture on the other side. Thanks a lot! Kelsey |
#2
|
|||
|
|||
Each side of the wall will have to be a separate object so they can be textured independently.
|
#3
|
|||
|
|||
Using the "splitFaces" parameter from <vizshape>.addBox allows you to create a box with six subnodes, one for each side of the box, each of which can be handled independently. That way you can easily apply a different texture to each side of the box.
See the example code for <vizshape>.addBox from the Vizard 3.0 documentation: Code:
import viz import vizshape viz.go() #Create box with each face split into separate sub-node box = vizshape.addBox(splitFaces=True) box.setPosition(0,1.8,4) box.addAction(vizact.spin(0,1,0,45)) #Create textures t1 = viz.add('image1.jpg') t2 = viz.add('image2.jpg') #Apply first texture to front/back face box.texture(t1,node='front') box.texture(t1,node='back') #Apply second texture to left/right face box.texture(t2,node='left') box.texture(t2,node='right') |
#4
|
|||
|
|||
i don't understand the question, very well but i think you can use baking texture or prepare one texture with the two faces that you want to show, like Jeff said it can't be done, you have to combine the two jpg in one.
4711 I didn't know that maybe that could be the right solution but you have to create the box in vizard, and maybe sqwiggily want to do it in a program like 3ds max or maya |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
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 04:15 PM |
Applying textures to objects made in Blender | andrewjworz | Vizard | 0 | 04-21-2011 07:15 AM |
How to apply shader and render texture to an object | whj | Vizard | 0 | 04-23-2010 01:23 PM |
retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 05:26 AM |