CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Cambalinho

Page 1 of 53 1 2 3 4

Search: Search took 0.14 seconds.

  1. Replies
    21
    Views
    397

    Re: how use PlgBlt() API function?

    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
  2. Replies
    21
    Views
    397

    Re: how use PlgBlt() API function?

    PlgBlt Me.hDC, points2, Picture1.hDC, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight, &O0, &O0, &O0
    error by ref argument....
  3. Replies
    0
    Views
    52

    how use\add GDIPLUS on VB6?

    how use\add GDIPLUS on VB6?
  4. Replies
    21
    Views
    397

    Re: how use PlgBlt() API function?

    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,...
  5. Replies
    21
    Views
    397

    Re: how use PlgBlt() API function?

    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),...
  6. Replies
    21
    Views
    397

    Re: how use PlgBlt() API function?

    thank you so much for all... thank you
  7. Replies
    21
    Views
    397

    Re: how use PlgBlt() API function?

    maybe i was confused.. nothing more.. sorry
  8. Replies
    21
    Views
    397

    Re: how use PlgBlt() API function?

    i'm sorry, but you miss some words?
    "... VB is the upper-right corner, and VC and the lower-left corner then it looks..."
  9. Replies
    21
    Views
    397

    Re: how use PlgBlt() API function?

    is like:
    (upper-left)VA - VB(upper-right)
    (low-right)VC - VD(low-left)
  10. Replies
    21
    Views
    397

    Re: how use PlgBlt() API function?

    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...
  11. Replies
    21
    Views
    397

    Re: how use PlgBlt() API function?

    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...
  12. Replies
    21
    Views
    397

    Re: how use PlgBlt() API function?

    "lpPointA pointer to an array of three points in logical space that identify three corners of the destination parallelogram. The upper-left corner of the source rectangle is mapped to the first point...
  13. Replies
    21
    Views
    397

    how use PlgBlt() API function?

    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...
  14. Replies
    0
    Views
    2,048

    Math 3D: how rotate the 3D vectors?

    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...
  15. Replies
    0
    Views
    1,726

    Math 3D: how get 2D from 3D vectors?

    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...
  16. Replies
    13
    Views
    4,810

    Re: how draw 3D just using the math?

    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...
  17. Replies
    0
    Views
    2,430

    how avoiding hidded drawed parts?

    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...
  18. Replies
    0
    Views
    1,734

    how get the last position?

    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
    ...
  19. Replies
    0
    Views
    4,547

    how convert the 3D point to 2D point?

    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
    ...
  20. Re: [RESOLVED] how i get point on a 3D line knowing the Z or X or Y?

    "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...
  21. Re: [RESOLVED] how i get point on a 3D line knowing the Z or X or Y?

    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...
  22. Re: [RESOLVED] how i get point on a 3D line knowing the Z or X or Y?

    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
  23. Re: [RESOLVED] how i get point on a 3D line knowing the Z or X or Y?

    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.Z-100... i'm tell...
  24. Re: how create a 3D collision function?

    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 -...
  25. Re: [RESOLVED] how i get point on a 3D line knowing the Z or X or Y?

    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?
Results 1 to 25 of 1313
Page 1 of 53 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)