Search:
Type: Posts; User: Cambalinho
Search:
Search took 0.14 seconds.

September 23rd, 2020, 09:27 AM
correct me anotherthing: even if i fix it, the PlgBlt() can be used on a plane? or the results will be not what we expected?
i mean drawed the texture.. like create a street

September 23rd, 2020, 07:58 AM
PlgBlt Me.hDC, points2, Picture1.hDC, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight, &O0, &O0, &O0
error by ref argument....

September 23rd, 2020, 05:35 AM
how use\add GDIPLUS on VB6?

September 23rd, 2020, 05:15 AM
yes
Dim points2(4) As POINTAPI
points2(0) = Points(0)
points2(1) = Points(1)
points2(2) = Points(2)
points2(3) = Points(3)
PlgBlt Me.hDC, points2(0), Picture1.hDC, 0, 0,...

September 22nd, 2020, 04:07 PM
i'm trying now testing the function:
'Convert all 3D vectors to 2D vectors(for screen): Dim i As Integer
For i = 0 To 3
Points(i) = ConvertPositon3DTo2D(NewPosition3D(i),...

September 22nd, 2020, 03:27 PM
thank you so much for all... thank you

September 22nd, 2020, 03:07 PM
maybe i was confused.. nothing more.. sorry

September 22nd, 2020, 02:42 PM
i'm sorry, but you miss some words?
"... VB is the upperright corner, and VC and the lowerleft corner then it looks..."

September 22nd, 2020, 02:11 PM
is like:
(upperleft)VA  VB(upperright)
(lowright)VC  VD(lowleft)

September 21st, 2020, 04:23 PM
but the PlgBltpoint(4), is:
dim VA as POINTAPI
dim VB as POINTAPI
dim VC as POINTAPI
dim VD as POINTAPI
dim PlgBltpoint(4) as POINTAPI
'here i know their X and Y values(i know convert 3D...

September 21st, 2020, 03:02 PM
please i need understand more 1 thing: imagine that i have 1 plane.
we have the vector's A, B, C and D(the plane have 4 vectors)... every vector have their own X,Y and Z(thing that i know them, so...

September 20th, 2020, 01:38 PM
"lpPointA pointer to an array of three points in logical space that identify three corners of the destination parallelogram. The upperleft corner of the source rectangle is mapped to the first point...

September 20th, 2020, 09:24 AM
ok.. the PlgBlt () API functions is for draw an image and it can be rotated too:
Private Declare Function PlgBlt Lib "gdi32" Alias "PlgBlt" (
ByVal hdcDest As Long,
lpPoint As POINTAPI,
ByVal...

June 29th, 2020, 03:59 PM
how can i rotate the 3D axis?
i have these 2 functions(i must convert degrees to radians)(forget been VB6 code.. i just need rotate from player position):
Private Function...

June 29th, 2020, 03:38 PM
i have a calculation for convert 3D vectors to 2D vectors:
(isn't a C++ code, but you get the point)
Private Function ConvertPositon3DTo2D(Position As Position3D, World3DSize As Size3D) As...

June 27th, 2020, 01:43 PM
2kaud these function convert the 3D to 2D and add the vector to center of the screen: "+ World3DSize.Width / 2"
if i use the camera position zero(from the window) and the size(from window), how can...

June 10th, 2020, 03:41 PM
i'm learning how create a 3D world just using Math.
until here i can draw lines and a plane.
now i'm moving the player(nothing, just moving) and the plane is moved. when i get far the plane is...

i have 2 positions 3D on NewPosition3D array.
i'm testing if the Z position is outside camera and if is, i must save that position:
If ((NewPosition3D(0).Z) > Camera1.Position.Z) Then
...

i have these function for convert 3D point to 2D point:
Private Function ConvertPositon3DTo2D(Position As Position3D, World3DSize As Size3D) As POINTAPI Dim ConvertedPosition As POINTAPI
...

"Just because the points Destiny and Origin are the same.
And it is up to you to prove whether it is possible and if it is then by what conditions."
because i was wrong using the actual line point...

wolle see these calculation:
AB.X = Destiny.X  Origin.X
if Destiny is the same of Origin, the AB.X is zero.
yes i test point by point for get the right result... maybe i must use the same line...

when:
AB.X = Destiny.X  Origin.X
AB.Y = Destiny.Y  Origin.Y
AB.Z = Destiny.Z  Origin.Z
are zero, how can i calculate the 'T'?
T = (ActualPosition  Origin.X) / AB.X

let me ask you anotherthing: when i get the point from GetLinePosition(), i notice 1 thing: the floor isn't there for some Z pixels... so the best is change the player.Z to player.Z100... i'm tell...

testing and review the code(with more help before of these problems):
1  the floor is drawed(the left line): from bottom left to top left.. and both have the same X,Y and the Z is changed.;
2 ...

when i calculate the 'T', how i know the Z or X or Y is from the line?
is only compare, before calculate the 'T', if Z(or X or Y) belongs between the OriginX and DestinyX?

Click Here to Expand Forum to Full Width
OnDemand Webinars (sponsored)
