-
Apr 16th, 2021, 09:56 PM
#1
Thread Starter
Lively Member
Visual Studio Gone Mad, Rise of the machines etc.
Either I'm being very blind to the issue or I need to disable the error manager thingy somehow.
I have errors on variables that don't exist and IF's are no longer allowed for programmers(ouch). See for yourself I'm at a loss on how to describe this.
Thanks in advance if this is my fault, sure hope it is somehow.
-
Apr 16th, 2021, 10:00 PM
#2
Re: Visual Studio Gone Mad, Rise of the machines etc.
Unfortunately the attached image is totally unreadable. Can you paste just the code itself as text and then maybe a small cropped image containing only the error messages?
-
Apr 16th, 2021, 10:05 PM
#3
Re: Visual Studio Gone Mad, Rise of the machines etc.
Originally Posted by OptionBase1
Can you paste just the code itself as text and then maybe a small cropped image containing only the error messages?
If I'm not mistaken, error messages are text too.
-
Apr 16th, 2021, 10:25 PM
#4
Thread Starter
Lively Member
Re: Visual Studio Gone Mad, Rise of the machines etc.
Originally Posted by OptionBase1
Unfortunately the attached image is totally unreadable. Can you paste just the code itself as text and then maybe a small cropped image containing only the error messages?
You're right (the image is fine on my pc though it's the preview that's blurry or it lost quality in the upload process).
vb.net Code:
Dim PixelCounter As Integer = 0
For Y = StartY To EndY
For X = First_X To Last_X
Dim Weight1 As Single = ((Triangle.Vertex_A.X * (Triangle.Vertex_C.Y - Triangle.Vertex_A.Y)) + ((Y - Triangle.Vertex_A.Y) * (Triangle.Vertex_C.X - Triangle.Vertex_A.X)) - (X * (Triangle.Vertex_C.Y - Triangle.Vertex_A.Y))) _
/ (((Triangle.Vertex_B.Y - Triangle.Vertex_A.Y) * (Triangle.Vertex_C.X - Triangle.Vertex_A.X)) - ((Triangle.Vertex_B.X - Triangle.Vertex_A.X) * (Triangle.Vertex_C.Y - Triangle.Vertex_A.Y)))
Dim Weight2 As Single = ((Y - Triangle.Vertex_A.Y) - (Weight1 * (Triangle.Vertex_A.Y - Triangle.Vertex_A.Y))) / (Triangle.Vertex_C.Y - Triangle.Vertex_A.Y)
If Weight1 >= 0 And Weight2 >= 0 Then
Canvas.SetPixel(X, Y, Color.Yellow)
Console.Write(" X=" & X.ToString & " Y=" & Y.ToString)
PixelCounter += 1
End If
Next
Next
Here is the code. I just updated Visual Studio and my issue is resolved(everything was fine with my code as I thought). Here's a pic of only the errors hoping it's visible just for laughs:
Attachment 181036
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|