Questions tagged [matrix-transform]

63 questions
9
votes
1 answer

matrix scale transition not working

I have to use the transform matrix to animate transform: scale of an element. I want to scale from 0 to 1. If I use the following code it works properly: .container { width: 200px; height: 100px; background: yellow; transform:…
yacon
  • 1,112
  • 1
  • 10
  • 17
4
votes
1 answer

Mapping a texture from "1D" to "2D" with OpenGL matrix transformations

(With this question I'm trying to investigate an idea I had for solving this other one) If I have a standard 2D array of dimensions width and height in memory, I can turn that into a 1D array of length width * height and then index it via index = x…
Markus A.
  • 12,349
  • 8
  • 52
  • 116
4
votes
2 answers

Zoom in OpenGL ES 2.0 - object disappearing

I like to know about how to correctly zoom in OpenGL ES 2.0. I've successfully drawn a model but it's pretty small and I'm not able to zoom into this model. What I like to have is to zoom "through" this model. The model is a building with different…
Frame91
  • 3,670
  • 8
  • 45
  • 89
4
votes
3 answers

Rotate TextButton with libgdx

I have a textButton and I want to place it on the screen rotated by 90deg. For some reason all methods for rotation(rotate(), setRotationAngle() and so on) assosiated with TextButton object do not work properly. So I've implemented new class…
Ricardo Simmus
  • 334
  • 4
  • 19
4
votes
2 answers

Python - Convert a matrix to edge list/long form

I have a very large csv file, with a matrix like this: null,A,B,C A,0,2,3 B,3,4,2 C,1,2,4 It is always a n*n matrix. The first column and the first row are the names. I want to convert it to a 3 column format (also could be called edge list,…
Mor Brb
  • 135
  • 3
  • 9
3
votes
1 answer

Generalizing the ScaleTransform (WPF) when image is not aligned to x-y axes

My linear algebra is weak. WPF is a great system for Rendering different transformations upon an image. However, the standard ScaleTransform will only scale the image's along the x-y axes. When the edges have first been rotated, the result of…
Alan Wayne
  • 5,122
  • 10
  • 52
  • 95
3
votes
0 answers

How does glm::translate() calculate the final matrix?

I am not clear about the procedure of glm::translate(). What's the difference between result = glm::translate(MAT, glm::vec3 vec); and result = glm::translate(glm::mat4(1.0f), glm::vec3 vec) * MAT; ? MAT is a glm::mat4 variable.
YuChang
  • 31
  • 2
3
votes
1 answer

OpenGL Matrix scale then Translate is still scaling my position

I am trying to position my text model mesh on screen. Using the code below, it draws mesh as the code suggests; with the left of the mesh at the center of the screen. But, I would like to position it at the left of edge of the screen, and this is…
CoryU
  • 163
  • 9
3
votes
1 answer

Processing 2+ Create multiple italic text legends

I want to create a legends for a bar chart, which looks like: | | | | / / / / where | : data column, / : is a legend for each column I couldn't get the text legend right, try multiple maxtrix transformation, but none works correctly.…
vulh
  • 41
  • 3
2
votes
0 answers

keeping same Object size while zooming with same left origin in fabricJS

I've seen this post and tried to do my own function using only the X scaling. fabric.Object.prototype.transform = function (ctx){ var m; if (this.group && !this.group._transformDone) { m = this.calcTransformMatrix(); …
JSmith
  • 4,519
  • 4
  • 29
  • 45
2
votes
2 answers

Transforming a list containing the elements below the diagonal of a matrix into a full matrix

I want to create a full-fledged matrix from a list of the elements that are below the diagonal. The following list contains the elements below the diagonal: And this would be the desired output: Up until this point, I tried to make this work with…
Adrian
  • 774
  • 7
  • 26
2
votes
1 answer

How to keyframe animate a scale and rotate from an anchor point of a webGL cube?

I've created a cube in WebGL. I have an animation in mind but am struggling with make it come together. The full code is roughly 150 lns of code so here's a working sample: Working Plunkr Code Here's a video wireframe of the animation, I'm trying…
Armeen Moon
  • 18,061
  • 35
  • 120
  • 233
2
votes
0 answers

cumulative matrix transformation with ICP from PCL

My goal is to align 3D point clouds with ICP. Somehow I have an error, I believe it is because of the cumulative matrix transformations. For debugging I start with 2D point clouds, I created. For the creation of the point clouds, I create a random…
2
votes
1 answer

How to make a (matrix?) transformation permanently a RecyclerView

I'm currently working with a RecyclerView which has an horizontal LinearLayout. The RecyclerView occupies all the screen: and I'm finding the way to make a fix transformation of the RecyclerView like this: note that the transformation is like a…
2
votes
1 answer

MatrixTransform in combination with Width/Height of a Canvas

When zooming in on a drawing on a Canvas I have the requirement to show scrollbars. The Canvas is in a ScrollViewer and I increase the Width/Height of the Canvas so that that the scollbars appear (otherwise they don't). To zoom in with a factor of…
Gerard
  • 13,023
  • 14
  • 72
  • 125
1
2 3 4 5