3D game with image mapping

So, I found a little extension which lets you map a textured image to 4 points on a screen. So maybe we can map them correctly in a certain order, then we get a 3D illusion.

I will attempt to make a simple cube.

10 Likes

what is the extension?

1 Like

Ok, a Quick update:

It’s a lot harder than I thought, but it is possible. I just need to map 3 planes onto a surface at certain points.

When it is finished, the cube will not rotate.

Although, if someone could help, that would be Awesome.

Just a screenshot of the code:

\

Also, here is the link:

2 Likes

Sounds interesting hope it works. Wondering how rotation would work.

1 Like

Welcome to the forums, BluePikmin!!! :tada: I can’t wait to see what you make!

1 Like

yay

!!!

1 Like

For the variable ‘ys1’ you want to use the “make quad y points” block if you’re going to use it in the map block. Here’s your same example but with different TL, TR values. I also set the values to be visible on the screen:

Hope this helped!

2 Likes

Ok, I figured out what I did wrong.

First, what I did right: I rendered a shape, and gave it a white texture.

What I did wrong: I made it draw off screen.

I did some tweaks, and now I have a trapezoid. With a burger texture.

So…

Yay!

2 Likes

Image Mapping.
Sorry it took a bit long to reply! :sweat_smile:

BIG UPDATE!
I found out if I switch the quad x and quad y thingies, the image turns 90 degrees.

Neat!

1 Like

Ok folks!

This is big!

Behold!

A 3D(ish) Wall!

1 Like

Well, ladies and gentlemen…

The moment you’ve all been waiting for…

TADA!

So nice, huh?

Also, Happy Pikmin Day!

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠴⠚⠉⣉⡉⠐⠒⠠⠤⣀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⠃⠘⠪⣄⡀⠙⢳⣜⡦⢦⡤⠉⠑⠢⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠷⢤⣰⡞⠛⠉⠒⠲⠄⠙⢦⠀⠀⢸
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣤⠞⠉⠁⠉⠉⠀⠀⢀⣀⣄⡠⠤⠒⠁
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠠⢒⡽⠞⠊⠉⠉⠉⠉⠉⠉⠉⠁⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⠃⣸⠎⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⢀⠞⠀⣠⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⢰⠏⠀⢠⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⡽⠀⠀⣾⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⣰⠁⠀⠀⣏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢀⡴⠊⠀⠀⠀⠀⠈⠑⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⣤⠖⢿⣲⣄⠀⠀⠀⠀⠀⣠⣤⣵⣢⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⣯⣳⢶⣯⢿⡇⠀⠀⠀⢸⣿⣽⢾⣻⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠛⢯⣿⡾⠟⠀⠀⠀⠀⠈⠿⣾⣟⡯⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠈⢣⠀⠀⠀⠀⠀⠀⡀⠎⣴⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠈⠳⡀⠀⠀⠀⠐⣨⣼⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠈⣆⠀⠀⠂⣷⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⡜⠁⠀⠀⠀⠙⢧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢀⠎⡔⠀⠀⠀⠀⠠⣄⡣⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⣰⢃⡾⢁⠀⠀⠀⠀⠀⢺⣎⠱⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⢰⣱⡏⣷⠸⠀⠀⠀⠀⠀⢸⡗⢳⣹⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠉⠉⠁⢹⠀⠀⢀⣀⠀⠀⣼⠁⠀⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠘⡇⣼⠋⠉⢱⣀⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⢰⣚⣻⠄⠀⢸⡌⣒⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀

White Pikmin

3 Likes

I asked Claude if it was optimized for 3D… It said it would be very slow.

There you go… it is around the same speed as my voxel Engine (that is bad because my voxel engine had more than 100 cubes, so this method would go at basically 0 fps)

I meant the url, but with your other games I can see the extension (so I know what it is)

I also had this idea and made a basic engine but then ran into a few problems.

First rotating is hard

second layering also hard

If you can do it that’s cool!

Heres the thing I made