Very good written Petr!
Hi all,
what about some new options to this fantastic script:
- save to M15 format
- load from M15 format
- make a forest, I mean generate more than one tree at the same time
- create some 3D background landscape.
And just for starting ...
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
Very good written Petr!
Hi Eros,
lot of interesting ideas !
I am now prepairing new thinEdge ( quite ready ! ) with one feature which could come handy - if object is mapped, or partially mapped using TGA, you can preview it with alpha masking right in thinEdge.
So trees could be exported as model even with leafs.
I have to do intensive testing and optimisiation still ...
But at least branches for now should not be so deadly hard, I will try...
Bye,
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
Thanks Mike
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
Is there anyway to increase the amount of leaves without increasing the levels?
Welcome to the forums ,
well, in later phases, instead of scientifically correct leaf growth I picked approach of using "leaf bushes".
See attached picture. It is based on using huge "leafs" with multiple leafs in one texture.
The script I took screen from is quite messy, if there will be interest I can clean it up and publish.
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
Hi again
I have messed around with the tree script and tried to put a user interface to it, nothing complicated just canvas and a close button.
I am trying to keep the functionality of the original script while having a user interface but keep having trouble with the textures,
and new trees.
I have got it working to the point where it all loads and the first tree is created, even managed to get the resizing of the window working, but then things turn pear shaped.
The textures on the tree are ok but
the textures also seem to be display on screen as images and they keep flashing.
new trees cannot be generated because pressing space bar closes the app for some reason.
The close button works but thats about it.
I have tried to work through my script and figure this out but cannot figure out whats going wrong and where.
So now i scream for help
.........HHHHHEEEEEELLLLLLLPPPP!!!.......
before my brain ceases to function due to ......lol.....
Could you look at my script and maybe see if you can point me in the right direction?
Thanks in advance for any time you put into sorting out my mess.
`Here is working version of the script ( needs textures from original ),
there were just few mistakes:
- creating display list before binding TBGL
- binding canvas during resizing again and again
- loading textures each time image is rendered
- swapping frame two times, each time with different content
- canvas bigger than dialog
- creating display list each time image has to be displayed
- space closes app because you handled all button clicks to kill dialog + buttons had focus
I attach possibly fixed version, must go out now
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
Thanks,
That is great
it has shown me exactly where i have gone wrong.
Thinbasic with TBGL rules.
I have learnt more using this language in one week than what i have learnt using c++( )
for months(and getting nowhere )
Keep the development going
TBGL can only get better and better
Thanks Macros The Black.
Of course thinBasic cannot be comparable with and any C/C++ compiler. Different kind of programming, different targets of programmers.
For sure we try to be simple, productive and (as far as we can) compatible with MS documentation.
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
Bookmarks