Another bitmap component question

Forum for OctaneRender Lua scripting examples, discussion and support.
Post Reply
User avatar
MB
Licensed Customer
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.
Contact:

Size of bitmap does not seem to display scaled on screen as 1 bitmap pixel per screen pixel, it would be nice if it did.
Realestate on forms is tight and it would be good if these were not oversized.


Here is a 512x512 image showing the image at 1:1 in the Octane viewport, similarly next to it is the image in MS Photo,
and next to that is a Lua window with a bitmap component from which the previous image in MS Photo was saved. Note how much larger it is in the Lua bitmap component.And a bit fuzzy too.
Th lua bitmap sizes itself larger than the same image in other apps, including Octane standalone.
Th lua bitmap sizes itself larger than the same image in other apps, including Octane standalone.
Can I control this?

Thanks, Mark
Windows 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
User avatar
jobigoud
OctaneRender Team
Posts: 243
Joined: Sat Aug 15, 2015 1:28 pm

I'm curious if this is an issue related to High DPI, are you running at 150%? (Windows Settings - Scale and layout).
User avatar
MB
Licensed Customer
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.
Contact:

jobigoud,

Well, you seem to know what you're talking about :-).

Yes, under display settings scale was set to 150% (recommended) by whom I don't know (Nvidia or Microsoft).
I have a 3840 x 2160, 60hz monitor, resolution is set to these values, scale is set to 150%.
Setting 'Scale' to 100% of course does not fix the issue as it is a problem of proportions.
It's a long time since I have had to deal with this in code myself, but I do remember there is something
relatively simple that can be done around reading the windows display graphics configuration and acting accordingly.

best

Mark
Windows 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
Post Reply

Return to “Lua Scripting”