Browse Search Popular Register Upload Rules User list Login:
Search:
textured 2d-3d conversion need help

Image:
screenshot of the scene

Author: ezpz(fib)5

Group: Default

Filesize: 412.44 kB

Date added: 2022-05-03

Rating: 5

Downloads: 679

Views: 190

Comments: 5

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.3

Tags:

Scene tag

for the box size, it is whatever/distance, but since the more squished is the higher it gets, how can I
adjust the texture matrix?
Please log in to rate this scene
edit
Similar scenes
Title: 50 cal rifle semi auto conversion
Rating: 5
Filesize: 257.46 kB
Downloads: 2780
Comments: 0
Ratings: 1
Date added: 2023/12/02 22:59:41
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: UAZ-3741 camping conversion
Rating: 5
Filesize: 0.72 MB
Downloads: 935
Comments: 0
Ratings: 1
Date added: 2011/01/31 11:34:00
Made with: Phun
Rating: rated 5
download
Title: textured marbles are here!!
Rating: 5
Filesize: 123.88 kB
Downloads: 860
Comments: 0
Ratings: 1
Date added: 2015/10/12 17:19:22
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: 1969 Dodge Charger
Rating: 5
Filesize: 110.36 kB
Downloads: 952
Comments: 1
Ratings: 1
Date added: 2012/02/25 04:39:18
Made with: Phunlet
Rating: rated 5
download
Title: Steel Ronin(Textured)
Rating: 5
Filesize: 1.1 MB
Downloads: 444
Comments: 0
Ratings: 1
Date added: 2014/04/28 12:35:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Steel Ronin (Non-Textured)
Rating: 5
Filesize: 1.12 MB
Downloads: 519
Comments: 0
Ratings: 1
Date added: 2014/04/28 12:36:22
Made with: Algodoo v2.1.0
Rating: rated 5
download
Search scenes and forum for the word "texturematrix".
yeah, I know, but can I reverse the: higher the value the smaller it gets to higher the value the higher it gets in a way I can do something similar to the size/distance?
Here is the textureMatrix array in a nutshell:

[Xscale,Xrotation,Xoffset,Yrotation,Ysc­ale,Yoffset,0,0,0]

The last three zeros in the array are not used, or I simply do not know what they are for. They don't seem to have any effect when I make them other than zero. They may be there for some future use if/when Algodoo gets updated.

Here is how to automatically adjust the texture X and Y scale as a box or a circle changes in size.
For a box: [1/size(0),Xrotation,Xoffset,Yrotation,1/size(1),Y­offset,0,0,0]
For a circle: [1/radius,Xrotation,Xoffset,Yrotation,1/radius,Yof­fset,0,0,0]

If you add those calculations directly in the textureMatrix data area then you need to place curly brackets on each side of the array like this:
{[1/size(0),Xrotation,Xoffset,Yrotation,1/size(1)­,Yoffset,0,0,0]}

When resizing a polygon, the calculations for auto-resizing the texture are much more complex which I don't know how to do.
When I put this script in onlaserhit but the texture becomes invalid.

v = math.vec.dist(e.pos, pos);
c = e.geom.texturematrix;
d = [0.02, 0.5 / math.vec.dist(e.pos, pos)];
scene.addbox({
size := [0.02, 0.5 / math.vec.dist(e.pos, pos)];
pos := [scene.my.screenpos(0) + _a - rotation, scene.my.screenpos(1)];
color := e.geom.color;
density := ∞;
collideset := 0;
timeToLive := 0.05;
drawborder := false;
texture = e.geom.texture;
texturematrix = {
[c(0) / d, c(1), e.geom.angle - rotation, c(3), c(0) / d, c(5), c(6), c(7), c(8)]
}
})
do you know what's wrong?
nvm I got it to work.