Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / material removement

Author
Message
learn Darkbasic
14
Years of Service
User Offline
Joined: 23rd Dec 2011
Location: Germany
Posted: 27th Dec 2011 14:02
Hello Darkbasic guys,

I have a question for professional Darkbasic users.
I start with darkbasic last week and it works very nice.

I will create a simple cnc simulation. For this I need a
feature to delete material. What command can you recommend ?

Here are a movie what I need.
http://www.youtube.com/watch?v=-pSZ7Dz7VOQ

Andreas Reitz, Germany
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 27th Dec 2011 14:44 Edited at: 27th Dec 2011 15:28
Hi learn . Do you mean to carve a surface perhaps

Edited

Here's a piece of code





Cheers.



I'm not a grumpy grandpa
learn Darkbasic
14
Years of Service
User Offline
Joined: 23rd Dec 2011
Location: Germany
Posted: 27th Dec 2011 15:10
NO. I mean material removement like this ...
http://www.youtube.com/watch?v=ThiGf_603JM&feature=related

You see the tool is working on part and part changes if tool is working.

Andreas Reitz, Germany
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 27th Dec 2011 19:46
this is very simple my friend. you will need to read about vertices and physics plus some mathematical skills. I think you are at very early stage in DBpro but never faraway.

last year I made few projects for two companies, here is one video:

http://www.youtube.com/watch?v=qTABbraeZuA
Millenium7
21
Years of Service
User Offline
Joined: 13th Dec 2004
Location:
Posted: 27th Dec 2011 23:20
Assuming you can put together the commands to do it you still have one massive hurdle which you cannot overcome, dbpro is NOT multithreaded. I believe what you are trying to do is create a rendering engine rather than a game, and it's going to need an enormous amount of cpu calculations. On a quad core computer you are losing 75% of the available speed already

We then have a problem of no low level access to the graphics card. We can't use the graphics card to do any of the calculations. It's most likely that any programs that do this sort of thing make heavy use of the GPU. The performance drop from a multithreaded application using gpu enhanced calculations, down to dbpro's single threaded application with no gpu calculation could lose more than 95% of it's performance
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 28th Dec 2011 03:09
@millenium7, if you're talking to me, projects are made and submitted successfully. if you;re talking to someone else I quite disagree. although DBpro was advertised as game making language but you can use it to create any application.
learn Darkbasic
14
Years of Service
User Offline
Joined: 23rd Dec 2011
Location: Germany
Posted: 28th Dec 2011 11:37
Hello chafari, Hello basjak,

your code looks very good. That is what I need.
I go ahead. If I have questions I ask you again. Thanks.

Andreas Reitz, Germany
Millenium7
21
Years of Service
User Offline
Joined: 13th Dec 2004
Location:
Posted: 28th Dec 2011 15:23
Quote: "@millenium7, if you're talking to me, projects are made and submitted successfully. if you;re talking to someone else I quite disagree. although DBpro was advertised as game making language but you can use it to create any application. "


absolutely, but let's not try and kid ourselves here. The reality is dbpro is NOT multithreaded, so immediately you face a problem if you want speed. When programming games we can get around this by simply optimising further, reducing polygon count and using fewer 'things' on screen and in the background. But when it comes to a rendering process i.e. a CNC simulation you're primarily looking for accuracy, and then speed. So cutting out accuracy in favor of speed is not a good thing

Now let's just look at the facts for a second. DBPro can certainly do the accuracy, even if it requires substantially more code due to the programming structure. But in speed we're competing against engines that 'are' multithreaded, and do have GPU calculation for these sorts of tasks. Like it or not, no matter what we do, we'll never ever ever ever be able to utilise a dual or quad core processor. Therefore, in this case, it's better to use a more suitable engine
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 28th Dec 2011 18:31
@Millenium7.
Well I think that our friend just want do a simulation of a cnc ,no to work exactly with this program to use it in a comercial workshop. Wherever we go we'll find differents opinion about using one or oder engine. So if we want to make a simulation of a cnc...yes...Darkbasic Pro or DBC can do it.

Cheers.

I'm not a grumpy grandpa
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 29th Dec 2011 00:45
Basjak... wow! (YT video)

learn Darkbasic
14
Years of Service
User Offline
Joined: 23rd Dec 2011
Location: Germany
Posted: 29th Dec 2011 12:46
Hello basjak,

do you sell this software ? What is the price ?

I have a customer who is selling this machines.

He was very impressed.

But you say it is a simulation, not animation. Do you get
the code from Excel file or ACSII file ?

Andreas Reitz, Germany

Login to post a reply

Server time is: 2026-07-09 20:54:46
Your offset time is: 2026-07-09 20:54:46