Tagged: puzzles
- This topic has 4 replies, 3 voices, and was last updated 2 years ago by
alissa.
-
AuthorPosts
-
2023-10-22 at 6:50 pm #67809
alissa
ParticipantHey, I am really new at verge3D and currently trying to get an object to hide when clicked and show again when clicked again.(showing outlines while hovering over the object while it’s hidden)
The problem is that once the object is hidden I can’t get it to show again.
Does someone know how it could fix this?Appreciate any help:)
2023-10-22 at 7:02 pm #67810kdv
ParticipantYou can’t click or hover over hidden objects.
when clickedandwhen hoveredwork with visible objects only. You should click some visible object or html button to show the hidden one.Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-10-23 at 6:31 pm #67855alissa
ParticipantThank you! Also not with emptys, right?
Another thing I was trying to do, is changing through a list of textures of an object by clicking on the object itself. Do you know a way to do that?2023-10-23 at 8:28 pm #67857
xeonCustomerNo, empties are a special sort of object that you are not going to have access to for WhenClicked or WhenHovered.
You have several methods open to you when trying to change textures. It will depend on your particular use case.
If you have a button and you want you have texture on it that says “on” and when you click it…you want it to say “off”. Then one way is to create one image that has both the on label and the off label. You will can then control the location of the mapping by using a value node. You will use the material puzzle Set Value in Material to the cooresponding value you need for off or on.
Another way to do the same thing is to have materials. You will need three objects: your button and two planes. Assign your On material to Plane 1 and your Off material to Plane 2.
Then you can use the assign material button inside your WhenClicked. Be sure to place Plane 1 and Plane 2 out of camera view.There are some other options as well.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2023-10-24 at 8:04 pm #67895alissa
ParticipantOkay thank you, I will try to do it later.
-
AuthorPosts
- You must be logged in to reply to this topic.
