Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

askthedev.com Logo askthedev.com Logo
Sign InSign Up

askthedev.com

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Questions
  • Learn Something
What's your question?
  • Feed
  • Recent Questions
  • Most Answered
  • Answers
  • No Answers
  • Most Visited
  • Most Voted
  • Random
  1. Asked: April 14, 2025

    How can I prevent Probuilder from deleting faces during the “probuilderize” conversion of my 3D building model?

    anonymous user
    Added an answer on April 14, 2025 at 6:14 pm

    It sounds super frustrating to be dealing with disappearing faces while using Probuilder! Here are a few things you might want to check out: Normals: Make sure the normals of your mesh are all facing the right way. Sometimes, if they are flipped, it can cause faces to not show up in Probuilder. MeshRead more

    It sounds super frustrating to be dealing with disappearing faces while using Probuilder! Here are a few things you might want to check out:

    • Normals: Make sure the normals of your mesh are all facing the right way. Sometimes, if they are flipped, it can cause faces to not show up in Probuilder.
    • Mesh Complexity: If your model is very complex, consider simplifying the geometry a bit before probuilderizing. Sometimes, dense meshes can confuse the tool.
    • Face-Culling: Check if the face culling settings are affecting your view. In your material, make sure that the culling mode is set to be visible from both sides.
    • Check for Non-Manifold Geometry: Non-manifold edges can really mess things up. Use the Probuilder tools to check for and clean up any non-manifold edges or vertices.
    • UV Overlaps: If there are overlapping UVs, it can sometimes cause issues. Try redoing the UVs if you think this might be the case.
    • Update Probuilder: Make sure you’re using the latest version of Probuilder. Sometimes bugs are fixed in newer releases!

    Lastly, if you haven’t already, you could try reaching out to the Probuilder community or forums for additional help. Sometimes someone has faced the same issue and might have a quick fix!

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  2. Asked: April 14, 2025

    How can I apply a noise texture to a specific image or sprite in Phaser using postFX?

    anonymous user
    Added an answer on April 14, 2025 at 8:14 am

    It sounds like you’re really close to getting that cool noise effect localized to your circle image! From what you’ve described, it seems like the issue might be due to how the shader is applied. When you use `circle.postFX.add(shader);`, it typically applies the shader to the whole canvas if the shRead more

    It sounds like you’re really close to getting that cool noise effect localized to your circle image! From what you’ve described, it seems like the issue might be due to how the shader is applied. When you use `circle.postFX.add(shader);`, it typically applies the shader to the whole canvas if the shader isn’t specifically set up to limit its effect to just the circle.

    Here are a few things you could try:

    • Check the shader code: Make sure your fragment shader is written in a way that it only affects the areas behind the circle. You might need to incorporate some logic within the shader to account for the position and size of the circle. This could involve using the circle’s UV coordinates to limit the noise effect.
    • Use a mask: You can create a mask for your circle image. This mask will ensure that the shader only applies its effects within the bounds of the circle. In Phaser, masks can be used in conjunction with graphics objects to limit drawing or effects.
    • Shader uniforms: If your shader allows it, you could pass a uniform variable to determine the area affected by the shader. For example, you could define a center point and radius, and the shader can use these to calculate where to apply the noise effectively.

    Also, when you test your changes, make sure to restart the scene or clear the previous shader effects to see the changes properly. It can be a bit trial and error, but getting that localized effect with shaders is definitely achievable!

    Good luck with your Phaser project, and I hope you get that glitchy vibe just where you want it!

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  3. Asked: April 14, 2025

    How can I secure my PXN Fight Stick controller during a video game demonstration to prevent theft?

    anonymous user
    Added an answer on April 14, 2025 at 4:14 am

    Tips to Keep Your PXN Fight Stick Safe During Your Demo Congrats on getting a booth for your game showcase! That’s super exciting! Keeping your PXN Fight Stick safe is definitely important, and I totally get your worry about it going missing. Here are a few ideas you might consider: Tethering: EvenRead more

    Tips to Keep Your PXN Fight Stick Safe During Your Demo

    Congrats on getting a booth for your game showcase! That’s super exciting! Keeping your PXN Fight Stick safe is definitely important, and I totally get your worry about it going missing.

    Here are a few ideas you might consider:

    • Tethering: Even though you mentioned it might be tough for a fight stick, you can give it a shot! Maybe use a soft strap that connects the controller to the table. This way, people can play with it without easily walking off.
    • Cable Locks: Those can work! If the fight stick has a place to attach a cable or a loop that wouldn’t damage it, you can get a small lock and secure it to the booth. Just make sure it’s not too restrictive for users!
    • Visibility: Keep it in plain sight! The more people see it, the less likely someone will try to walk off with it. Maybe have it on an elevated stand where it’s easier to view?
    • Signs: Consider putting a fun sign next to it that says “Please enjoy, but don’t take me home!” or something light-hearted to encourage respect.
    • Friends as Guards: If you can, have a friend hang out at the booth while you’re demonstrating. This way, someone is always watching that precious fight stick!

    You definitely want to strike a balance between allowing people to have fun with the controller and keeping it secure. Perhaps try combining a couple of these ideas for the best result. Wishing you lots of success at the event!

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: April 14, 2025

    Challenge to calculate the digits of pi using a programming language in the shortest code possible.

    anonymous user
    Added an answer on April 14, 2025 at 12:14 am

    Whoa, that's such a cool idea! 😮 I've honestly never thought about calculating pi with super short code before. I'm still pretty new to programming—like, I've tried Python a bit—but this sounds actually fun and probably tricky. I guess you could just use something like built-in math functions right?Read more

    Whoa, that’s such a cool idea! 😮 I’ve honestly never thought about calculating pi with super short code before. I’m still pretty new to programming—like, I’ve tried Python a bit—but this sounds actually fun and probably tricky.

    I guess you could just use something like built-in math functions right? Maybe Python has something really short, like “import math;print(math.pi)“. But wait, that’s just giving me a fixed pi value—probably doesn’t count if the challenge means generating digits on the fly… 🤔

    Maybe people with more experience do something super-smart here… like using some weird math formula or libraries I’ve never heard of (GolfScript? 🤯). Could someone even do it in just one line?! That sounds wild honestly. This challenge feels kind of like solving a riddle through coding.

    Honestly, I’d be curious to see how it works. If someone has tiny code for pi digits, please share! Maybe walk through your logic a bit too, it would be cool to learn something new. I’d probably hit sooo many roadblocks I haven’t even thought of yet.

    I seriously wonder what creative tricks everyone’s going to come up with. This sounds like a neat thing to play around with—even if my code probably ends up super long and messy 😅. Who else wants to give this a go?

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. Asked: April 13, 2025

    How can I find a point a specific distance between two given points in 2D space using C#?

    anonymous user
    Added an answer on April 13, 2025 at 6:14 pm

    Finding Position C in 2D Space To find Position C, which is 5 units away from Position A (0,0) and directed towards Position B (10,5), we can follow a simple approach. Step-by-Step Approach: Calculate the Direction Vector: First, you need to find the direction from A to B. This is done by subtractinRead more

    Finding Position C in 2D Space

    To find Position C, which is 5 units away from Position A (0,0) and directed towards Position B (10,5), we can follow a simple approach.

    Step-by-Step Approach:

    1. Calculate the Direction Vector:

      First, you need to find the direction from A to B. This is done by subtracting the coordinates of A from B:

                  DirectionX = BX - AX = 10 - 0 = 10
                  DirectionY = BY - AY = 5 - 0 = 5
                  
    2. Calculate the Length of the Direction Vector:

      Next, you need to find the length of this vector using the distance formula:

                  Length = sqrt(DirectionX^2 + DirectionY^2) 
                         = sqrt(10^2 + 5^2) 
                         = sqrt(100 + 25) 
                         = sqrt(125) 
                         = 11.18 (approximately)
                  
    3. Normalize the Direction Vector:

      Now, we want the direction of the vector as a unit vector:

                  UnitVectorX = DirectionX / Length
                               = 10 / 11.18 ≈ 0.894
                               
                  UnitVectorY = DirectionY / Length
                               = 5 / 11.18 ≈ 0.447
                  
    4. Scale the Unit Vector to the Desired Distance:

      Since we want Position C to be 5 units away from A, we multiply each component of the unit vector by 5:

                  Cx = AX + (UnitVectorX * 5)
                     = 0 + (0.894 * 5) ≈ 4.47
                     
                  Cy = AY + (UnitVectorY * 5)
                     = 0 + (0.447 * 5) ≈ 2.24
                  
    5. Position C Coordinates:

      So, Position C will be approximately at:

                  C(4.47, 2.24)
                  

    This gives you the point C, which is exactly 5 units away from A and directed towards B. You can implement this in C# using the steps outlined above!

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
1 … 34 35 36 37 38 … 5,301

Sidebar

Recent Answers

  1. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
  2. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
  3. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
  4. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
  5. anonymous user on How can I update the server about my hotbar changes in a FabricMC mod?
  • Home
  • Learn Something
  • Ask a Question
  • Answer Unanswered Questions
  • Privacy Policy
  • Terms & Conditions

© askthedev ❤️ All Rights Reserved

Explore

  • Questions
  • Learn Something