Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Another L-System fun

  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Another L-System fun

    Hi,

    Emil Menzel on powerBasic forum did very nice demo on turtle graphics, which inspired me to combine turtle graphics and L-Systems once again

    I created header with basic Lindenmayer system functions + little sample.

    After longer time I really took advantage of thinBASIC hot features like VARIANTs in UDTs and calling function by name.
    So now you can assign to symbol "F" function "moveForward" ( or anything you like ) and watch the L-System results.


    Hope you will like it,
    Petr

    P.S. This version is the most easy to use I ever did, but on other side I did not optimized it at all :P ( yet )
    Attached Images Attached Images
    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

  2. #2

    Re: Another L-System fun

    Very nice.

    I've always liked Turtle Graphics, at my first Junior School there was a [wiki=BBC_Micro]BBC Microcomputer[/wiki] which had a drawing robot made from Lego connected to it. You could use the Turtle program to move the robot around & it would draw shapes on the floor.
    Operating System: Windows 10 Home 64-bit
    CPU: Intel Celeron N4000 CPU @ 1.10GHz
    Memory: 4.00GB RAM
    Graphics: Intel UHD Graphics 600

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

    Re: Another L-System fun

    Thanks ,

    I remember something similar,
    wasn't it called "Karel the Robot" or something like that ?
    I think also LOGO worked similar...


    Bye,
    Petr

    P.S. BBC Micro looks cool
    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. #4

    Re: Another L-System fun

    Quote Originally Posted by Psch
    ...wasn't it called "Karel the Robot" or something like that ?..
    Lol, I think our Robot had been made by one of the teachers.

    Most of the time it didn't work.
    Operating System: Windows 10 Home 64-bit
    CPU: Intel Celeron N4000 CPU @ 1.10GHz
    Memory: 4.00GB RAM
    Graphics: Intel UHD Graphics 600

  5. #5
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Another L-System fun

    ... then it was deadly educative tool ;D

    I attached new sample with fractal plant, just grand theft from Wiki again


    Petr

    EDIT: Added 2D version of demo 2, showing multiple generations
    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

  6. #6

    Re: Another L-System fun

    The new programs look good.

    Some time ago I found this page on the Internet which you might find interesting.

    The page is in Japanese & it contains 4 Fractal programs written in QBASIC, it also features some images of what you'll see when you run the programs.
    Operating System: Windows 10 Home 64-bit
    CPU: Intel Celeron N4000 CPU @ 1.10GHz
    Memory: 4.00GB RAM
    Graphics: Intel UHD Graphics 600

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

    Re: Another L-System fun

    Hey Petr,

    what clever advanced techniques! Merit a karma point. even 2

    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

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

    Re: Another L-System fun



    Thanks Eros,

    I like L-systems a lot, as they are quite abstract, they can serve for many things.

    Matthew, I am not good at Japanese , but my friend is, I must contact him to reveal those characters
    In the meantime, here is conversion of the Japanese code.
    Thanks to new tbgl_rendermatrix2d functionality the images must not be upside down anymore.


    Petr

    CODE REMOVED, see new version in first post
    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. #9
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Another L-System fun

    I don't know how I missed this topic, those are really neat guys. Thanks a lot!!
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  10. #10

    Re: Another L-System fun

    When I ran this script all I saw was a black background in the window. I've tried pressing different f-buttons (f1-f4). What should I see?

    Thanks
    Sandy

Page 1 of 2 12 LastLast

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
  •