2

I am trying to build a visitors tour with Unity 3D. I have panaromic picture of bedrooms within an hotel and I would like to add points (hot spots) to my pictures that leads to another picture.

The problem is that I want to add this point dynamically via a backend, and I can't find a way to achieve that in Unity.

LordWilmore
  • 2,829
  • 2
  • 25
  • 30
Meher
  • 35
  • 5
  • Enlighten us about what you tried thus-far by editing it into your question and not in comments!... its called "showing effort" and is a good medicine against down-voters. Also, on your quest to solve it by explaining you might end-up getting errors... that's where SO is at your service to help you with! – ZF007 Mar 06 '18 at 11:42
  • I can't find solution about it that is why i didnt post anything – Meher Mar 06 '18 at 13:19
  • any idea how to solve it now please ?? – Hoby Mar 01 '19 at 18:58
  • @Hoby please check my attempt to answer this question. If something is not clear let me know and I will try to help. – Dave Mar 03 '19 at 16:25
  • Please show an example of what you want. – Hamid Yusifli Mar 04 '19 at 17:59
  • @Hoby This question is far to broad and I would immediately mark it as `offtopic - Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.` if the bounty wouldn't hinder me ... – derHugo Mar 07 '19 at 08:45

1 Answers1

2

I will try to answer this question.

Unity has a XYZ coordinate system that can be translated to real world. I would measure real distances to these points (from the center where you took your picture) in your location/room and send these coordinates via backend to Unity3D client.

In Unity you can create Vector3 positions or directions based on coordinates you sent before. Use these positions/directions to instantiate 'hotspots' objects prefabs in right positions and directions. It might be necessary to adjust the scale/units to get the right result.

Once you have your 'hotspot' objects in place add a script to them that will load new scene (on click) with another location/image and repeat the process.

This is a very brief suggestion on how to do it. The code would be quite simple.

Dave
  • 2,684
  • 2
  • 21
  • 38