Author Topic: Getting 2d coordinates of point in scene on image  (Read 2248 times)

2020-08-02, 19:58:11

mpashnin

  • Users
  • *
  • Posts: 4
    • View Profile
Dear community, I ask you for advice

I have a scene with a set of spheriacal 360 cameras in there. The panoramas will used in 3d tour and i need to get some data to make realistic transition between views.
Exactly, i need to get coordinates (x,y) of point at rendered image, witch will be projection of point in 3d scene. So it will be set of points in 3d scene and set of coords for each rendered panorama.

I think, i can get needed data from camera via maxscript, but i still haven't found any usefull information.

Hope for any help, guys!

2020-08-03, 15:00:05
Reply #1

mpashnin

  • Users
  • *
  • Posts: 4
    • View Profile
To make it more clear, i'll give an example. 4 points in scene should be presented as pairs of values (pixel offset)

img-1 1000*500px
1 — 837; 202
2 — 910; 219
3 — 910; 267
4 — 837; 278

img-2 1000*500px
1 — 622; 208
2 — 754; 191
3 — 754; 286
4 — 622; 275

2020-08-03, 15:59:17
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13790
  • Marcin
    • View Profile
I am sorry, but I don't understand this. Do you simply mean the positions of various pixels in the rendered image? If so, you can just right-click in the Corona VFB and it will show you the X and Y positions.
If it's about something else, please explain further.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-08-03, 21:35:45
Reply #3

mpashnin

  • Users
  • *
  • Posts: 4
    • View Profile
I need to get these coordinates on rendered images (or on equirectangular representation of scene) for about 30 points in scene. For each of 5 cameras it will be different, because of relative position. Can i get access to spherical panorama before rendering process?
« Last Edit: 2020-08-04, 07:35:38 by mpashnin »

2020-08-04, 15:45:07
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13790
  • Marcin
    • View Profile
Sorry, but I still don't understand. Can you tell me what exactly your end goal is?

Additionally, these sentences seem to be contradicting each other:
I need to get these coordinates on rendered images

Can i get access to spherical panorama before rendering process?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-08-04, 17:27:28
Reply #5

mpashnin

  • Users
  • *
  • Posts: 4
    • View Profile
Thank you for your patience, Maru!
I need to get coordinates to make morphing between set of panoramas. Many control points, many sperical cameras, if possible without rendering
Here is a link to the morphing tool — https://github.com/district10/texture-morpher demos will make idea more clear!

2020-08-04, 17:47:38
Reply #6

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13790
  • Marcin
    • View Profile
Maybe you can track those points in some other software? I know that After Effects has tracking, and as far as I know Blender too (which is free).
Other than that, I don't think I can help.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us