Hi! After watching a video about implementing a 3d engine in html, it looks quite simple son I make a try converting it to Contruct. I have got really quickly a moving camera between point in a 3d space. So I have decided to go further, and try to insert a texture between 4 points. I have used distort maps. The result is quite good, but the sprite distortion is very strange. I am not sure if it is a distort map "limitation" or I am doing something wrong applying it.
arrow keys to move and right-left mouse for raise and descend the camera
Here the reference if anyone want see it:
It looks like the uv's are changing. Unless you want a sub-texture, u and v displace should be left at 0.
Thanks, but I am changing only x and y positions. The UV displace and z position are always 0.
Edit: Read too fast... Standby while I test something out...
It will probably be fixed if you incorporate z position. With z position the texture will look correct with perspective. It also has the added benefit of eliminating the need to manually do the perspective transform.
Develop games in your browser. Powerful, performant & highly capable.
Thanks, I will try chaging z values and see what I can get.