LDraw.org Discussion Forums
[LDView] Wrong display after rendering in POV-Ray - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: All Other Programs. (https://forums.ldraw.org/forum-26.html)
+--- Thread: [LDView] Wrong display after rendering in POV-Ray (/thread-24237.html)



Wrong display after rendering in POV-Ray - Manfred Schäfer - 2020-10-09

Hello,

I have a problem rendering in POV-Ray.
I load an ldr file into LDView, it looks like this

[attachment=5785]

In LDView the value for latitude = 0 and the value for longitude = 45 were set.
After exporting as a pov file and rendering it looks like this

[attachment=5786]

I changed the lighting values in the pov file, but I can't get to the first picture. I always have this shadow.
What do i have to change? Can someone help me?
Thank you.


Regards

Manfred


RE: Wrong display after rendering in POV-Ray - Travis Cobbs - 2020-10-10

By default, LDView has a light pointing directly at the model from the eye point. It also doesn't support shadows at all. POV-Ray requires lights, and obviously the default lights generated by LDView aren't working well here. You'll have to move at least one of them to be in a more reasonable location in order. I would expect the viewpoint to be 0 latitude and 0 longitude to see the front of the face. If that is the case, then if you update one of the lights to be in the following location, it should illuminate the front of the face:

<0*LDXRadius,-1*LDXRadius,-5*LDXRadius> + LDXCenter


RE: Wrong display after rendering in POV-Ray - Leonardo Gonzalez - 2020-10-10

Alternatively, put a light source just above your camera in POV-Ray:
Code:
light_source {   
    LDXCameraLoc + <0,LDXMinY,0>                
    color rgb 1                                   
}

or right at the camera location (although you might get a lot of glare from it):
Code:
light_source {   
    LDXCameraLoc               
    color rgb 1                                   
}



RE: Wrong display after rendering in POV-Ray - Manfred Schäfer - 2020-10-10

Thank you for your reply. I will test your solutions and send feedback here as soon as possible.

greetings

Manfred