Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: mpashnin on 2020-08-02, 19:58:11

Title: Getting 2d coordinates of point in scene on image
Post by: mpashnin on 2020-08-02, 19:58:11
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!
Title: Re: Getting 2d coordinates of point in scene on image
Post by: mpashnin on 2020-08-03, 15:00:05
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
Title: Re: Getting 2d coordinates of point in scene on image
Post by: maru on 2020-08-03, 15:59:17
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.
Title: Re: Getting 2d coordinates of point in scene on image
Post by: mpashnin on 2020-08-03, 21:35:45
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?
Title: Re: Getting 2d coordinates of point in scene on image
Post by: maru on 2020-08-04, 15:45:07
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?
Title: Re: Getting 2d coordinates of point in scene on image
Post by: mpashnin on 2020-08-04, 17:27:28
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 (https://github.com/district10/texture-morpher) demos will make idea more clear!
Title: Re: Getting 2d coordinates of point in scene on image
Post by: maru on 2020-08-04, 17:47:38
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.