Re: ‘Advanced AI should be treated similar to Weapons of Mass Destruction’ Community Center by Reverend Jim … other AI platforms? Will we get into a negative feedback loop where the output will become so polluted with bad input… RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho … = HorizX \ ObjectSize MapY = HorizY \ ObjectSize Loop 'Get the Ray Distance: HorizDist = Math.Abs… = VertX \ ObjectSize MapY = VertY \ ObjectSize Loop 'Get the Ray Distance: VertDist = Math.Abs… Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by rproffitt When I work such an issue I set the breakpoint where the trouble is and examine variables. There's some variable that controls the output so that's what you look at. You've posted a lot about ray-tracing and that's all good but setting breakpoints to see what's going on seems to be the challenge. Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho debug print line height: Line Height : 1452 Line Height : 1441 Line Height : 1430 Line Height : 1419 Line Height : 1407 Line Height : 1397 Line Height : 1386 Line Height : 1375 Line Height : 1364 Line Height : 1353 Line Height : 1342 Line Height : 1331 Line Height : 1321… Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho i can see: 1 - maybe some are too much height(but they are converted to 300 of max); 2 - on some they are repeated... and maybe the problem is there... i can save the previous Height for test the actual Height.... but i see a problem: if i avoid them, i can lose some height, unless i continue add angle and don't count the rays ;) ... but maybe i… Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho will be rounded numbers problem or something? yes i'm testing more, but no success :( Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho maybe you have right... but, for now, i don't understand why and where i'm fail :( i'm learning from: https://permadi.com/1996/05/ray-casting-tutorial-table-of-contents/ theres several tutorials, but not all are so good :( Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho yes i must test more... and, like you see, that vertical bar have another color.... that means the code problem can be here: 'Get the horizontal Ray Distance: HorizDist = Math.Abs((player.PosX - HorizX) / Math.Cos(RayRadians)) 'Get the vertical Ray Distance: VertDist = Math.Abs((Player.PosX - VertX) … Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by m_624 In RayCasting, you may observe wider vertical lines on a square grid due to the nature of the algorithm. This phenomenon occurs because the vertical lines represent intersections of rays with grid cells, and depending on the angle and distance of the rays, they may intersect multiple grid cells horizontally, resulting in wider lines compared to the… Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho what make me more crazy is that i'm using a code, converted and works, from VB6 lol VB2010- why i get a different vertical size\color on RayCasting? Programming Software Development by cambalinho …MapX = GetPositionMap(HorizX) MapY = GetPositionMap(HorizY) Loop HorizDist = Math.Abs((player.PosX - HorizX) /…MapX = GetPositionMap(VertX) MapY = GetPositionMap(VertY) Loop VertDist = Math.Abs((player.PosX - VertX) … Paris Olympics Ticket Information Chatbot with Memory Using LangChain Programming Computer Science by usmanmalik57 …(content = response)]) return response ``` Finally, we can execute a `while` loop that asks users to enter queries as console inputs. If… the `chat_history` list, print a goodbye message and quit the loop. Otherwise, the query is passed to the `generate_response_with_memory()` function to… 'Prepare for the Earliest Possible AGI Deployment Scenario' Community Center by Johannes C. … are adopting and learning how to use human-in-the-loop technologies that augment human intelligence. But right now, **we still… we see that right now, with the human-in-the-loop tools, a part of someone's job may be much… Question Answering with YouTube Videos Using RAG in LangChain Programming Computer Science by usmanmalik57 … = response)]) return response ``` The following script executes a `while` loop. Inside the loop, the user asks a question that is passed on… Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 …. When I tried creating a new ball in the nested loop that checks for collision (used an array list), and then… '30% of Activities Performed by Humans Could Be Automated with AI' Community Center by Johannes C. … underpins our vision for SmythOS — keeping a person in the loop for meaningful guidance while AI agents tackle tedious minutiae. The… Re: How to disable the automatic swipe effect on the product page? Programming Web Development by Dani … new Swiper('.portfolio-gallery2', { slidesPerView: "auto", spaceBetween: 30, loop: true, autoplay: { delay: 2500, }, pagination: { el: ".swiper-pagination-two… Re: Printing multiple integers EASY SOLUTION Programming Software Development by Bunker A straightforward solution to printing multiple integers is to use a loop. For example, in Python, you could use a "for" loop to iterate through a list of integers and print each one. This method is simple and effective. Re: Improve HAVING BY performance Programming Databases by Biiim … my terminal got when I made mistakenly made an infinite loop on queries a couple of weeks ago Re: ASUS Laptops - my experience Hardware and Software by Reverend Jim … (which I downloaded fresh) just ended up in an infinite loop of 1. Oops. Something went wrong. Check your network connection… Re: Calling an object from another in PHP using construct Programming Web Development by pritaeas That causes an infinite loop as described by jkon. I'd go for a container … Re: Calling an object from another in PHP using construct Programming Web Development by Dani I feel like you're going to end up in an infinite loop if you create a new A from the constructor function of class A. Same with class B having `new B()` in its contruxtor, and and C having `new C()` in its constructor. Re: Trying to animate sprite using DirectX9 Programming Software Development by Pavel_11 Hello, it is unneccessarily to use right movex or leftmovex , because it is to much variables. You should to use one variable movex to make it with minus or plus sign in your update function; by pressing left or right keys; because the one thing which is changable is a picture; I mean in global sense; variables like leftx, right x should be one… Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by toneewa Some minor syntax fixes. Some things to consider are the collision and distance of drawing the next ball. A ball inside a ball's radius will cause numerous collisions. Even the starting ball locations can be already causing collisions. I added a collision counter display. Increased the maximum balls to make to 50. The timer delay can also impact … Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 Thank you so much for your reply and additions! It is certainly working as I wanted. I will read through the code you have added and ask you any questions I might have. I hope you don't mind. Regards Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by Dani I’ll mark this question solved :) Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by Dani … oh, sorry, missed the bit about you still needing clarifications. Feel feee to ask :) I’ll now unmark this topic as solved. /facepalm Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by toneewa I cleaned up the code some more. Removed some things that were not being used. I ran into a couple problems which caused the freeze you mentioned. It was memory heap space and array allocating. E.g., if x or y becomes negative, and also infinite recursion. I added a x/y coordinate display for a ball, and tinkered with the placement of the … Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 Hello, Thank you again so much! All your additions are clear, but it seems like whenever two balls collide, more than one ball is added to the arraylist and painted. Any way to have just one ball added to the panel for every collision? Have some kind of a toggle flag in paintcomponent? Regards Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by toneewa Yes, this is true. Overlapping ball spawns can do that causing a chain reaction. Something like that could be done. How you handle the spawning of the new ball is what I played with a bit before. You will see better collision detection changing to: g.fillOval(ball.getX(), ball.getY(), 1 * ball.getRadius(), 1 * ball.getRadius());