Home › Forums › Graphics / Blender › clickable objects behind other objects
- This topic has 6 replies, 3 voices, and was last updated 4 years, 5 months ago by Yuri Kovelenov.
-
AuthorPosts
-
2020-07-21 at 12:34 pm #30402michael90gParticipant
hi, i have a small issue when using clickable objects, i have parented some buttons to a camera which acts as buttons, but when they come behind other objetcs they are not clickable, even when they are set to render above everything else, is there a fix for this?
2020-07-21 at 1:04 pm #30409Yuri KovelenovStaffHi,
Try moving your button objects as closer to the camera eye as possible, so that they never go behind any objects.
Alternatively, you can use HTML-based UI.
https://www.soft8soft.com/docs/manual/en/introduction/HTML-based-user-interfaces.html2020-07-21 at 1:06 pm #30410Al SandeCustomerI did this in my “Heli Ride” project (in projects) and had my “clickable objects” just positioned in front of the mostly-transparent “legend” that I made to show where to click.
I did a screenshot of a what my setup looks like. In this project I had 4 cameras so duplicated this setup 4 times; then the user can just click on a camera to change views. The puzzles I used are also shown in the project folder. All object (camera, transparency, clickable objects) are all selected so you can see all of the components.
I did have to mess with it a bit (and it could still use some tweaking) to make sure the “click targets” were actually in front of the legend a bit; it’s still possible to miss it if the click isn’t just right.
I hope this helps a bit…
Al
2020-07-22 at 6:55 am #30449michael90gParticipantok thanks, but moving them closer to the camera forces me to increase near clipping, which have negative effects on intersecting meshes (stuttering and flickering)
but seams to be the only solution if not html based ui then, will try and find a sweet spot for this solution.Hi,
Try moving your button objects as closer to the camera eye as possible, so that they never go behind any objects.
Alternatively, you can use HTML-based UI. https://www.soft8soft.com/docs/manual/en/introduction/HTML-based-user-interfaces.html2020-07-22 at 6:58 am #30450michael90gParticipantseems like the solution, thanks
I did this in my “Heli Ride” project (in projects) and had my “clickable objects” just positioned in front of the mostly-transparent “legend” that I made to show where to click.
I did a screenshot of a what my setup looks like. In this project I had 4 cameras so duplicated this setup 4 times; then the user can just click on a camera to change views. The puzzles I used are also shown in the project folder. All object (camera, transparency, clickable objects) are all selected so you can see all of the components.
I did have to mess with it a bit (and it could still use some tweaking) to make sure the “click targets” were actually in front of the legend a bit; it’s still possible to miss it if the click isn’t just right.
I hope this helps a bit…
Al2020-07-22 at 1:04 pm #30464Al SandeCustomerGlad to be able to help out… I’m a bit of a newbie at this end of it but am learning more as I find the time to experiment with this very interesting application.
2020-07-22 at 2:34 pm #30469Yuri KovelenovStaff -
AuthorPosts
- You must be logged in to reply to this topic.