简体   繁体   English

在每个框边放一张图片

[英]Putting one image in each box side

I want to put for each side of the box (6 sides), one image face: image1.jpg我想为盒子的每一面(6 面)放置一个图像面:image1.jpg

left: image2.jpg左:image2.jpg

right:image3.jpg右:image3.jpg

top: image4.jpg顶部:image4.jpg

bottom:image5.jpg底部:image5.jpg

behind:image6.jpg后面:image6.jpg

Is there a way to do it?有办法吗? here is the code I used to get a box with one image这是我用来获得带有一张图片的盒子的代码

from vpython import *
scene.range=1
scene.forward = vector(-1,-.5,-1)
box( color=color.green,
     texture={'file':'images/01.jpg', 'place':['right','sides']} )

A simple scheme is to make your own cube out of 6 thin boxes (or quads).一个简单的方案是用 6 个薄盒子(或四边形)制作你自己的立方体。 I'll mention that you can get much faster and better help in the VPython forum https://groups.google.com/g/vpython-users我会提到,您可以在 VPython 论坛https://groups.google.com/g/vpython-users中获得更快更好的帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何创建多个Box并仅在一侧更改纹理? - How to create multiple Box and only change the texture on one side? WebGL并排图像导致图像轮廓 - WebGL Side-by-Side images causes image outline 如何在OpenGL ES 1.1上用不同的纹理填充立方体的每一面? - How to fill each side of a cube with different textures on OpenGL ES 1.1? 用不同的图像覆盖立方体的每一面-OpenGL - covering each side of a cube with different images- OpenGL 如何使用SceneKit iOS将背面图像添加为纹理 - How to add back side image as texture with SceneKit iOS libgdx-使用SpriteBatch并排渲染两个纹理并使用一个摄像头 - libgdx - Render two textures side by side using SpriteBatch and use one camera Three.js - 双面平面一侧反转 - Three.js - Double sided plane one side reversed 使用一侧带有动态纹理的 DirectXTK 创建 3d 卡 - Creating a 3d card using DirectXTK with Dynamic texture on one side 对于类似Minecraft的游戏,在每侧渲染具有不同纹理的立方体的有效方法? - Efficient method for rendering cubes with different textures on each side for a Minecraft-like game? 在绘制每边带有纹理的四边形时,drawElements是否优于或等于drawArrays? - Is drawElements better than or just equal to drawArrays, when drawing quads with textures on each side?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM