- This topic has 8 replies, 2 voices, and was last updated 4 years, 7 months ago by NaxosCG.
-
AuthorPosts
-
2020-04-09 at 9:08 am #25534NaxosCGCustomer
Hello folks,
I’m now starting my very first real customer project with verge3D, yeehaa !I’m a 3D guy, not a code one, so i have a tech question :
The project is a billards 8pool table with several color choices : frame, balls, map and so on, with each time several colors (10-15).
A coder will code the website, and we have for each choice a jpg small vignette picture as a button, with each time a unique ID, like “Frame_red”, or “BallsA_yellow” for ex.I saw the html – verge3D tutorials and i know that i may use the html “on event click for element ID_xxx” command to know what button were clicked and change my 3D in that way.
My question is, if i have 5 different parts to change in 15 possible colors, do i have to create 75 times this “on event click for element ID_xxx” to test each ID ?
Or is there a better way to do so, like – for ex – look what kind of button were clicked (parsing the first part of ID, and second part, and so on) ?
Will the verge3D support and behave fast if i have 75, 150, 300 tests for unique IDs ?
Thanks for help.
Best regards.Here is the existing website where we will replace the PNG-layered pictures into full Verge3D :
https://configurateur.billard-toulet.com/"1+1=3... for large values of 1"
2020-04-09 at 12:43 pm #25558Mikhail LuzyaninStaffMy question is, if i have 5 different parts to change in 15 possible colors, do i have to create 75 times this “on event click for element ID_xxx” to test each ID ?
In most cases yes. You can try to deal with a complex naming system, but to be sure batter to create 75 unique events.
Co-founder and lead graphics specialist at Soft8Soft.
2020-04-09 at 12:53 pm #25559NaxosCGCustomerAs far as i’m not a code guy, but i can understand logic and somehow algorythics, i think i’ll go for “hard” explicit system : testing all IDs.
Just i hope it will not slow down a lot the 3D app if i need to test 75-100 IDs.
"1+1=3... for large values of 1"
2020-04-09 at 1:03 pm #25561Mikhail LuzyaninStaffThis will not influence on performance I think.
Co-founder and lead graphics specialist at Soft8Soft.
2020-04-09 at 1:27 pm #25563NaxosCGCustomerif it stays under the second to change a color, that is ok for my client.
"1+1=3... for large values of 1"
2020-04-09 at 1:53 pm #25564Mikhail LuzyaninStaffI hope no, but for sure need to make tests.
Co-founder and lead graphics specialist at Soft8Soft.
2020-04-09 at 1:58 pm #25565NaxosCGCustomerMaybe the genius that made the scooter example could give a trick here ?
Not sure to be able to understand the very complex puzzles system that comes with this scene.
"1+1=3... for large values of 1"
2020-04-09 at 2:04 pm #25566Mikhail LuzyaninStaffScooter demo is hardcoded. There’s a ton of when click event buttons. Each button do one thing, hide/show something or change a color of a carpaint or change a material of the seat. You can start with this basic tutorial.
Co-founder and lead graphics specialist at Soft8Soft.
2020-04-09 at 2:20 pm #25567NaxosCGCustomerok i’ll give a try, thank you.
"1+1=3... for large values of 1"
-
AuthorPosts
- You must be logged in to reply to this topic.