Home › Forums › Puzzles › Seeking an efficient way to sync dynamic textures in Verge3D by using puzzles.
- This topic has 7 replies, 3 voices, and was last updated 2 weeks ago by
gee_lau2000.
-
AuthorPosts
-
2026-03-13 at 9:34 am #86540
gee_lau2000
CustomerHello everyone! I would be very grateful if someone could help me solve the following issue.
As shown in the attached reference movie, when I press the ‘L’ key, the number on the large square changes from ‘5’ to ‘2’, and the glowing number ‘5’ in the small circle on the right also changes to ‘2’. This logic follows for other numbers as well.
I am aware that I could use ‘Assign Material’ or ‘Replace Material’ puzzles to achieve this purpose. However, since the actual project involves more than just numbers 1–9 (there are dozens of sets), using material swapping feels very inefficient.
Could anyone suggest a better technique for this? Alternatively, is there a specific Verge3D demo file that demonstrates a similar workflow I could study? Thank you!
-
This topic was modified 1 month, 2 weeks ago by
gee_lau2000.
Attachments:
2026-03-13 at 2:57 pm #86544
xeonCustomerI would just use a sprite sheet, a single material and the control the numbers on your objects using UVs
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2026-03-14 at 3:30 am #86545
xeonCustomerHere is a Blend file that shows you how to use one sprite map for the circles and squares.
I am not sure what your logic is but changing of the value within the object can be as simple as giving it a new UV value.Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2026-03-15 at 6:25 am #86553
visualizerParticipantEven I think sprite sheet method can solve this issue.
2026-03-19 at 1:44 am #86644gee_lau2000
CustomerHello xeon,
I appreciate your advice. I’ve checked out your sprite sheet tutorial, but I found it a little difficult to follow…
2026-03-19 at 3:47 pm #86685
xeonCustomerDid you download the sample Blend file I provided?
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2026-03-19 at 4:51 pm #86686
xeonCustomerHere is a link to a simple implementation: https://v3d.net/1fk3
Here is a link to the project file: https://v3d.net/1fguPlease note…I don’t understand the full logic of your movie file…so I just did something to get you close and you should be able to work out the rest.
The sprite sheet is just a grid, a square image file based on the power of two. So you do a count of how many characters you need. In this case I did 0-9 so I needed 10 squares. 2^3 (2x2x2=8) so thats too few… 2^4 (2x2x2x2=16) this is the grid I need to get 10 items.
So then comes resolution…you will want a power of 2 image size, 512×512, 1024×1024, 2048×2048 etc. I chose 1024×1024. This means that the grid would be a 4×4 (16 squares), or 256×256 grid cell size. You can then use your favorite image editor to create the colors and numbers as shown in the number.webp file. There is also a layered Affinity file there if you use Affinity.
Once you do that in your blender file you will assign all the objects a Material that has the image node as number.web. When you assign this to a plane all the numbers will be mapped to a single plane object. Select an object and edit its UV. Since the this is a. 4×4 grid and the original map is 1×1. You need to scale the UV to 0.25% of what is currently is. This will set the UV map size to match the 256×256 grid cell. Next you need to position it. You can do this by moving each vertice or by moving it by .25 or .125 to get it into a the desired position for a given number. You will repeat this process for each object plane. This allows you to use one map with many different characters.
-
This reply was modified 1 month, 1 week ago by
xeon.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2026-04-15 at 10:59 am #86963gee_lau2000
CustomerHi xeon
I’m truly grateful for everything you’ve done and for providing these instructional materials. I’m starting to get a clear grasp of the logic behind these operations. I will try to achieve my goals based on your detailed explanations. Thank you very much!
-
This topic was modified 1 month, 2 weeks ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
