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

Thread: hello

  1. #1

    hello

    hello, dear thinbasic people! I am new here. Want to learn a new basic language. Heard and see a lot of thinbasic, powerbasic and game development with basic. Perhaps I am here at the right place. I am interested in open gl graphics, little animation and colored icons for clicking for more menu features, you will say pop up windows. I have finished my school. Now I am learning a basic language. I am 19 years old, come from spain, father is a german guy !
    I will do my best here to give more vital power and humour to the forum. I love dancing, singing and programming (learned at school java). I hope you are friendly people here so I will stay here. Now I have to read and try a lot of example to build my first code construct. Some day I will study game development. I need an easy to understand coding language to learn, so I have found thinbasic and see it's full of features and examples. I am glad to see such a lot of nice guys here, they are very engaged. I like that. hasta la vida, lydia
    hasta la vida

  2. #2
    Member
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    406
    Rep Power
    56

    Re: hello

    welcome, Lydia_sp here.

    hello my young friend, yes, that the best place here to learn.
    which kind of software would you like write ?
    games or tools ?
    i think that OpenGl is a good choice for you.
    OpenGl is independent and flexible, makes much fun.
    i do hope that i can see a result soon.

    sincerely:
    peter

  3. #3

    Re: hello

    Hi Lydia and welome to the forum

    You gave a really nice description of yourself and what you want to do. I like that. As you will see, we welcome everyone here with open arms. Right now it is a typical summer phase here, very quite and mellow. But so far thinBasic is a VERY active language.

    We have users who create games with thinBasic and also people who work on applications. I'm more into game development to and try to help actively to push thinBasic's game development features.

    Take your time to study the samples and the content of the forum. Feel free to ask any question. We are here to help you so don't be afraid.

    Might i ask you where you heard about thinBasic?

    Anyway, have a nice stay

    Michael

  4. #4

    Re: hello

    Ok, I'm back from work now and have a real desktop now infront of me Writing on my Google G1 isn't that comfortable when you want to write a lot.

    As you might have noticed, thinBasic uses modules, to extend it's feature set. For developing games you should have a look at these modules:

    TBGL - OpenGL based graphics module for 3D and 2D graphics. It features 3d models and sprites and is quite powerful
    TBass - A sound module which interfaces the well known BASS library
    TBDI - A directInput module to interface game controllers, wheels and joysticks. Force feedback support is included

    There are a lot more modules you can use while developing a game, but these are the basic ones that should give you a good start. Of course you can directly code with OpenGL commands too, just need to include the opengl header files. In the TBGL sample folder of your thinBasic installation there are samples about that too. Also download the TBGL bonus packs which you can find in the TBGL section of this forum. There you can also find a BLENDER plugin that will let you export a model in TBGL's M15 model format.

    And last but not least, visit Petr Schreiber's TBGL website for more info.

    Ahh, before I forget, to use the new sprite commands of TBGL you need to use the latest beta version of thinBasic. you can get it here.

    Take care
    Michael

  5. #5

    Re: hello

    hi charming boys. I am at my best girlfriend. thank you for fast reply and info. would like to ask why thinbasic was created by so different modules? I see more than four, five, six modules. I am confused. Oxygen, tbgl, tbdi, console and lion? ff. I know applications with all specific features one-in-all. sorry about my english, it`s hard to write what I`d like to say. I will look at tbgl first, for me the best choice for entry. I am giggling to be around with so many guys. send you more as possible. thanks. lydia.
    hasta la vida

  6. #6

    Re: hello

    Well, the reason why Eros Olmi created thinBasic the way it is, i don't know. I'm sure once he finds time he will explain it. Right now he is busy as hell with real life problems.
    This module approach has the very big advantage that you don't need to distribute one big runtime with your script, only the modules that you are using.

    Plus 3rd party developers like me can develop our own modules with PowerBasic, C++, FreeBasic, IBasic Pro, etc. to add more power to thinBasic.

    And don't worry about your english. I can read it and am sure that others can read it too. This community is pretty multi national. Americans, italians, germans, english, czesh, etc etc. And spanish now

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

    Re: hello

    Welcome lydia_sp!,

    thanks for your very nice introduction!

    I think guys explained all the important questions already, so I will add just the following:

    You can learn TBGL from the sources mentioned ( do not forget to use F1 on TBGL commands in ThinAIR to get context sensitive help ).

    Another option which can be considered is trying TBGL Bonus Packs. They cover various topics - particles, physics, effects...

    Next chance to learn ThinBASIC and TBGL is from ThinBASIC Journal - it is downloadable PDF magazine covering the latest features of ThinBASIC, issue #3 is in the works.

    And then of course you might simply try to start with simple games and ask for help here on the forum.

    In TBGL, I can recommend starting with Scene-Entity system (intuitive handling of 3D primitives, cameras and lighting) or if you are more into 2D, then new, fresh Sprite system is very good choice too.

    Which kind of games would you like to create?


    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

  8. #8

    Re: hello

    hi petr, thank you so much for help and infos.

    here my first script with questions and I need help. Want to have two hunters.

    and I cannot start your model viewer script for developer.

    I like tbgl and I see all the great examples. I need one year to proof it

    best regards, lydia
    Attached Files Attached Files
    hasta la vida

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

    Re: hello

    Hi Lydia,

    I am happy you started with TBGL, I hope you will like it!

    In your script you created 3 boxes:
    - one static %eBox
    - one moving %eBox2
    - one moving %eTarget2

    The "problem" is that you calculate the Target2 movement in a way it is inside the sphere, so never visible.

    Have a look at these two lines:
    [code=thinbasic]
    TBGL_EntitySetpos(%sScene, %eTarget, sin(GetTickCount/1000)*5, cos(GetTickCount/2000)*5,0)
    ...
    TBGL_EntitySetpos(%sScene, %eTarget2, sin(GetTickCount/1000)*5, cos(GetTickCount/2000)*5, 0)
    [/code]

    So if you want to see dos cazadores attacando dos objetos, simply make the Target2 box move different path, like:
    [code=thinbasic]
    TBGL_EntitySetpos(%sScene, %eTarget, sin(GetTickCount/1000)*5, cos(GetTickCount/2000)*5,0)
    ...
    TBGL_EntitySetpos(%sScene, %eTarget2, sin(-GetTickCount/1000+5)*5, cos(-GetTickCount/2000)*5, 0)
    [/code]

    Then there is one, just little problem, where Arrow2 was not targetting Target2, but simply Target.
    You almost had it right, by calculating custom angle for it, but then you used the old angle.

    I reorganized the main loop to separate targets and hunters from each others to look like:
    [code=thinbasic]
    ' ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
    ' Move targets
    ' ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
    ' Target #1
    TBGL_EntitySetColor(%sScene, %eTarget1, 128+sin(GetTickCount/1000)*127,128+sin(GetTickCount/1000+1)*127,128+sin(GetTickCount/1000+2)*127)
    TBGL_EntitySetpos(%sScene, %eTarget1, sin(GetTickCount/1000)*5, cos(GetTickCount/2000)*5,0)

    ' Target #2
    TBGL_EntitySetColor(%sScene, %eTarget2, 128+sin(GetTickCount/1000)*127,128+sin(GetTickCount/1000+1)*127,128+sin(GetTickCount/1000+1)*127)
    TBGL_EntitySetpos(%sScene, %eTarget2, sin(-GetTickCount/1000+5)*5, cos(-GetTickCount/2000+2)*5, 0)


    ' ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
    ' Hunters
    ' ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----

    ' Hunter #1 (%eArrow1)
    ' Get angle hunter-target
    angle1 = TBGL_EntityGetAngleXY(%sScene, %eArrow1, %eTarget1, %TBGL_X)

    ' Slowly turn towards target
    TBGL_EntityTurn(%sScene, %eArrow1, 0, 0, 10*angle1/FrameRate )

    ' Move towards the target, with speed proportional to the distance
    TBGL_EntityPush(%sScene, %eArrow1, TBGL_EntityGetDistance(%sScene, %eArrow1, %eTarget1)/FrameRate, 0, 0 )

    ''---------------- lydia part //
    ' Hunter #2 (%eArrow2)

    ' Get angle hunter-target
    angle2 = TBGL_EntityGetAngleXY(%sScene, %eArrow2, %eTarget2, %TBGL_X)

    ' Slowly turn towards target
    TBGL_EntityTurn(%sScene, %eArrow2, 0, 0, 10*angle2/FrameRate )

    ' Move towards the target, with speed proportional to the distance
    TBGL_EntityPush(%sScene, %eArrow2, TBGL_EntityGetDistance(%sScene, %eArrow2, %eTarget2)/FrameRate, 0, 0 )

    ' Hunter #3 (%eBox2)

    ' -- Get angle hunter-target
    angle3 = TBGL_EntityGetAngleXY(%sScene, %eBox2, %eTarget2, %TBGL_X)

    '' wrong si, si... but why? triangle must follow the box !!
    TBGL_EntityTurn(%sScene, %eBox2, 0, 0, 12*angle3/FrameRate )
    TBGL_EntityPush(%sScene, %eBox2, (TBGL_EntityGetDistance(%sScene, %eBox2, %eTarget2)/5)/FrameRate, 0, 0 )

    ''--------------------- fin lydia //
    [/code]

    I attach complete code for you.

    Model viewer - you are right, there was a problem (I forgot to prefix callback function with CALLBACK), I corrected it and you can download it from here. Thanks for reporting it!


    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

  10. #10

    Re: hello

    ^^ you are a dear, petr. I never thought to get an answer with this kind of help. It`s great here ! and I love all the example thinbasic has delivered after installation. Don`t know if other basic languages can support their users with so many example for learning and studying. I am new here and its like you are dropping into cold water and see one million fishes swimming around you, one fish or shark is more interesting than the other.

    petr. how can I build my framerate to show it in my scene ? what you can recommend for collision or saying the box collide with my triangle. this is my idea for progress. do you have one link or example for study?

    have had a really nice day at the beach. now I have to learn more. I like this board. thank you guys. its a pleasure to get such help and infos. thank to all.

    lydia
    hasta la vida

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
  •