Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: StromekVFX - new, clean edition of old tree generator

  1. #11
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,795
    Rep Power
    10

    Re: StromekVFX - new, clean edition of old tree generator

    Hi all,

    what about some new options to this fantastic script:
    • save to M15 format
    • load from M15 format
    • make a forest, I mean generate more than one tree at the same time
    • create some 3D background landscape.


    And just for starting ...
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #12

    Re: StromekVFX - new, clean edition of old tree generator

    Very good written Petr!

  3. #13
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,138
    Rep Power
    733

    Re: StromekVFX - new, clean edition of old tree generator

    Hi Eros,

    lot of interesting ideas !

    I am now prepairing new thinEdge ( quite ready ! ) with one feature which could come handy - if object is mapped, or partially mapped using TGA, you can preview it with alpha masking right in thinEdge.
    So trees could be exported as model even with leafs.
    I have to do intensive testing and optimisiation still ...

    But at least branches for now should not be so deadly hard, I will try...


    Bye,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  4. #14
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,138
    Rep Power
    733

    Re: StromekVFX - new, clean edition of old tree generator

    Thanks Mike


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  5. #15

    Re: StromekVFX - new, clean edition of old tree generator

    Is there anyway to increase the amount of leaves without increasing the levels?

  6. #16
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,138
    Rep Power
    733

    Re: StromekVFX - new, clean edition of old tree generator

    Welcome to the forums ,

    well, in later phases, instead of scientifically correct leaf growth I picked approach of using "leaf bushes".
    See attached picture. It is based on using huge "leafs" with multiple leafs in one texture.

    The script I took screen from is quite messy, if there will be interest I can clean it up and publish.


    Petr

    Attached Images Attached Images
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  7. #17

    Re: StromekVFX - new, clean edition of old tree generator

    Hi again
    I have messed around with the tree script and tried to put a user interface to it, nothing complicated just canvas and a close button.
    I am trying to keep the functionality of the original script while having a user interface but keep having trouble with the textures,
    and new trees.

    I have got it working to the point where it all loads and the first tree is created, even managed to get the resizing of the window working, but then things turn pear shaped.

    The textures on the tree are ok but
    the textures also seem to be display on screen as images and they keep flashing.

    new trees cannot be generated because pressing space bar closes the app for some reason.

    The close button works but thats about it.

    I have tried to work through my script and figure this out but cannot figure out whats going wrong and where.

    So now i scream for help
    .........HHHHHEEEEEELLLLLLLPPPP!!!.......
    before my brain ceases to function due to ......lol.....

    Could you look at my script and maybe see if you can point me in the right direction?

    Thanks in advance for any time you put into sorting out my mess.
    Attached Files Attached Files

  8. #18
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,138
    Rep Power
    733

    Re: StromekVFX - new, clean edition of old tree generator

    `Here is working version of the script ( needs textures from original ),

    there were just few mistakes:

    - creating display list before binding TBGL
    - binding canvas during resizing again and again
    - loading textures each time image is rendered
    - swapping frame two times, each time with different content
    - canvas bigger than dialog
    - creating display list each time image has to be displayed
    - space closes app because you handled all button clicks to kill dialog + buttons had focus

    I attach possibly fixed version, must go out now


    Petr
    Attached Files Attached Files
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  9. #19

    Re: StromekVFX - new, clean edition of old tree generator

    Thanks,
    That is great
    it has shown me exactly where i have gone wrong.

    Thinbasic with TBGL rules.
    I have learnt more using this language in one week than what i have learnt using c++( )
    for months(and getting nowhere )
    Keep the development going
    TBGL can only get better and better

  10. #20
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,795
    Rep Power
    10

    Re: StromekVFX - new, clean edition of old tree generator

    Thanks Macros The Black.

    Of course thinBasic cannot be comparable with and any C/C++ compiler. Different kind of programming, different targets of programmers.
    For sure we try to be simple, productive and (as far as we can) compatible with MS documentation.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. clean(ish) Energy
    By Michael Clease in forum Science
    Replies: 12
    Last Post: 20-10-2008, 19:37

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •