LDView Image cut off, OSMesa LDView


Image cut off, OSMesa LDView
#1
I'm having an issue with the OSMesa version of LDview that I can't replicate with Windows. Error is seen here:
https://library.ldraw.org/tracker/33210

Attached is the file. This was auto generated by the PT.

The ini values that the PT uses are:
Code:
[General]
Texmaps=1
AutoCrop=1
BackgroundColor3=0xFFFFFF
BFC=0
ConditionalHighlights=1
FOV=0.1
LineSmoothing=1
MemoryUsage=0
ProcessLDConfig=1
SaveAlpha=1
SaveZoomToFit=1
SeamWidth=0
ShowHighlightLines=1
SubduedLighting=1
UseQualityStuds=1
UseSpecular=0
DebugLevel=0
CheckPartTracker=0
LightVector=-1,1,1
TextureStuds=0

Additionally the commandline uses:
-SaveWidth=300 -SaveHeight=300 -SaveSnapshot=<save_path>/part.png


Attached Files
.mpd   69857.mpd (Size: 938.96 KB / Downloads: 1)
Reply
RE: Image cut off, OSMesa LDView
#2
(2023-12-03, 17:41)Orion Pobursky Wrote: I'm having an issue with the OSMesa version of LDview that I can't replicate with Windows. Error is seen here:
https://library.ldraw.org/tracker/33210

Attached is the file. This was auto generated by the PT.

The ini values that the PT uses are:
Code:
[General]
Texmaps=1
AutoCrop=1
BackgroundColor3=0xFFFFFF
BFC=0
ConditionalHighlights=1
FOV=0.1
LineSmoothing=1
MemoryUsage=0
ProcessLDConfig=1
SaveAlpha=1
SaveZoomToFit=1
SeamWidth=0
ShowHighlightLines=1
SubduedLighting=1
UseQualityStuds=1
UseSpecular=0
DebugLevel=0
CheckPartTracker=0
LightVector=-1,1,1
TextureStuds=0

Additionally the commandline uses:
-SaveWidth=300 -SaveHeight=300 -SaveSnapshot=<save_path>/part.png

I have no idea what would cause it to do that, although I do have a suggested change to the source code used to build the tracker's copy of ldview that would probably fix the problem. The getClipRadius function in LDrawModelViewer.cpp has a line of code that looks like this:

Code:
        clipRadius = clipSize / 1.45f;

Changing 1.45f to a lower value (maybe even less than 1.0f) would probably fix the problem. It doesn't really explain why the problem is happening in the first place, since the 1.45 value is in fact intended to be conservative. But it should in theory fix the problem.
Reply
RE: Image cut off, OSMesa LDView
#3
I changed it to 1.0f and that fixed it. Thanks.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)