(sorry for my bad english)
I'm using Three.js to create a panorama. I would like to know if it is possible to get the color of a texture which I clicked on?
For that, I already have created a sphere and I can get the 3D coordinates on the sphere where I clicked (using, raycaster, projection,...).
The texture on the sphere is a ".png" with transparency. The area I would like to detect is colored :
Could you help me?
Related
I am working with a face mesh in Autodesk Maya. To each vertex of the mesh, I assigned a specific color, using pycore.polyColorPerVertex function. I would like to see these same colors in the UV view as well, but they are not showing when I open the UV editor. I tried with different setups within the UV editor, but honestly, I have no experience in Maya, and I don't know how to solve this. Is there an (easy) solution?
Here goes a captureenter image description here if it helps..
I am using three.js and created a basic scene with a few meshses rendered with some basic lighting . My torus geometry was previously pointy with few polygons but I was able to smooth it out by adding more segments but now I would like to straighten the lines out in my cube. They seem jaggy. In the pic I am including my render on the left seems a lot jaggier then the example I am following on the right. I have even set width and height segments to very large values (200). Any Ideas why the aliasing/jagginess?My render on left, example on right
I'm trying to do some image recognition using Open CV. I want to detect the position of a dark rectangle in a game called Diablo 2.
After detecting the position of the rectangle, I will extract the text of that rectangle using OCR.
I've prepared some examples using Photoshop of where are those rectangles located.
On the left you can see the game screenshot, on the right I've pointed out the dark rectangles using a red rectangle, that's the place I want to detect using OpenCV.
Which OpenCV method should I use to detect those dark rectangles?
I'm not sure if Open CV is capable of doing this kind of pattern recognition, would be great if anyone can point me out how to do it.
For a project, I have to follow a little chopper that's painted green. I want to follow the helicopter with a webcam and have the outline stroked on my screen. How would you do this?
I am using Processing for this.
Please open this link:
http://miloud.webs.com/me/index.html
You can see a cube rotating on a space. You can change the texture and color of the cube from the Controls -> Geometry on the link. When I use a sphere instead of the cube, everything works fine except when I change the sphere color (from Controls -> Gemoetry, on the link), the sphere stops rotating. When I select an image for the sphere texture, it rotates fine again. The only deference in the code is, instead of :
geometry = new THREE.CubeGeometry( 200, 200, 200 );
I use:
geometry = new THREE.SphereGeometry(75, 32, 32);
The sphere actually does not stop rotating. I was deceived by the fact that the sphere most of the time looks the same, so at the first glance it appeared as not rotating, but it does rotate.