View Full Version : My first test with tbgl module
Hi I'm Simone,
I have just started to program with TBGL module, And this is my first 3d test.
The script is under construction and i will try to optimize it step by step with your suggestions.
Bye,
Simone
Petr Schreiber
17-03-2008, 11:17
What a fantastic present for us,
thanks a lot for joining thinBASIC and TBGL especially :) !
I must say your script is pretty impressive!
You come here and in first post you attach script which uses majority of TBGL advanced techniques - models, entity system, basic collision detection functions ... really nice!
Few ideas for optimization - not delete rockets when they hit objects, just use TBGL_EntitySetUse(%scene1,%emissile, %FALSE) and once you fire missile again you can set it back to %TRUE.
Possible problem is that you have textures which are not power-of-two.
This works on cards with OpenGL 2.0+, but not older ones.
I am considering option that next TBGL release will resize such a textures, in case it is running on older hardware.
Thank you very much again,
really nice surprise,
Petr
Thanks Petr,
For your suggestions :) !,that work very well !
and for yuor compliments.
I think that entity system is great idea, makes much easier to program with OpenGL.
Now i try to add more functionality to the script.
Bye,
Simone
ErosOlmi
17-03-2008, 12:34
Simone, thanks for your post :o
You did a great job with your script using TBGL entity system.
If you make any change to your script, please keep us updated changing the first post you made substituting the attached .ZIP file with the newest and adding a note to this thread.
Ciao
Eros
Michael Hartlef
17-03-2008, 12:45
Hi Simone,
welcome on the board. Thanks for sharing your code. You did a good job for your first thinBasic script.
And yes the entity system is great, Petr did an awesome job on it. How fast was it
to pick it up? Do you have any experience with other programming languages?
Michael
Hi Michael,
The entity system is very fast to learn, I learned the main function of system in a few days.
I don't have much programming experience but generally i use languages like C Basic, C and now thinbasic.
Thanks,
Bye,
Simone.
Hi Simone, welcome to the forum, nice game you've created. :)
Petr Schreiber
17-03-2008, 14:07
Hi,
the entity system was Mike Hartlefs suggestion, it really made TBGL more easily understandable.
There is still lot of work to do on the module ( that is reason I keep version numbering low ), but it is already usable for wide range of tasks.
If you have any suggestion then do not forget to put it here :)
Petr
Hi Simone. What a nice first project you made. Welcome to thinBasic and glad you are into gaming and coding.