Search:

Type: Posts; User: reexre

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds; generated 42 minute(s) ago.

  1. Replies
    33
    Views
    1,027

    Re: Fast String Math Function - VB6

    I did something similar in my PhotoModularFX program.
    That is: Having the image coordinates and pixel values as input, the user can enter a Formula with these variables to get the final image.
    This...
  2. Thread: [VB6] QuadTree

    by reexre
    Replies
    49
    Views
    30,289

    Re: [VB6] QuadTree

    2024 QuadTree class on Github
    https://github.com/miorsoft/VB6-OpenStreetMap/blob/master/cQuadTree.cls
  3. Replies
    0
    Views
    585

    [VB6] OpenStreetMap

    OpenStreetMap

    I dusted off an old program from more than a decade ago. (An that time the OSM data was really very poor...)

    If I remember correctly it was published on PlanetSourceCode. I...
  4. Thread: Program Testers

    by reexre
    Replies
    189
    Views
    387,673

    Re: Program Testers

    UPDATED

    DOWNLOADS

    - SoftPedia ZIP (may take some days to be updated)
    - ZIP

    Update 0.3.4686 (24-jan-2024)
    [Modules]
    - NEW: xPainter3: 3rd version of painter effect.
  5. Replies
    52
    Views
    9,758

    Re: [RESOLVED] Dashed line

    Thank you Olaf
    Yes, I thought about that.
    I would have preferred a "Dashes reset instruction" though.
  6. Replies
    52
    Views
    9,758

    Re: [RESOLVED] Dashed line

    A pure question about SetDashes

    I need to frequently to switch drawing of lines with dashes and lines without dashes,
    How do I reset the dashes to "no dashes" ?

    I tried this
    ...
  7. Replies
    7
    Views
    7,826

    Re: Unicode aware VB6 functions replacement

    Thank you! I (should) have resolved extracting from here
  8. Replies
    7
    Views
    7,826

    Re: Unicode aware VB6 functions replacement

    hi, reading files works, but I need to append data to a file using

    Open FN For Append As 1

    ( Where FN is the (unicode Aware) full path and file name string read with your functions)
    However,...
  9. Re: Getting the ball rolling. Which VB6 projects are you working on?

    I'm working on a new Painter effect for the program PhotoModularFX

    Almost done, I'd say.

    https://www.youtube.com/watch?v=o2-wODsmKo8

    ...
  10. Thread: Program Testers

    by reexre
    Replies
    189
    Views
    387,673

    Re: Program Testers

    Thank You

    Here a Video of the Pictures Above


    https://www.youtube.com/watch?v=o2-wODsmKo8
  11. Thread: Program Testers

    by reexre
    Replies
    189
    Views
    387,673

    Re: Program Testers

    hi
    I'm working on 3rd version of Painter Effect [ xPainter3 ]



    https://www.vbforums.com/images/ieimages/2024/01/4.jpg
    Download 2016x1520
    ...
  12. Replies
    0
    Views
    781

    [VB6] Cairo BRUSH

    I present the class I have named cCairoBrush.
    It is not entirely complete, in fact initially I had thought of not posting it in CodeBank, but then I changed my mind because it seemed good enough and...
  13. Re: [RESOLVED] Does ANYONE have a better line click detector code?

    Line Distance:

    Px,Py Point
    Ax,Ay,Bx,By, Line segment


    Private Function LineDistance(ByVal pX#, ByVal pY#, ByVal AX#, ByVal AY#, ByVal BX#, ByVal BY#) As Double
    Dim PAx#, PAy#
    Dim...
  14. Re: ActiveX DLL - UDTs - Functions - Constants - RegFree

    It's all OK, :thumb:
    So, this way, can I deploy the Dll in RegFree mode? or are there any expedients to be taken?

    and.. by the way
    Is there some tool to automate the editing of Private Declare...
  15. Re: ActiveX DLL - UDTs - Functions - Constants - RegFree

    @TheTrick
    Thank you very much! I'll try by following your guide too.
  16. Re: ActiveX DLL - UDTs - Functions - Constants - RegFree

    I found this tool to create SxS-manifest

    Using my test Dll with cGlobal (GlobamMultiuse) and delegates etc.
    It creates MyDll.sxs.manifest
    - Manifest is placed it in the DLL folder.
    - To test...
  17. Re: ActiveX DLL - UDTs - Functions - Constants - RegFree

    Thanks for the replies.
    Using a cGlobal class (GlobalMultiuse) and "delegating from within Public Methods of a Public Class directly to the matching Public Method of a *.bas-routine." might be...
  18. ActiveX DLL - UDTs - Functions - Constants - RegFree

    Hi, having little familiarity with DLLs, I ask for help with the following:
    My intent is to group together in a single Ax-DLL all the UDTs, Classes (and constants) that I normally use frequently.
    ...
  19. Replies
    9
    Views
    1,048

    Re: vbRichClient RndEx

    Hi Olaf


    yes, it was among my assumptions


    Thank you for the clarification
    I tested this new RndEx on my code above (Drawing Random texture 256x256) and no "patterns" are noticeable.

    a...
  20. Replies
    9
    Views
    1,048

    Re: vbRichClient RndEx

    I noticed that this "strange" behavior is very visible when we plot random values in 2D.
    In contrast, if we plot the numbers as a 1D graph this behavior escapes eyes view.

    Private Sub DrawDots()...
  21. Replies
    9
    Views
    1,048

    [RESOLVED] vbRichClient RndEx

    I assume that RndEx function is a random number generator (possibly to be used instead of Rnd)
    I noticed, however, that the generated numbers make up "patterns".
    I assume this is an unwanted bug. (...
  22. Replies
    68
    Views
    6,983

    Re: Anyone have a good random number generator?

    Hi
    I wanted to ask a somewhat "strange" and off-topic question.
    In my opinion it's still interesting and I think surely some others (maybe not here) have asked the same question.

    Starting with...
  23. [VB6] - IK "inverse kinematics" solver for 2 segments.

    Optimized IK "inverse kinematics" solver for 2 segments.

    Here is the optimized solution to solve the inverse kinematics problem for 2 segments.

    Explanation of the algorithm by the original...
  24. Replies
    11
    Views
    1,319

    Re: My Latest 3D Geometry Problem

    I missed the requirement of orthogonality with respect to the plane of the triangle :-/ (I had probably read too fast or implicitly not considered the usefulness of this aspect).
    Just out of...
  25. Replies
    11
    Views
    1,319

    Re: My Latest 3D Geometry Problem

    made some edits on my post and added Inigo Quilez way.

    RAW TESTS:


    https://www.youtube.com/watch?v=SUeLfP_kMJU
  26. Replies
    11
    Views
    1,319

    Re: My Latest 3D Geometry Problem

    After initial research, I found something.
    So far I have only converted two algorithms to VB6.
    In order not to clog the thread I think I will Edit /Update this post in case of future developments,...
  27. Replies
    6
    Views
    1,003

    Re: [RESOLVED] 3D Vector SLERP algorithm

    For completeness I also post the VecSlerpPrecise function (without approximation) [Also translated from the initial link].


    Private Function VecSlerpPrecise(v1_In As VecType, v2_In As VecType, T...
  28. Replies
    6
    Views
    1,003

    Re: 3D Vector SLERP algorithm

    This is the algorithm converted to VB6.
    Notes:
    1) To Normalize the Vector I do only one division instead of 3.(avoid divisions as much as possible, I never get tired of saying that)
    2) EDIT: Added...
  29. Replies
    6
    Views
    1,003

    Re: 3D Vector SLERP algorithm

    I found this algorithm that does not use trigonometry. (So I assume it is faster).
    It is not exact but approximate, however the error is really very small. (It seems to me at most 0.0222 degrees)....
  30. Thread: Program Testers

    by reexre
    Replies
    189
    Views
    387,673

    Re: Program Testers

    UPDATED

    DOWNLOADS

    - SoftPedia ZIP (may take some days to be updated)
    - ZIP


    Update 0.3.4350 (03-Jul-2023)
    [Modules]
  31. Thread: Program Testers

    by reexre
    Replies
    189
    Views
    387,673

    Re: Program Testers

    These days I reviewed the "Stippling2" Module. I improved and modified the algorithm by providing the option to create images formed by points with fixed radius. (previously not available, as the...
  32. Re: [RESOLVED] Copy 2D array to 1D array and for-loop traversal

    I started to use RC5/6 for the interface, then I also adopt other useful things it provides.
    Most of the Modules routines are written in pure VB6.
    I wonder why you can't use dll, however it's...
  33. Re: [RESOLVED] Copy 2D array to 1D array and for-loop traversal

    Thank you!
    Yes, it is the one I mention here, it's made in VB6 with the help of RC6.
    It's in my signature.
  34. Re: [RESOLVED] Copy 2D array to 1D array and for-loop traversal

    cNeighborRed = lNeighbor And &HFF&
    cNeighborGreen = (lNeighbor And &HFF00&) \ 256
    cNeighborBlue = (lNeighbor And &HFF0000) \ 65536
    You do this (at worst) 8 times per pixel.
    Each time you process...
  35. Re: [RESOLVED] Copy 2D array to 1D array and for-loop traversal

    Try to never use Sqr and division.
    So replace /3 with * 0.333333333333333
    Remove the Sqr and do compare with >lThreshold*lThreshold (or precalculated value)
    SQR(A) > B <---> A > B * B

    Do...
  36. Re: Copy 2D array to 1D array and for-loop traversal

    In my opinion this is not (entirely) true:
    By eye, having swapped FOR cycles on some of my image processing procedures, I had the feeling that I got a speed increase even on those that were supposed...
  37. Re: Copy 2D array to 1D array and for-loop traversal

    I also tested with a fully optimized EXE.
    I have also encountered occasional inconsistency.
    One thing I noticed is that the speed gain also depends on the size of the array and its aspect ratio....
  38. Re: Copy 2D array to 1D array and for-loop traversal

    Thank you very much Elroy and Niya!

    Great! so the conversion time to 1D arrays should be negligible and the final speed gain is about 200% respct X,Y traversal and 141% respect Y,X traversal.
    ...
  39. Re: Copy 2D array to 1D array and for-loop traversal

    @Niya
    Speaking of pre-fetch and optimization:
    I swapped the "FOR" loops in most of my routines that perform image processing (they are numerous) and noticed that the exe file size decreased.
    The...
  40. Re: Copy 2D array to 1D array and for-loop traversal

    You know?, here I asked questions specific to my use.
    And apparently I didn't get a comprehensive answer with example code regarding my second question.
    You mentioned SafeArray, but I admittedly...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width