View Full Version : city builder project
Lionheart008
09-10-2009, 16:05
hello dear thinbasic users.
I have started some days ago a little project called "city-builder". I wanted to build only by lines or boxes (first with lines!) a little 2d scene for city structures. It's just the beginning, don't bother me or expect too much for the first step, but I show the start of the project. I like these idea and will realize this example with tbgl power. this work in progress will continue next days/week, so I have enough time for it. thanks petr for little help too.
2x zip/rar file with bundle exe I attach here. full tb code will come later if all work is done.
edit: last update monday at 23:59.
best regards, frank
Lionheart008
09-10-2009, 21:16
hi,
I have done some modification with lines and colours and updated my first post. the task I will check is to draw various lines they are random running a) first: in one direction and b) then spread its fingers in all direction to build a city structure. the last example have four lines with different colours and amplitude, so you can see (I hope so!) different lines and shapes. but I will improve it more. the speed of lines building is extra slow!
any feedback is not welcome. ;)
good evening, my personal qt: what about "this forum is still alive?"
what's going on with other thinbasic people here ? Disappeared in a black hole ?
cheerio, frank
John Spikowski
10-10-2009, 06:51
http://www.google.com/images/logos/sketchup_logo.png
You can use Google SketchUp to create, modify and share 3D models.
http://sketchup.google.com/
Might save you some time and effort.
Lionheart008
10-10-2009, 10:30
only a browser test :)
all ok now!
Lionheart008
10-10-2009, 20:13
good morning,
hi john, thanks for the hint. I know sketchup a little (own 2d cad-like application), but here I am working with thinbasic and want to improve my own skills Wink I wanted to make an animation as you can see in my example. if you like this one test it. It`s not important to save time because I will learn and make / drop this knowledge deeper ;)
any other feedback or good ideas for this project are welcome.
good week-end, frank
ps: something is wrong with my browser, sorry, I write this post new.
Frank work in procedurally generated anything is exciting stuff. I am glad you are into this kind of things also.
A city makes for an interesting project. Good luck with it.
John Spikowski
12-10-2009, 11:40
Autodesk Algor Simulation
Autodesk® Algor® Simulation software, part of the Autodesk® solution for Digital Prototyping, provides a range of mechanical simulation tools to help designers and engineers make critical decisions earlier in the design process. Using an extensive set of finite element modeling tools and built-in material libraries, you can more easily study initial design intent and accurately simulate the behavior of a complete digital prototype.
Autodesk Algor Simulation supports direct, associative data exchange with most CAD software tools, so you can make iterative design changes without redefining simulation data.
By helping you predict a product’s real-world performance, including situations in which multiple physical factors interact simultaneously, Autodesk Algor Simulation can help you validate and optimize designs before manufacturing—increasing efficiency, reducing costs, and avoiding errors.
Web Site (http://usa.autodesk.com/adsk/servlet/pc/index?siteID=123112&id=13773836)
Here is another product you might get a few ideas from.
Lionheart008
12-10-2009, 15:32
hi all.
@kent:
thank you, that's really exciting work how to create procedural tbgl things. I hope I can find the right way to make these scenes powerful and fast. I have seen some professional made city builder examples from c++ side (and freebasic!) some weeks ago and I wondered if this isn't also possible to create with thinbasic.
Frank work in procedurally generated anything is exciting stuff. I am glad you are into this kind of things also. A city makes for an interesting project. Good luck with it.
one more update (see first post!) here it comes:
infos:
- moving text (building with a tbgl_buildfont)
- more citylines tight and big ones, different heights of "buildings", little grids
- larger gui window
- colour pulsing
- one effect
- more edges and shapes for "buildings"
now I will try to create a triangle roof for empire state buildings.
john, thanks for info. but I don't need any more infos and no pr articles about autodesk products, thank you ;) I am working only with thinbasic on this project here!
updated script monday evening at 23:58, see my first post.
best regards, frank
John Spikowski
12-10-2009, 21:47
john, thanks for info. but I don't need any more infos and no pr articles about autodesk products , thank you
No problem. Looking forward to seeing your version of the wheel. :)
Lionheart008
13-10-2009, 00:15
now only the triangle silhouette is missing for buildings. the last update for this night.
see also my first post. the code increases, wow! and thinbasic made nevertheless a lot of fun! have nearly forgotten to program with thinbasic the last weeks. 8)
good night. frank
Michael Clease
13-10-2009, 09:59
john, thanks for info. but I don't need any more infos and no pr articles about autodesk products , thank you
No problem. Looking forward to seeing your version of the wheel. :)
Strange I thought this was a programming forum so we are always reinventing the wheel in some shape or form.
Michael Hartlef
13-10-2009, 10:07
john, thanks for info. but I don't need any more infos and no pr articles about autodesk products , thank you
No problem. Looking forward to seeing your version of the wheel. :)
Strange I thought this was a programming forum so we are always reinventing the wheel in some shape or form.
Amen :)
Charles Pegge
13-10-2009, 18:20
Here is an idea to conjure with.
Floating Cities:
http://www.bfi.org/our_programs/bfi_community/triton_floating_city
Lionheart008
24-10-2009, 14:10
first of all thank you for advices and hints for city builder project :) I will continue this idea next week and days!
My question for today: there was some weeks ago an interesting script from petr so far as I can remember you can
=> control / regulate two thinbasic scripts or windows with tbgl (one script has influence to the other one). I cannot find this tbgl script by the searching mask. anybody has a link for me ? would be nice. good week-end, so long, frank
Petr Schreiber
24-10-2009, 18:20
Hi Frank,
it is called "interprocess communication":
via memory mapped file (http://community.thinbasic.com/index.php?topic=1778.0)
via WM_COPYDATA (http://community.thinbasic.com/index.php?topic=1671.0)
Lionheart008
25-10-2009, 02:22
hello petr, all.
it is called "interprocess communication":
via memory mapped file
via WM_COPYDATA
thanks for the link !
my idea: to control with one tbgl window (main) another tbgl window (second) and a third tbgl window (third) that destroy the first one.
I have managed until this time some good things.
1) - open program 1 "transmitter" (A)
2) - open program 2 "receiver" (B)
arrange these two windows so you can see both.
3) take (A) and push the Button "open dialog". then a new "Adventure" window (C) will open with three buttons. name of the first button is: "Asterix"
arrange this third window to the other ones.
4) take the first transmitter window (A) and push the button "send message"
result: the message appears in the Adventure dialog (C) text field: "asterix open me!"
5) do it :) push the "asterix" button !
6) a new TBGL window with three pyramids (D) will open. You can close this window after seeing that it works.
so far so good.
=> my idea was also to start a new script ("destroy") that can via button click the first main window. don't know if this is possible ? I am not sure if this is possible: to close a win application and sending a message to another window to destroy this one ???
it's a general question if this is possible to control one tbgl window with another tbgl window ?
best regards, good night, I wanted to explore it, therefore I am still awake.
frank
Petr Schreiber
25-10-2009, 09:15
Hi Frank,
SendMessage command + %WM_CLOSE or %WM_DESTROY should do the job.