Home › Forums › Graphics / Blender › Objects need to change using dropdown.
- This topic has 4 replies, 2 voices, and was last updated 6 months, 3 weeks ago by joeb.
-
AuthorPosts
-
2024-05-28 at 3:55 am #74403joebParticipant
I have no problem changing materials on objects. I need to do both.
To be able to change the object.
Do I create separate gtlf files and change the scene?
or
Do I create 30 objects on top of each other and do this but need a few details on how to create the correct puzzles?
Then when the user picks any of the dropdowns that represent object changes I will be wanting to change that object materials with a second dropdown. Hopefully what I have done before will just be added in my puzzles.
Thanks in advance!2024-05-28 at 4:14 am #74404xeonCustomerThe decision of how best to do this is based on your apps memory size, the poly count of your objects, texture size, device limitation’s etc.
30 object might be 30 triangles or it might be 30 million.
On the light end of the spectrum you could simply hide all your objects at start and show them on selection.
Alternatively, for larger sets you can create on scene with your mats lights and camera and append and close gltfs as needed.
Depending on your material texture sizes you might have icon sizes in the main file but pull up the larger file as needed per gltf.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2024-05-28 at 2:51 pm #74417joebParticipantThanks. I will try the hide and select items first. 2 questions.
What demo will have the hide and view objects so I can see if I can make that work first?
If I do this I am using someone else’s models in Blender. How to reduce triangles?Is there a good replace gltfs demo I can see?
2024-05-28 at 4:09 pm #74418xeonCustomerThe below image is a super simplified way to use hide/show.
Create a scene with a cube and a sphere, so that each object is outside of the other, no interference. Add the below puzzle and you can click on the sphere and see how it hides the cube.With respect to loading and unloading a gltf…take a look at https://cdn.soft8soft.com/demo_pre/blender/load_unload/load_unload.html
Attachments:
You must be logged in to view attached files.Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2024-05-31 at 2:16 am #74447joebParticipantThanks for that information.
I tried the first idea but I need to have them all in the same place.
I then tried the second idea and changed the nightlight.blend to have my model instead of the nightlight model and got that to work by using 15Plus_base and in the upload.blend file I used 15Plus_place.
When I click on the drop down for nightlight I get my model.In the puzzles below. When I change the nightlight to my file name 15Plus it doesn’t work.
I took the nightlight.blend file and saved it also as 15Plus.blend and exported them. It also never shows up in that drop down with my name even though I changed it in puzzles and also left nightlight there as well.Last question then I will be using woocommerce with verge3d plugin. Should I get the drop down to work or because I am using woocommerce I would think I need to something else in the puzzles. I understand I need the connection puzzles for woo but need help understanding what I need to use there to get my woo dropdown to work. Or is this just not possible.
I also will have several more materials to add to the object and will be using cyberfox’s plugin canvas editor for more materials and images and text.
I have a workaround also and that would be to have a page in woo that would be those 30 objects as images with a link to a product that then just has material changes.
Thanks for all of your help.
Attachments:
You must be logged in to view attached files. -
AuthorPosts
- You must be logged in to reply to this topic.