POV-Ray / povray

The Persistence of Vision Raytracer (POV-Ray)
https://www.povray.org/
GNU Affero General Public License v3.0
1.37k stars 282 forks source link

Texture mapping behaves differently from Windows #347

Open avaxman opened 6 years ago

avaxman commented 6 years ago

Running the same file on windows and osx gives different results, where the windows version is more "lively"---it seems like the osx version blends the texture with some default color, but I cannot figure out how.

File is as follow (sorry couldn't attach!)

Texture: https://www.dropbox.com/s/jts5hftzi17nx4u/paris_arc_middle.png?dl=0 povray: "

mesh2 { vertex_vectors { 4, <0.000000,0.000000,-0.5000000>, <4332.000000,0.000000,-0.5000000>, <4332.000000,2242.000000,-0.5000000>, <0.000000,2242.000000,-0.5000000>, } uv_vectors { 4, <0.000000,0.000000>, <1.000000,0.000000>, <1.000000,1.000000>, <0.000000,1.000000>, } texture_list { 1, texture{ pigment{ image_map{ png "paris_arc_middle.png" map_type 0 interpolate 4 } } finish { ambient 1.0 diffuse 0.0} } } face_indices { 2, <0,1,2>, 0 <2,3,0>, 0 } uv_indices { 2, <0,1,2> <2,3,0> } uv_mapping pigment { image_map {png "paris_arc_middle.png"} } } camera { orthographic location <2112,-600, 500> look_at <2112,1121,100> angle 30 right -3/1*x sky <0,0,1> } light_source { <2112,0,700> color <1.0,1.0,1.0> spotlight radius 3500 falloff 40 area_light <100, 0, 0>, <0, 0, 100>, 50,50 adaptive 1 jitter

point_at <2112,1121,00>} background { color rgb <1.0,1.0,1.0> } "

c-lipka commented 6 years ago

To provide any assistance, we need to know what versions you are using; please be as specific as you can.

Note that there is no official OS X version; there is a Linux version that just happens to work on Mac OS X, and there is at least one unofficial OS X port. If you're using the latter, please contact the author of that port instead.

If I should take a guess, I would suspect differences in gamma handling. Traditionally, Mac systems used a gamma of 1.8, while Windows and Linux systems (including OS X, as far as I know) tend to use a gamma of around 2.2; if you're using an unofficial OS X port, I wouldn't be surprised if it was still using a gamma value of 1.8 in certain pieces of code where all official versions are using a gamma value of 2.2 nowadays.

c-lipka commented 3 years ago

@avaxman Is this still an unsolved issue?