LDraw.org Discussion Forums
[LDView] Exported .POV is mirrored/reversed - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: General (https://forums.ldraw.org/forum-12.html)
+--- Forum: Help (https://forums.ldraw.org/forum-13.html)
+--- Thread: [LDView] Exported .POV is mirrored/reversed (/thread-23958.html)



Exported .POV is mirrored/reversed - Jordan Cormack - 2020-03-28

Hi,

I am a new user of LDView, and I have been exporting .POV files from LDView to render in POV-Ray. When I view a part in LDView it looks correct, but the POV-Ray render shows a mirror image. I have seen an option in the POV Export Options called 'Fix mirrored stud logos' which doesn't seem to help at all.

Part 54384 in LDView
[Image: 7OQGDRm.jpg]

Part 54384 after POV-Ray render
[Image: 6hc1HkV.png]

Any suggestions to help would be apprieciated!


RE: Exported .POV is mirrored/reversed - Jordan Cormack - 2020-03-28

In the .POV file the LDXCamAspect is being set to <-1,0,0>. Changing this to <1,0,0> fixes the problem.

Code:
// Camera
#ifndef (LDXSkipCamera)
camera {
#declare LDXCamAspect = image_width/image_height;
location LDXCameraLoc
sky LDXCameraSky
right LDXCamAspect * < -1,0,0 >
look_at LDXCameraLookAt
angle 74.114571
}
#end



RE: Exported .POV is mirrored/reversed - Travis Cobbs - 2020-03-28

(2020-03-28, 14:53)Jordan Cormack Wrote: In the .POV file the LDXCamAspect is being set to <-1,0,0>. Changing this to <1,0,0> fixes the problem.

Code:
// Camera
#ifndef (LDXSkipCamera)
camera {
#declare LDXCamAspect = image_width/image_height;
location LDXCameraLoc
sky LDXCameraSky
right LDXCamAspect * < -1,0,0 >
look_at LDXCameraLookAt
angle 74.114571
}
#end

I'm not having any luck reproducing the problem. Note that LDXCamAspect is set to image_width/image_height, but right is set to that * < -1,0,0 >. That -1 is intentional. Can you tell me what steps you took in LDView? I did the following, without producing the problem:

  1. Open 54384.dat
  2. Make sure LDView is set to Examine Mode
  3. Enable Latitude/Longitude Rotation
  4. View->Viewing Angles->Specify Latitude/Longitude
  5. Enter 90 for both latitude and longitude
  6. Export to POV
I don't have LGEO enabled because I don't have that set up right now, but I wouldn't expect that to cause the problem. If it does, I think it means that the LGEO version of 54384 is broken. Can you test with the attached wing_test.ldr file (which has 54384.dat and 3001.dat next to each other) and then see what happens? If the stud logos are also reversed on 3001.dat, then LDView is doing something wrong. If 54384 is flipped, and 3001 isn't, then something is probably wrong with the 54384 LGEO part that you have.