text – part of the sprite or dynamically generated

I am trying to reproduce the same stamping tool as the one we found in the video game "Papers, Please".

In my case I want my users to be able to modify the text they are going to stamp. I will use a similar blocky font.

As you probably noticed in this sprite, the top of the letters is clearer in order to give an effect of depth.

How should I proceed to copy the same effect? The only solution that came to mind was to create sprites for each needed letter and then include them dynamically over my sprite but there has to be a more efficient way. I suspect the author directly drew them in the sprite but I’m not sure.

red stamping tool from the video game "Papers, Please"

How to compute the max/min surface area of a donut-shape solid generated by a revolved 2D circle, as the volume of the solid doesn’t change?

A donut shape solid is generated by revolving a circle $ (x-a)^2+y^2=b^2$ around the y-axis. $ a$ is the distance from the center of the hole of the donut to the center of the circle revolved, and $ b$ is the radius of the circle revolved. I’m trying to compute the minimized surface area and the maximized surface area (if the solid has) with the value of $ a$ and $ b$ , while the volume of the solid doesn’t change (which is $ 90\pi^2$ ). Thanks a lot if someone can help me 🙂

display text generated via custom get query string

I’m trying to display some text on my page, generating it via get query string, e.g. calling this url: mysite.com/page/?letter=exampletext

If I understand correctly in such cases it is needed to "add them to the public query variables available to WP_Query" (stated here https://developer.wordpress.org/reference/functions/get_query_var/), so I followed directions adding the following code to my page template:

<?php  function queries( $  qvars ) {     $  qvars[] = 'letter';     return $  qvars;     } add_filter( 'query_vars', 'queries' );  $  text = get_query_var( 'letter' ); echo "letter is: ".$  text; ?> 

unfortunately this is not working as expected, since it only diplays the exlicit part of the string ("letter is: ").

What am I missing? Thanks everyone

How to texture procedurally generated custom terrain mesh

I am making an infinite procedural terrain for my game and currently trying to apply textures to it. The generated terrain has different biomes, so I want to texturize the terrain based on biome and have different textures applied based on the steepness and height of the terrain. I also have different areas generated, such as settlements and also roads so I want to apply specific textures to specific places like those as well.

Unity terrain only supports I think 8 layers, but generally, it should be around 4 for 4 channels? In my case I generate a custom mesh, so I don’t really need to worry about this, however, I am trying to figure out how to generate some sort of texture map (splatmap), and have lots of textures in it. I want to use (albedo, normal, height) for each ‘layer’. Considering that the biomes are generated based on the noise map and each chunk can have many different biomes in it, I need to have more than 4 layers available. For example, steep areas like cliffs will need to have a rocky texture applied and each biome will have a different rocky texture. So if a chunk has two biomes in it, there are lots of different textures that need to be used, including various misc textures for paths and settlement grounds, etc.

Something like this, where a single chunk mesh has for example two biomes. Also, the terrain has a settlement that has a dirt texture applied to the terrain, which extends to both biomes. So essentially, lots of textures in just one mesh.

enter image description here

The other chunk(s) can have similar biomes or even completely other types of biomes. Also, would like to perhaps add the ability to apply different textures to a specific position on terrain chunk at runtime, for example, if the player would want to create a path or if a specific object is placed that would spread some specific texture around the object on the terrain. Something like this for example, where a placed tree has spread some leaf ground texture around:

enter image description here

So, I am looking for a flexible way in applying various different textures to generated terrain mesh. I would like to do that in the script when I am generating a chunk, so I would know which biomes is it at the position and as well as things like steepness and etc.

I am using Shader Graph to create the terrain shader. I’m not really experienced with shaders, so would like to ask for some help on what would be the correct way to achieve something like this?

Posting to a Custom Post Type from front end – user generated content

Is there a fast and reliable way of posting to a Custom Post type from the front end? My use case is for creating a daily checkin for a fitness trainer. I have created the necessary fields using ACF. And I was trying to create a front end post form using ACF Frontend for Elementor plugin. But in the plugin my post type doesnt show up at all. All in all I’ve tried various methods and I help with something concrete and reliable.

Thanks in advance!

FREE (yes. Just buy for $1 or PM me) Radio Generated from Live News Websites (from API)

How is it monetized?
Customers can only use the premium version by reading each of our emails. This site is monetized through email marketing.

Does this site come with any social media accounts?
No.

How much time does this site take to run?
Everything is automated after you run ads to it. This is to gain subscribers for automated email marketing campaigns.

What challenges are there with running this site?
The only challenge I see is running ads in the…

FREE (yes. Just buy for $ 1 or PM me) Radio Generated from Live News Websites (from API)

FREE (if you use ads to promote). All w/ Permission, Radio Generated from Live News Websites

How is it monetized?
Customers can only use the premium version by reading each of our emails. This site is monetized through email marketing.

Does this site come with any social media accounts?
No.

How much time does this site take to run?
Everything is automated after you run ads to it. This is to gain subscribers for automated email marketing campaigns.

What challenges are there with running this site?
The only challenge I see is running ads in the…

FREE (if you use ads to promote). All w/ Permission, Radio Generated from Live News Websites

How can I customize the look of a form generated by PaidMembershipPro plugin?

I am new to using WordPress but would like to create a website for a small organization. I installed the PaidMembershipPro plugin along with the "WP Bootstrap Starter" theme. I also used the PaidMembershipPro plugin settings tab to create the required paged.

However, the forms and the pages don’t look good. I would like to use bootstrap classes to make it look better. So I tried editing the Membership Levels page, but all I see is [pmpro_levels]

How can I edit the HTML code generated by this [pmpro_levels] code?

How to protect IP-sensitive data in files generated and used by users

I’m working on an offline windows application that generates and loads key results as files. However, these files provide key insights into how our product works internally. To make matters worse my users will for sure be tech-savvy but not hacker like tech-savvy. So if I do not encode it, we give away our magic. So given this problem, I have some questions:

  • Is there an encryption method commonly used to make files unreadable (or at least hard to read) except for (multiple instances of) a certain application?
  • How hard is it to read what assets (like private keys) are baked into a .dll file?

What to include in generated emails to make them acceptable to email servers?

I need to send some automated emails from a program I’m working on. This is a new feature. I’m generating the emails now, but they get filtered by most of the email servers that I send tests to. Only one server I am using accepts the emails and it allows a lot of spam through. I need to find what headers or authentication or whatever I need to add to make the emails acceptable to major servers.

I’ve tried searching the internet for questions about sending automated emails, but the lead responses are all from companies that are willing to send the emails for me, or that are recommending what the body should look like.

How do I authenticate the email so that it doesn’t get flagged or filtered as spam?

Also, does length play any part in typical spams filters (i.e. are short emails more likely to be filtered)?