Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 15 12:26
    realityforge starred mikke89/RmlUi
  • Aug 15 04:44
    luckydu-henry starred mikke89/RmlUi
  • Aug 15 02:08
    jasmineamber starred mikke89/RmlUi
  • Aug 14 01:04
    danielcranston starred mikke89/RmlUi
  • Aug 13 20:33

    mikke89 on filter

    Update render interface and cac… Another take on the render inte… (compare)

  • Aug 13 19:08
    gdianaty starred mikke89/RmlUi
  • Aug 13 15:55
    Warhate starred mikke89/RmlUi
  • Aug 13 05:31
    jiangwei007 starred mikke89/RmlUi
  • Aug 12 22:28
    MttMustafa starred mikke89/RmlUi
  • Aug 12 09:56

    mikke89 on master

    Invader sample: Rename event li… (compare)

  • Aug 12 09:03
    mikke89 closed #342
  • Aug 12 09:03
    mikke89 locked #342
  • Aug 12 09:03
    mikke89 labeled #342
  • Aug 12 07:59
    YTN0 opened #342
  • Aug 12 00:08

    mikke89 on filter

    Update clang-format (cherry pi… Update render interface (compare)

  • Aug 11 20:21
    mikke89 commented #334
  • Aug 11 20:20

    mikke89 on master

    Improve .gitignore Improve load document and font … Merge pull request #334 from ho… (compare)

  • Aug 11 20:20
    mikke89 closed #334
  • Aug 11 20:20
    mikke89 labeled #334
  • Aug 11 19:17
    hobyst commented #334
Michael R. P. Ragazzon
@mikke89
The one in the sample does that, yes.
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
on windows/msys2 I have some issues with glew32 link, is normal ? it looks like cmake can't find the lib use glu32 not glw32
sdl2 and sfml samples can't compile with mingw64
Michael R. P. Ragazzon
@mikke89
Ugh, yeah, I've had a lot of trouble linking glew with CMake as well. What seems to be reliable for me is manually passing the paths to cmake. Eg. when calling CMake pass something like cmake <...> -DGLEW_INCLUDE_DIR=C:/msys64/mingw64/include/GL -DGLEW_LIBRARIES=C:/msys64/mingw64/lib/libglew32.dll.a
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
why it depends on GL ? why not only libsdl2?
and let libsdl take care of this
what I'm trying to do in to mix lite-xl.github.io wit rmlui and lua ( or wasm )
( + luajit )
Michael R. P. Ragazzon
@mikke89
@zygon.sisyphus:matrix.org Historically, SDL2 didn't have a way to render arbitrary geometry. However now that this is added just recently, this PR does exactly what you want: mikke89/RmlUi#252
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
THX
I think libsdl2/sfml can manage lowlevel gx api
and rmlui take care of layout / binding/ logic/...
it will help as crossplatform api
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
it will be nice to load all as one file ( like asar for electron)
rml/css/lua/resources/...
it can be an squashfs blob inside exe resource and delpoy as one static file
Michael R. P. Ragazzon
@mikke89
@zygon.sisyphus:matrix.org Appreciate the suggestion. I think abstractions such as those suggested here are better left to clients to implement themselves, or another library itself wrapping RmlUi. We try to be lightweight, and provide quite low-level abstractions that makes it easy to integrate into existing engines and frameworks. This would go against that philosophy.
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
true, it make sense to have another layer to provide this kind of features.
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
hi. i'm integrating rmlui into my engine, and i'm seeing that RenderGeometry() is called sometimes without a CompileGeometry() being called before for that geometry. reading the documentation it seems like this should not happen, am i missing something?
that is, i'm never returning null from CompileGeometry() yet RenderGeometry() is called
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
specifically, i'm seeing that when opening the "Element Info" window in the debugger and hovering the mouse on some element, it wants to draw the red rectangle
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
hmm... looking at the code it seems this is a debugger specific thing, so i guess i can ignore it
Michael R. P. Ragazzon
@mikke89
@giulio.camuffo:matrix.org Hey. Yeah, I can see now that this may be called from the debugger. You can probably redirect it to your compile function. In any case, let us know how the integration goes or if we can help :)
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
@mikke89: i was looking at that because i have a big frame drop while inspecting items in the debugger, and indeed if i make RenderGeometry() do nothing then the fps is much better. but i'm still working on the integration, so maybe it will not be so when i'm finished
Michael R. P. Ragazzon
@mikke89
I see. Out of curiosity, what kind of engine / graphics API are you making an integration with?
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
i'm doing an homegrown engine using raw Vulkan, not using any pre-made thing
Michael R. P. Ragazzon
@mikke89
Ah, very cool! I'd love to see more Vulkan integrations, is it mostly for your own sake or do you publish the code somewhere? Perhaps you would be interested in reviewing #236 when it is ready? :)
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
for my own sake for now :)
sure, i can have a look at that, when the fig dissipates a bit ;)
anyway the fps drop seems to be solved now. i was calling map/unmap on the vertex/index buffer every time i had to add a new geometry to them and that was taking a lot of time while now i only map once and keep the pointer around. i knew already that was better and i was planning to do that but i didn't imagine the impact was so big
like from 100 to 1000 fps
Michael R. P. Ragazzon
@mikke89
Wow, that is a surprisingly huge difference, that new number sounds more reasonable indeed. Alright, awesome if you could contribute, I'll ping you when the PR is getting closer to merging. :)
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
ok!
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
@mikke89: hey, i have a question about the scissors: when EnableScissorRegion(true) is called, will a SetScissorRegion call always come immediately after it, or is it possible for it to set the scissors once, then disable them and then enable again without setting it again, meaning it should use the previous value?
also, is it possible that it calls SetScissorResion multiple times following a EnableScissorRegion(true)?
Michael R. P. Ragazzon
@mikke89
@giulio.camuffo:matrix.org We don't really make any guarantees here, but considering these lines are the only place we seem to make a call to the scissor interface, I would say that your assumptions should be reasonable. I don't see any reason for us to change this behavior, but I cannot make guarantees for the future. Maybe add some asserts just in case?
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
ok thanks!
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
any idea why in windows the samples fonts don't work? i'm getting a freetype error 8 when loading them, and it says they don't contain a unicode or apple roman character map
they work in linux
could it be the different freetype version?
i have 2.10.4 in windows and 2.11.1 in linux
the debugger fonts work
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
nope, it's not the version
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
ah nevermind, it was my fault
Hyper Sonic
@hsandt
2021-12-24 bug margin-bottom ignored.png

Hey, I'm trying to position my dialog box based on the window edges, using margin only, rather than width and height.

body
{
    font-family: LatoLatin;
    font-weight: normal;
    font-style: normal;
    font-size: 2em;
    color: white;
    background: #f00;
    width: 100%;
    height: 100%;
}

#box
{
    margin-bottom: 80dp;
    background: #000;
    padding: 1em;
}

I got the result in the screenshot above. The black box is not near the bottom at all, it's like it's sticking to the minimal height based on its content.
"bottom" instead of margin-bottom doesn't help. Is there a way to counter this behavior, and is it standard CSS?

Removing the default rml.rcss (which sets div display: block) gives this:
Hyper Sonic
@hsandt
For now I'm defining height = container height - margin-top - margin-bottom I wanted as a workaround.
Michael R. P. Ragazzon
@mikke89
@hsandt Hey. Is #box the body element? The body is always absolutely positioned, so in that case use height: auto; top: 0; bottom: 80dp;. I think that should do it.
1 reply
If it's not the body, you can use position: absolute; together with the above rules.