RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho …)) 'draw the vertical line: img.ForeColor(RGB(clr.Color.R, clr.Color.G, clr.Color.B), 0, clr.Width) img.DrawLine(RayCounts, Fix… Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho …the nearst Ray: Dim clr As New Pen(Color.Blue, 1) Dim ImagePosition As Long = 0….Floor(VertDist) OffSetGrid = VertY Mod ObjectSize clr.Color = Color.Blue Else OffSetGrid = HorizX Mod ObjectSize WallDistance =… 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 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 Re: Shared Printer Problem Hardware and Software Microsoft Windows by marythodge4 It sounds like you've already done some thorough troubleshooting, but there might be a few additional steps you can take to resolve the issue. Let's go through some potential solutions: Check User Permissions Ensure that the "Guest" account has proper permissions to print on the desktop where the printer is physically connected. … VB2010- why i get a different vertical size\color on RayCasting? Programming Software Development by cambalinho …9 Then Exit Do If levelmap0(MapY, MapX) = Color.Black Then Exit Do HorizX = HorizX + StepX … VertX) / Math.Cos(RayRadians)) Dim VertColor As Color If VertDist <= HorizDist Then WallDistance = VertDist … Re: How Build video-player in html And css ? Programming by Kirubel_2 …-y: hidden; } .container button{ background: transparent; color:white; font-size: 20px; border:1px solid transparent; …} .container button:hover{ cursor: pointer; color:#2837; } .container{ width: 100%; height: 50px;… How Build Html form ? Programming Web Development by Kirubel_2 …: 10px; height: 50px; width: 50%; border-radius: 5px; color: black; font-family: 'Lucida Sans', 'Lucida Sans Regular', '…position: absolute; right: 20px; top: 15px; background-color: #ae4732fe; font-size: 15px; color: white; border-radius: 50%; padding: 7px 14px;… How Build video-player in html And css ? Programming by Kirubel_2 …; <i style="font-size: 49px; color: white;margin-right: 10px;" onclick="img…; </div> <hr style="color: aqua;"> <div class="grid…> <h2 style="display: block;color: transparent;">AWTAR</h2> &… Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by toneewa … paintComponent(Graphics g) { super.paintComponent(g); g.setColor(Color.red); // move the balls for (int i = 0…get(i).getRadius()); } // display the collisionCount g.setColor(Color.black); g.drawString("Collision Count: " + … Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by toneewa … Draw the ball using its position and size g.setColor(Color.red); g.fillOval(ball.getX(), ball.getY(), 2 *…(), 2 * ball.getRadius()); } // Display the collisionCount g.setColor(Color.black); g.drawString("Collision Count: " + collisionCount, 20… Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 ….swing.Timer; import java.awt.Graphics; import java.awt.Color; public class BallPanel extends JPanel implements ActionListener { private int…public void paintComponent( Graphics g ) { super.paintComponent( g ); g.setColor(Color.red); // move the balls for (int i = 0; i <… Re: How Build Html form ? Programming Web Development by Dani I'm not exactly understanding your question. I see you have an HTML form here in this HTML code. What is not working about it? You need to specify the action="#" to be a URL that will process the form. 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 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()); Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 Got it. Thank you so much! Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by aishamushtaq Hi, Its helpful for me. I got my answer. Re: SiteShow -- Create a slideshow of web pages Programming Web Development by PROSYS_1 wow.. its working fine... very useful for me to complete my task.. thanks Re: Shared Printer Problem Hardware and Software Microsoft Windows by Bunker Network hiccup, paper jam, or driver glitch - troubleshooting the shared printer quandary demands patience, tech-savvy finesse, and perhaps a dash of printer exorcism. Color custom cursor appears to be black in vb.net Programming Software Development by Start4me Color custom cursor appears to be black when I run the program. The color custom cursor is imported from desktop by using Resources in vb.net. When I run the program the cursor turns out to be black. HOW DO I FIX IT? [CODE]Dim ms As New System.IO.MemoryStream(My.Resources.Cursor1) Button1.Cursor = New Cursor(ms)[/CODE] Re: Color disply codes for C++? Programming Software Development by kazi Afroz Color disply codes for C++? Re: Color issue, how to make a Color lighter? Programming Software Development by kdcorp87 Color.FromArgb(255,180,60);