Comments (23)
@Garux I revisited this and just built from 6a5d148 and any previous issue I had is gone and all seems working fine. Closing this! Thank you for your work on this project.
from netradiant-custom.
Video exposes the problem explicitly, you got no font initialized for openGL rendering, i e no textures names, axes names; squares are entity names.
Build was built @ ubuntu.
from netradiant-custom.
@eGax I have the same problem, Im using Manjaro with nvidia non-free driver.
Any solution?
from netradiant-custom.
It's not a driver issue, but pango/freetype font initialization issue
I can prevent rendering in this case, but missing textual data in viewports ain't good either
@Pollito001 can we get in touch in discord (i'm niger#7855 there) to figure out better solution?
from netradiant-custom.
from netradiant-custom.
@Garux I try your fix and the white square gone, Thanks ;)
from netradiant-custom.
Another question, Is posible to add half life support?
from netradiant-custom.
I still suggest to figure out real fix, this data must be rendered:
HL is supported already except of models and sprites
from netradiant-custom.
@Garux Is estrange because before i format my laptop and replace Manjaro 18.0.3 with 18.0.4 that works normally.
from netradiant-custom.
try menu->misc->colors->opengl font
from netradiant-custom.
@Garux it works i change the font in menu->misc->colors->opengl font, for deyavu sans mono and works prefect now. Thanks.
from netradiant-custom.
from netradiant-custom.
So definite fix for this would be hardcoding default font name to one, which would work at any linux.
Code fallbacks to the g_object_get( settings, "gtk-font-name", &fontname, NULL );
, but this haven't worked in topic distro, as far, as i can see.
from netradiant-custom.
Yeah, I just assumed because gtkradiant & netradiant work on my system without issue netradiant-custom would too. I haven't had time to build since 11724e3, but judging from @Pollito001 's feedback looks like it fixes the issue. I will try to build it soon and check it out for myself. Thanks.
from netradiant-custom.
Must work out of the box now: eff4d42
from netradiant-custom.
Well the white squares are gone, but still no font displayed inside the view windows and now with lots of error messages on startup with my build of commit f45f759. In the terminal I see:
(radiant:19071): GdkGLExt-WARNING **: 05:39:12.902: cannot load PangoFont
Followed by a large popup window many errors on every startup or when changing the opengl font via the Misc menu.
In the editor console after all the normal GL_ lines I see the same errors from the popup:
libs/gtkutil/glfont.cpp:745
assertion failure: font for OpenGL rendering was not created
./radiant(+0x1838e1) [0x55ca99b088e1]
./radiant(+0xdf785) [0x55ca99a64785]
./radiant(+0x1bbd2b) [0x55ca99b40d2b]
./radiant(+0xcf311) [0x55ca99a54311]
./radiant(+0x1bc7e9) [0x55ca99b417e9]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b5) [0x7fc612529e75]
/usr/lib/libgobject-2.0.so.0(+0x1ffd5) [0x7fc612516fd5]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0xebe) [0x7fc61251b1ae]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x90) [0x7fc61251c080]
/usr/lib/libgtk-x11-2.0.so.0(gtk_widget_realize+0xd2) [0x7fc612d9d582]
./radiant(+0x1bc5cf) [0x55ca99b415cf]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b5) [0x7fc612529e75]
/usr/lib/libgobject-2.0.so.0(+0x1ffd5) [0x7fc612516fd5]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0xebe) [0x7fc61251b1ae]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x90) [0x7fc61251c080]
/usr/lib/libgtk-x11-2.0.so.0(+0x248a79) [0x7fc612d96a79]
/usr/lib/libgtk-x11-2.0.so.0(+0xlibs/gtkutil/glfont.cpp:745
assertion failure: font for OpenGL rendering was not created
from netradiant-custom.
This is strange, because it worked for @Pollito001
Rendering non GdkGLExt part of texts is likely possible @%yourdistro%, since regular NetRadiant does this (slowly).
I'm out of ideas, except of experimenting at the problematic platform.
from netradiant-custom.
That's fine, I will stick to NetRadiant when I need it as an option over or in addition to TrenchBroom.
Thanks for trying.
from netradiant-custom.
(edited this a bit after re-reading the thread)
I'm on a variant of Ubuntu 18.04 here (elementary OS 5).
Until commit eff4d42 that added the assertion, the OpenGL Font selection process was broken (in my case) insofar as the selected font didn't appear to be used, but removing the hardcoded fallback font names has made things extra-unhappy.
It looks like before those fallbacks were removed, "fixed 8" was working on my system.
If I update to a later commit that has the problem, but I manually edit my ~/.netradiant/1.5.0/q3.game/local.pref file to set the OpenGLFont value to "Fixed 8", then things work OK and text is rendered.
I should note that "Fixed 8" is not a choice in the OpenGL Font menu. And none of the (valid, installed) fonts that ARE in the menu will work if selected.
from netradiant-custom.
So the common problem is gdk_gl_font_use_pango_font() functioning/not, depending on some of yourdistro/font/pango lib options.
This is likely why gtk and net radiants switched to different (very slow) text rendering method.
Here i use two methods: gdk_gl_font_use_pango_font() for bitmap display lists font and text labels, rendered to texture. Font initialisation stops, if the first part fails.
Hardcoded font names was old workaround for gtk, returning bad font name on Windows specifically.
I think a good fix would be adding own code to generate display lists font.
offtopic: @neogeographica , i recall your MeshTex plugin and got stuck at finding smart patch unwrapping algorithm for the new uv manipulator. Perhaps you might have some good notion of one. I'll create respective issue, if you are interested.
from netradiant-custom.
Added trial and error code, like other s/w, experiencing this problem.
Only working hardcoded font in Ubuntu 18.04 is clean
; Only two working ones from OpenGL font selector are Bitstream Charter
and Courier 10 Pitch
;
At the same time rendered to texture text labels code works with any font.
gtkglext code is failing somewhere at pango_x_font_map_for_display()
or pango_font_map_load_font()
functions, radiant code works with pango_ft2_font_map_new()
and pango_ft2_render_layout_subpixel()
.
from netradiant-custom.
@Garux, about that UV editor issue... I've thought about it and I don't think I can carve out time right now to get up to speed on that and make any real progress. Sorry! If you have any very specific questions we should talk/think about together, we can track that on an issue if you think that would be helpful, but generally that's dealing with some very dusty brain cells for me.
from netradiant-custom.
@neogeographica, alright, UV Tool is already here, so there is only topic of better unwrapping left; created the issue: #27
from netradiant-custom.
Related Issues (20)
- Compil fail HOT 5
- No textures on Debian HOT 3
- Can't copy/paste Quake 1 map into Doom 3 map HOT 1
- Question: Shader file viewer HOT 2
- (q3map2) Allow compiling CONTENTS_JUMPPAD in WolfET HOT 2
- Feature Request: Entity search by key/value HOT 1
- [Feature request] Draw light radius on negative lights HOT 1
- Assertion failure saving while using relative path HOT 2
- :q3map Suffixes do not work with External Lightmap hack HOT 1
- Unmonitored compilers cannot start and compile HOT 1
- MacOS Sonoma 14.3 Compile HOT 12
- assertion failure - 22040208 HOT 2
- (Feature Request) Clip brushes by face selection HOT 3
- Add mbspc face-to-brush with best merge faces HOT 5
- (Feature Request) Add support for Vera Visions formats HOT 1
- Glb models also supported but that isn't stated (q3). HOT 2
- White lights can't be seen on white background HOT 6
- IBSP maps failing to be parsed by q3map2
- The Surface Inspector "texture" field grabs the keyboard focus on Linux HOT 2
- Coredump on Linux when the textures browser is opened HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netradiant-custom.