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 2.90 seconds.

  1. Replies
    28
    Views
    1,467

    Re: how use PlgBlt() API function?

    no.... but i'm trying understand if the values from points() to texturepoints() are correct or not :(
    i'm confused... the texture go to the 1st to the 2nd points without problems... i belive the 3...
  2. Replies
    28
    Views
    1,467

    Re: how use PlgBlt() API function?

    wow i found 1 problem: if the point have a negative value, i will get big numbers... ok these problem will be fixed. after i learn 1 math.
    heres the values:
    35907
    but what i did wrong with values?
  3. Replies
    28
    Views
    1,467

    Re: how use PlgBlt() API function?

    VictorN: even not be C code... what you think about the image?
    heres a pseud-rectangle(A to D):
    B |-----------|C

    A |-----------| D
    "A pointer to an array of three points in logical space that...
  4. Replies
    28
    Views
    1,467

    Re: how use PlgBlt() API function?

    finally i'm using it, but i'm getting the wrong shape width..

    'Get the four vectors
    'Floor:
    'Vector1: low-left
    FillPosition3D NewPosition3D(0), Position.X, Position.Y,...
  5. Replies
    28
    Views
    1,467

    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
  6. Replies
    28
    Views
    1,467

    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....
  7. Replies
    0
    Views
    161

    how use\add GDIPLUS on VB6?

    how use\add GDIPLUS on VB6?
  8. Replies
    28
    Views
    1,467

    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,...
  9. Replies
    28
    Views
    1,467

    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),...
  10. Replies
    28
    Views
    1,467

    Re: how use PlgBlt() API function?

    thank you so much for all... thank you
  11. Replies
    28
    Views
    1,467

    Re: how use PlgBlt() API function?

    maybe i was confused.. nothing more.. sorry
  12. Replies
    28
    Views
    1,467

    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..."
  13. Replies
    28
    Views
    1,467

    Re: how use PlgBlt() API function?

    is like:
    (upper-left)VA - VB(upper-right)
    (low-right)VC - VD(low-left)
  14. Replies
    28
    Views
    1,467

    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...
  15. Replies
    28
    Views
    1,467

    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...
  16. Replies
    28
    Views
    1,467

    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...
  17. Replies
    28
    Views
    1,467

    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...
  18. Replies
    0
    Views
    2,083

    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...
  19. Replies
    0
    Views
    1,748

    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...
  20. Replies
    13
    Views
    5,035

    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...
  21. Replies
    0
    Views
    2,460

    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...
  22. Replies
    0
    Views
    1,750

    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
    ...
  23. Replies
    0
    Views
    4,663

    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
    ...
  24. 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...
  25. 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...
Results 1 to 25 of 1317
Page 1 of 53 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)