Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: A TBEM stess experiment

  1. #11

    Re: A TBEM stess experiment

    Sorry man, I forgot about these. Ok...

    once event is created and active, do I also have to call tbem_addtrigger even if event has been set as active?
    Only a trigger can start running an event. But if an event is inactive, then it will not run, even if a trigger was fired.
    I was thinking about a new function were you can fire a trigger eventID related. Like TBEM_AddEventTrigger(eventID) or so.
    That will fire a trigger only on a certain event.

    event type must be a unique number all around or unique inside a group? If event type is unique all around, why groups?
    I mean, can I have EventType 1 in 2 different groups? If yes, how can tbem_addtrigger knows what to trigger
    Event types and groups are two different things, not related to each other. And the event type doesn't have to be unique but having several event types with the same number would make no sence. A trigger with its event type sets the runflags of all events with the same type. So if eventtype, the time related fields and the active flag fit to the trigger, then the event's runflag will be set to TRUE and the event will run next time TBEM_Run will be called.

    Now about the event group. Remember event types set the event's runflag. If you have set the event's group then an event will only run during the call of TBEM_Run, if it has an event group equal to the parameter of TBEM_Run. This can be usefull if you want to make sure that some events will be running before others. Of course you would need to call several TBEM_Run with the defined events groups in one frame.
    See it like a tool to kinda sort the running order of events. If all events have the same group and the same time parameters, then they run in the order of creation. I'm having the idea allready for some kind of reorder command. So you can switch events within the internal event list.

    Do you want me to create a little example?

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

    Re: A TBEM stess experiment

    It's ok, thanks.
    I will study it more and give back if I have some doubts.

    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

  3. #13

    Re: A TBEM stess experiment

    Here is a little sheet to visualize it more.
    Attached Images Attached Images

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

    Re: A TBEM stess experiment

    Hi Mike,

    very nice scheme!

    But I think there are few typos, for example comment for Step4, I think there should be "RunFlag of Event1 and Event3 will become TRUE" ( as they are both type #1 ).

    On Step 5 and Step 6 I got completely lost then :-[
    But maybe I misunderstood it.


    Thanks,
    Petr

    P.S. Which proggie did you used to create the picture?
    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: A TBEM stess experiment

    Sorry Petr, my fault. I uploaded a correct version. I hope it is understandable. It was made with InkScape.

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

    Re: A TBEM stess experiment

    No problem,

    thanks a lot!


    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

Page 2 of 2 FirstFirst 12

Similar Threads

  1. TBGL, TBEM
    By Petr Schreiber in forum Fixed or cleared errors in help material
    Replies: 2
    Last Post: 12-04-2008, 18:44

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
  •