Another bitmap component question

Forums: Another bitmap component question
Forum for OctaneRender Lua scripting examples, discussion and support.

Another bitmap component question

Postby MB » Fri Aug 25, 2023 5:21 pm

MB Fri Aug 25, 2023 5:21 pm
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.
bmp size shot.png
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
MB
Licensed Customer
Licensed Customer
 
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.

Re: Another bitmap component question

Postby jobigoud » Sat Aug 26, 2023 9:39 am

jobigoud Sat Aug 26, 2023 9:39 am
I'm curious if this is an issue related to High DPI, are you running at 150%? (Windows Settings - Scale and layout).
User avatar
jobigoud
OctaneRender Team
OctaneRender Team
 
Posts: 230
Joined: Sat Aug 15, 2015 1:28 pm

Re: Another bitmap component question

Postby MB » Sat Aug 26, 2023 8:48 pm

MB Sat Aug 26, 2023 8:48 pm
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
User avatar
MB
Licensed Customer
Licensed Customer
 
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 22 guests

Sat Apr 27, 2024 9:05 pm [ UTC ]