I am using three.js and I want to create geometry 16x16 size. I want that each segment is different color and some of them is transparent. What is the best solution for this problem? Should i render each pixel as a single plane geometry? Or there is possible way to change single segment color/transparency.
Plane geometry, each segment different color, some of them transparent
675 Views Asked by user13762985 At
1
There are 1 best solutions below
Related Questions in COLORS
- X3DOM Inline Background skyColor
- Set Background Color on UIButton when Disabled?
- WPF text control with colors only
- Trying to make a random pixel in a bitmap a new color, but it is giving an error why
- background is not working properly
- LWJGL Drawing colored text to the screen issue
- Python: list of strings, change color of character if found (using xlsxwriter)
- How to plot colors on CIE 1931 Color Space in Matlab?
- Change all MenuItems ForeColor at once when click a button
- Selectioncolor doesn't work within KeyPress event
- Change color button in Kivy
- Matlab - Using symbols in gscatter
- Java replacing the background of an image
- Java JMapViewer: How can I change the color of a MapPolygon?
- How do I change symbol type colors on D3js?
Related Questions in THREE.JS
- TypeError: this.mesh.geometry.area is not a function
- Threejs scene from blender and access to objects
- Importing blender JSON in Three.js
- Rotate the mergeometry object at its center in Three.js
- ThreeJS LOD clone()
- Three.js, Camera rotation around a point
- Three.js: Switching between Cameras and Controls
- THREE.JS MakeTextSprite properties
- How to create a cylinder or some flash effect between two points?
- How can I render .mtl for object on iPhone 5 using ThreeJS?
- Updating a material's texture map with images rapidly (every 50ms or so) causes huge stuttering
- Quality not proper while rendering it via threejs r71
- how do I apply the stereo effect to a video mapped sphere?`
- Adding 2D plane to 3D view
- How to check for collisions in ThreeJS?
Related Questions in VERTEX-SHADER
- Should Meshes with and without Skeleton use different Shaders?
- GLSL Shader Draws Only Black Screen LWJGL
- Create SpriteBatch throw IllegalArgumentException
- Overlaying a transparent color over a Texture with GLSL
- Three.js PointCloud vertices always return (0,0,0) position
- Save world transform for the same model in multiple pass rendering
- Switching from 3D to 2D in OpenGL
- What's wrong with my lighting function in the shader?
- How to make the line color flat instead of gradient in OpengGL ES 2.0?
- D3D11 Create Shader: Encoded Vertex Shader size doesn't match specified size
- Operations on complex numbers in vertex shader
- Is there a way to know how may vertices are processed by frame in WebGL?
- Issue using attributes object in RawShaderMaterial
- How to get accurate fragment screen position, like gl_FragCood in vertex shader?
- How fragment shader determines the number of fragments from vertex shader output?
Related Questions in VERTEX-ARRAY
- glDrawElements not working on iPhone but glDrawArrays works
- Not able to get output with glDrawElements() & glMultiDrawElements()
- OpenGL ES 2.0: Efficient Rendering of Static and Dynamic Vertex Data
- Motion field display on tile map SFML
- VAO and element array buffer state
- Do I have to use glGenVertexArray in opengl
- OpenGL scaling vertex arrays
- OpenGL Vertex array not displaying properly
- Drawing 3D polygon using vertex array
- OpenGL ES - How to Batch Render 500+ particles w/ different alphas, rotations, and scales?
- What are Vertex Array Objects?
- Draw a series of points with vertex array : nothing displayed
- Why does OpenGL's glDrawArrays() fail with GL_INVALID_OPERATION under Core Profile 3.2, but not 3.3 or 4.2?
- Corrupted data in vertex shader attribute location
- Generic vertex attribute buffer doesn't seem to work without glVertexPointer
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I suggest you an instance of
PlaneGeometry, transform it to a so called non-indexed geometry and then add an additional color buffer attribute. Full example: