Page 2 of 4

Re: LuxCore standalone questions

Posted: Fri Mar 08, 2019 5:32 am
by Fox
I share my custom build, it's made for 3840 x 2160 pix screen size.
Bigger font and few windows open up little bigger by default.
If you are in TOOL_IMAGE_VIEW mode, then the UI response to scroll bars is very fast now, the film refreshes after 30 sec, (it was 5 sec).
Default render resolution is now 6000 x 4500, i was not able to make it read from cfg file.

March 8 build.
https://www.upload.ee/files/9669280/Lux ... en.7z.html

Re: LuxCore standalone questions

Posted: Wed Mar 13, 2019 5:39 pm
by Fox
Some of the data fields are 0 in LuxCore ui -> statistics window -> intersection devices used.
Why is this?

Re: LuxCore standalone questions

Posted: Wed Mar 13, 2019 7:45 pm
by Dade
Fox wrote: ↑Wed Mar 13, 2019 5:39 pm Some of the data fields are 0 in LuxCore ui -> statistics window -> intersection devices used.
Why is this?
Which one ? Screen shot ?

Re: LuxCore standalone questions

Posted: Wed Mar 13, 2019 8:01 pm
by Fox
I changed the Mb to Gb, but the memory use value did no come to visible.
The default ui was also 0M (now 0G)
Screenshot.jpg

Re: LuxCore standalone questions

Posted: Wed Mar 13, 2019 10:04 pm
by Dade
Fox wrote: ↑Wed Mar 13, 2019 8:01 pm I changed the Mb to Gb, but the memory use value did no come to visible.
The default ui was also 0M (now 0G)
Screenshot.jpg
Ok, it is normal, the number is truncated, it is printed without the decimal part. You can use boost::format() to print the number with some decimals.

Re: LuxCore standalone questions

Posted: Thu Mar 28, 2019 11:24 pm
by Fox
investigating the possibility of changing luxcore ui title bar icon.
I did edit the win32_window.c file.

On top i add line:

Code: Select all

#include "GLFW_ICON.rc"
Somewhere in the middle of win32_window.c file:

Code: Select all

    // Load user-provided icon if available
    wc.hIcon = LoadIcon( wc.hInstance, "GLFW_ICON" ); // Load default icon
    if (!wc.hIcon)
    {
        // No user-provided icon found, load default icon
        wc.hIcon = LoadIcon( NULL, IDI_WINLOGO ); // Load default icon
    }
In the GLFW_ICON.rc file i have one line

Code: Select all

GLFW_ICON ICON "GLFW_ICON.ico"
Few errors came up related to GLFW_ICON.rc file :roll:

syntax error:
identifier 'ICON'
syntax error:
';'
syntax error:
'string'
syntax error: missing ')' before identifier
syntax error: ')'
error C2081: 'uintptr_t': name in formal parameter list illegal
syntax error: ')
syntax error: missing '{' before '
--------------------
EDIT

I got it compiled, but icon did not show up.
I may have to do something like in this tutorial http://discourse.glfw.org/t/set-window- ... gl-3-1/863
Or i have to get ImGuiIO& io = ImGui::GetIO(); to build texture, like it does with text font.

Re: LuxCore standalone questions

Posted: Sat Mar 30, 2019 8:10 pm
by Fox
:D Got the 200 x 200 pix icon compiled in exe. Though the console icon looks with much reduced resolution and or alpha shades (maybe the old GLFW does it in bad order)
LuxCoreUi Icon.png
It works like that:
You have your icon file luxcorerendericon.ico and rc file luxcorerendericonresourcefile.rc
Rc file has single line:

Code: Select all

GLFW_ICON ICON DISCARDABLE "luxcorerendericon.ico"
Move files luxcorerendericon.ico and luxcorerendericonresourcefile.rc to 2 folders in below:
\LuxCore\samples\luxcoreconsole
\LuxCore\samples\luxcoreui

Edit CMakeLists.txt files in both folders, that line which starts with "add_executable"

In luxcoreconsole CMakeLists.txt paste:

Code: Select all

add_executable(luxcoreconsole ${LUXCORECONSOLE_SRCS} ${CMAKE_CURRENT_SOURCE_DIR}/luxcorerendericonresourcefile.rc)
In luxcoreui CMakeLists.txt paste:

Code: Select all

add_executable(luxcoreui ${LUXCOREUI_SRCS} ${CMAKE_CURRENT_SOURCE_DIR}/luxcorerendericonresourcefile.rc)

Re: LuxCore standalone questions

Posted: Sun Mar 31, 2019 1:51 am
by Fox
I did joint / multi resolution icon (16, 20, 24, 28, 30, 31, 32, 40, 42, 47, 48, 56, 60, 63, 84, 186)
and the quality improved quite a bit.

It’s auto picking correct 60 pix icon for taskbar and 40 pix for window title bar.
The console window icon is stretched to 40 pix, but looks to be limited at some smaller res (maybe 16 to 32 or so). No issues with desktop icon at 120 pix.
LuxCoreRender icons2.png
LuxCoreRender desktop icon screenshot.png
LuxCoreRender desktop icon screenshot.png (21.22 KiB) Viewed 5520 times

Re: LuxCore standalone questions

Posted: Sun Mar 31, 2019 8:40 pm
by Fox

Re: LuxCore standalone questions

Posted: Mon Apr 01, 2019 7:13 am
by FarbigeWelt
Fox wrote: ↑Sun Mar 31, 2019 8:40 pm Short video of a ui.

https://youtu.be/EApN3QgorTE?t=80
Hi Fox,
Very cool work. Looks like I have to get your latest code.
Regards,
FarbigeWelt aka Quantenkristall