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

Thread: Connection to other modules?

  1. #1
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Leverkusen, Germany
    Age
    51
    Posts
    3,266
    Blog Entries
    2
    Rep Power
    338

    Connection to other modules?

    Hi Eros,

    I not sure if you remember, but at one time we talked about the subject that it would be nice if you can call functions from other modules inside a module.

    Is this allready possible? if not; Is it still planned?

    Michael
    Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200.

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    50
    Posts
    8,130
    Blog Entries
    2
    Rep Power
    10

    Re: Connection to other modules?

    I think Roberto talket about that in order to be able to gain some coding time and lines.
    So far it is not possible other than knowing exact function numeric enumerator.

    What idea do you have? Maybe I can do something (not in the short time).

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  3. #3
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Leverkusen, Germany
    Age
    51
    Posts
    3,266
    Blog Entries
    2
    Rep Power
    338

    Re: Connection to other modules?

    An example, mmmh?

    Petr's TBGL module is great. As an old Blitz3D user I love Blitz3D's entity system. When you say renderworld, it does all the dirty transformation job for you. With one set of functions, you HANDLE CAMERAS; LIGHTS; MESHES.
    So for an example, some kind of module that does that. Connects to TBGL, and calls these functions that are needed to render a complete scene.
    Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200.

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,778
    Blog Entries
    3
    Rep Power
    691

    Re: Connection to other modules?

    Or introduce render-scene-nodes in TBGL ?

    I was thinking of it too as it could save another parsing time. Cannot promise anything now, but ...


    Thanks,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

  5. #5
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    50
    Posts
    8,130
    Blog Entries
    2
    Rep Power
    10

    Re: Connection to other modules?

    Well, the idea seems fantastic but modules were not designed for this purposes. Modules talk with Core and Core talks with modules. That was the original idea.
    Also considering the way module functions have to call Core functions to parse script code ... I wonder how to do it other than developing:
    1. all the needed functions inside the module as native script keywords
    2. develop general purpose dll exporting functions

    In any case, request is quite interesting. We need to share / shake some more our brain cells. Any idea is welcome.


    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  6. #6
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    50
    Posts
    8,130
    Blog Entries
    2
    Rep Power
    10

    Re: Connection to other modules?

    Quote Originally Posted by MikeHart
    An example, mmmh?

    Petr's TBGL module is great. As an old Blitz3D user I love Blitz3D's entity system. When you say renderworld, it does all the dirty transformation job for you. With one set of functions, you HANDLE CAMERAS; LIGHTS; MESHES.
    So for an example, some kind of module that does that. Connects to TBGL, and calls these functions that are needed to render a complete scene.
    Mike, this suggestion is worth a new TBGL specific request. The idea of the world is really powerful because you move a lot of the script complexity directly inside TBGL module leaving to programmer the duty to deal with more high level details. So this is something Petr will for sure take into account. Please open a new request in TBGL dedicated forum.

    Back to your request, a possible example I can think: the DATE module contains a lot of date manipulation functions used by module internal keywords functions. If you develop another module and needs some specific date function why reinvent the wheel, just get them from DATE module. The same for other aspects like math or stats I suppose.

    Well, there can be some different roads. I can see two right now.
    • export from modules those functions that are enough generic to be used separately from the rest
    • export from modules a new dedicated function to be used to create a bridge between internal generic fucntions and external modules in need of such functionalities


    Just thinking in public ...
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  7. #7
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Leverkusen, Germany
    Age
    51
    Posts
    3,266
    Blog Entries
    2
    Rep Power
    338

    Re: Connection to other modules?

    Ok, I will make a request to Petr then.
    Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200.

  8. #8
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    61
    Posts
    3,869
    Rep Power
    397

    Re: Connection to other modules?

    I don't know if you guys used Aurora, but in their the 3D is similar it sounds like to what Mike is describing in Blitz Basic. But since that was object oriented I didn't know if the same sort of system could be done in tbgl.

    I am months from being able to add anything useful to thinBasic with my powerBasic studies. I realize I have way more to learn than I thought. Starting with the api programming, that will take a couple of months to get through and then to learn the sdk's that Jose has converted. But it will pay off in the end.

    In the meantime it will be interesting to see what you guys come up with.
    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

  9. #9
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Leverkusen, Germany
    Age
    51
    Posts
    3,266
    Blog Entries
    2
    Rep Power
    338

    Re: Connection to other modules?

    No, AURORA is different.
    Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200.

  10. #10
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    61
    Posts
    3,869
    Rep Power
    397

    Re: Connection to other modules?

    Well now I am intrigued by the Blitz method, will have to read more in depth. Thanks Mike.
    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

Page 1 of 2 12 LastLast

Similar Threads

  1. My Internet connection down
    By ErosOlmi in forum Announcements
    Replies: 16
    Last Post: 31-03-2009, 15:18

Posting Permissions

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