fds icon indicating copy to clipboard operation
fds copied to clipboard

TEXTURE_ORIGIN only positive coordinates allowed

Open monidimoni opened this issue 3 years ago • 4 comments

Hello,

As reported in this discussion: https://groups.google.com/g/fds-smv/c/__28qcusHQY/m/-O7QOk0TBAAJ

I realised that FDS doesn't seem to read the negative sign of the coordinates of the TEXTURE_ORIGIN (LL corner) (e.g. it assumes they are positive even when entered as negative). This results in wrong orientation of the texture map, which in my test case is a basemap (satellite image).

I am attaching the input file and texture map for your convenience. calenzano test_basemap_Mesh_final.fds.txt

monidimoni avatar Mar 24 '21 16:03 monidimoni

basemap_0072 This is what I see

mcgratta avatar Mar 24 '21 16:03 mcgratta

Yes.

If you check the basemap image has been rotated anticlockwise by 90° degrees. Take the stadium and the road crossing from north west to south east in the original jpg as a reference.

If you change the TEXTURE_ORIGIN to any of the following X-Y combinations (no modification needed on the z): -50, -50, -50, 50, 50, -50 50, 50

Nothing changes in the final output, whereas I would expect a rotation of the texture map while changing the TEXTURE_ORIGIN. That's why I guess FDS allows only positive TEXTURE_ORIGIN and reads always 50, 50 regardless of the sign minus.

(in order to visualise a full map at the base of my mesh I manually adjust the obstacle dimensions in the SMV file, so that OBST dimensions in SMV are equal to those imputed in my FDS file).

monidimoni avatar Mar 24 '21 17:03 monidimoni

The TEXTURE_WIDTH and TEXTURE_HEIGHT parameters in your input file are the characteristic lengths of your jpeg image in meters. Your image appears to be several kilometers in each dimension but your fds input file is only covering a 16m x 40 m portion of this image. Assuming smokeview covered the correct subset of this image onto your simulation domain, the resulting image would just be a blur. If you want to use a texture map with the same case, you'll need to get another, higher resolution image or increase the size of you simulation domain.

gforney avatar Mar 24 '21 20:03 gforney

I know I put those dimensions randamly just to check the effect. I now tried with a new texture attached.

Real dimensions: Width = 200m, height 100 m. the yellow dot is my test "source". The other cube is a test obstacle i put in the positive X-Y coordinates.

the LL X-Y coordinate is= 50,-50.

However i don't get the desired output (see screenshot). If I change the TEXTURE_ORIGIN, I do get a rotation this time, but I don't manage to obtain the desired output. Am I getting the Width and height wrong? Thank you!

ouput

test_basemap_Mesh_final2.fds.txt Cattura

monidimoni avatar Mar 25 '21 16:03 monidimoni