Jump to content

MCWrang

Limited Member
  • Posts

    6
  • Joined

  • Last visited

MCWrang's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. These are files that we receive from clients in the mining industry, though I'm not entirely sure which software is used to export the image and grf file. Apart from the first 3 lines (Position X, Z, Y) the next 8 lines are unknown to me. The two number preceding each coordinate point look to be the pixel dimensions based off a 0,0 origin. Since we often get multitudes of these files, I'm hoping there's a way to parse the grf file for just those 4 coordinate points in order to map a plane in C4D while ignoring the rest of the values in the file. It's been a crazy busy week, so apologies for only circling back to this now!
  2. Hi C4D Community! I work with a lot of spatially accurate client data, and a very time consuming process involves the creation of image planes that have specific coordinates affiliated with the image. I currently use the Image2Plane plugin for the quick generation of image planes, but I'm really looking for something that goes one step further and positions the plane according to a separate georeferenced coordinate file. Does such a thing exist? I've attached a sample of the type of data that we get, where we receive an image (.png) and it's paired coordinate file (.grf). The .grf file contains the 4-point coordinates for each corner of the image. The hope is that this information can be extracted to create the plane for the image to be mapped to. Currently I am opening each .grf file in a text editor, copying each coordinate location and creating a null in C4D that I ultimately snap the corners of a plane to. This very quickly becomes a tedious task when I receive more than 5 of these. The coordinates in this particular example are at the bottom of the .grf file: Corner Point 1: 510620.0000000000 (X) 4765020.0000000000 (Z) 2000.0000000000 (Y) Corner Point 2: 510620.0000000000 (X) 4765020.0000000000 (Z) 1350.0000000000 (Y) Corner Point 3: 512613.0000000000 (X) 4766170.0000000000 (Z) 2000.0000000000 (Y) Corner Point 4: 512613.0000000000 (X) 4766170.0000000000 (Z) 1350.0000000000 (Y) 510620 4765020 2000.2081279078902 1.0682398970457267 1.0680069882032523 0.86614939346789588 0.49978514926647288 0.0001810190195535776 1.0395278653493886e-16 1.8191737643614301e-16 1 0.00 0.00 510620.0000000000 4765020.0000000000 2000.0000000000 1 0.00 609.00 510620.0000000000 4765020.0000000000 1350.0000000000 1 2154.00 0.78 512613.0000000000 4766170.0000000000 2000.0000000000 1 2154.00 609.00 512613.0000000000 4766170.0000000000 1350.0000000000 1 Any thoughts would be greatly appreciated in guiding me toward a solution. Thanks! IP4900N.grf
×
×
  • Create New...