Jump to content

Graphics of the Evening #2


Recommended Posts

@vladislavbelov ok from what I understand you created a new special font where you map one glyph to one RGB color and then each line is broken with an non printable "\n" codepoint. Each glyph is just a rectangle?
I wonder if it would also be possible to just use the block code  character and then for each one (or range) add a <color > tag around (then no new font needed). Still don't know how you did the raytraced font. Would be cool to make these kind of posts something like an ester eggs or a 0ad blog entry.

Fun nonetheless. (at first I thought you used some new pyrogenesis <canvas> object but seem not)

Link to comment
Share on other sites

Uff, for some reason after using the mod alpha 24 won't work. The mod is disabled but now when 0ad 24b is open it shows a black window, nothing more, no crash, no logs. I tried deleting user config, cache. Will try to reinstall now.

Edited by nani
Edit, its alpha 24 not 23
Link to comment
Share on other sites

  On 11/06/2021 at 8:09 PM, nani said:

Very nice, you might like to try the same with ray marching.:P

Expand  

Yeah, I was experimenting with it:

image.png

  On 12/06/2021 at 12:16 PM, nani said:

ok from what I understand you created a new special font where you map one glyph to one RGB color and then each line is broken with an non printable "\n" codepoint. Each glyph is just a rectangle?

Expand  

Yes, square for each R5G5B5.

  On 12/06/2021 at 12:16 PM, nani said:

I wonder if it would also be possible to just use the block code  character and then for each one (or range) add a <color > tag around (then no new font needed).

Expand  

It's possible but more slow, as on each frame you need to do a lot more work for rendering.

  On 12/06/2021 at 12:16 PM, nani said:

Still don't know how you did the raytraced font.

Expand  

Just generated by a script.

  On 12/06/2021 at 12:16 PM, nani said:

Would be cool to make these kind of posts something like an ester eggs or a 0ad blog entry.

Expand  

We don't have a blog, so I just post some of my local stuff on the forum.

  On 12/06/2021 at 12:24 PM, wraitii said:

Feels like that would be worthwhile now we have a canvas class. Drawing lines seems nice.

Expand  

It's impossible without performance loss at the moment.

  On 12/06/2021 at 2:15 PM, nani said:

Uff, for some reason after using the mod alpha 24 won't work. The mod is disabled but now when 0ad 24b is open it shows a black window, nothing more, no crash, no logs. I tried deleting user config, cache. Will try to reinstall now.

Expand  

Cleaning up the cache should help, because there should be no other relation between mods.

  • Like 1
Link to comment
Share on other sites

  On 12/06/2021 at 2:33 PM, vladislavbelov said:

Cleaning up the cache should help, because there should be no other relation between mods.

Expand  

Ok found the cause, seems some data got written to Documents/My Games/0ad/mods/user for some reason and deleting it fixed it. @wraitii you might want to check this as it I find it weird that fonts from the mod get stored there (which means that they get executed even when no mods are enabled)

Link to comment
Share on other sites

Mh, this would make sense actually if you're not in a dev copy & the mod writes data.

Edit: seeing how you played this with A24, it's definitely 'expected behaviour'. The issue is that the mod shouldn't be writing data like that tbh, but given it's a hack, meh.

I dislike the user mod in general and would probably favour doing things differently, but it's not a 'bug' for now.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...