Is it possible to lay multiple textures on top of each other on the same face in Three.js so that the alpha blending is done GPU accelerated in webGL?  The textures are (or should be) applied to the same face so that the bottom texture (texture 1)...
I would like to create a cube that has a texture and a color on it in three.js at the same time.   I want to change the color when the cube is selected. That's why it needs a color.   Will a black and white texture with a color on top allow me to...
So to implement a tilemap using Threejs and Brandon Jone's tilemap method (found here) I am using a THREE.Plane geometry for each layer, and painting the face with the following custom shaders:  Vertex Shader:  var tilemapVS = [     "varying...
When it comes to 3D animation, there are a lot of terms and concepts that I'm not familiar with (maybe a secondary question to append to this one: what are some good books to get familiar with the concepts?). I don't know what a "UV"...
I have a scene with two individual meshes. It looks like this:        this.loadFiles("gras", (gras) => {         var particleMaterial = new THREE.MeshPhongMaterial();         particleMaterial.map = THREE.ImageUtils.loadTexture("models/...
PRoblem: i'm trying to create (just for fun) a simple poker card (with a card back and a card front). I have two different images, for back and front. I easily created a Plane geometry with a single texture for both sides, but i really don't...
I originally asked this question on gamedev, but none of the answers helped to solve problem, and I still have no clue what is the real cause. I didn't see anything about re-posting questions across SE in FAQs, so I can only hope this is okay. Mo...
I want to give each face of a THREE.js sphere it's own texture. So I let a SphereGeometry calculate the vertices and convert each face to a PlaneGeometry using the vertices of the faces.  THREE.SpherePlaneGeometry = function ( v1, v2, v3, v4 ) {...
I have a local file in which I try to load texture like this:  var texture = THREE.ImageUtils.loadTexture( 'image.jpg' ); var cubeGeo = new THREE.CubeGeometry( 50, 50, 50 ); var cubeMat = new THREE.MeshBasicMaterial( { map: texture } ); var c...
So in the javascript portion of my code, here is the snippet that actually sends an array of pixels to the vertex and fragment shaders- but I am only working with 1 texture when I get to those shaders- is there anyway that I can send two textures at...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.