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.

Work in Progress / DarkLEGO - BlockCAD in DBPro

Author
Message
Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 19th May 2007 19:22 Edited at: 14th Jan 2008 21:40


DarkLEGO - BlockCAD importer function for DBPro
by Hurricane-Eye Entertainment

->Site<-


[/center]Visit also: Pacman Challenge, LANdvantiX, LEGO rpg wip, LEGO mmorpg, My website



This is a wip function to import BlockCAD
.lgo files into DBPro. It currently supports all the "Small Blocks" + the 2x2 slope.

I'm currently working on a function that imports LDraw LEGO model files.

VIDEOS:
Video 1 with PHYSICS



DOWNLOADS:
1st demo program loads:


demo prog with physics


IMAGES:






© 2007 Hurricane-Eye Entertainment

Attachments

Login to view attachments
Alquerian
14
Years of Service
User Offline
Joined: 29th Mar 2006
Location: Reno Nevada
Posted: 19th May 2007 21:18
You and your Legos... This is totally awesome!

Visit the Wip!
Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 19th May 2007 21:30 Edited at: 19th May 2007 22:08
thank you! Soon there will also be a test prgram for everyone!

EDIT: now 5 blocks supported
sample_scene1:

Attachments

Login to view attachments
zzz
15
Years of Service
User Offline
Joined: 13th Nov 2005
Location: Sweden
Posted: 19th May 2007 22:15
Smart move, now you can make your levels in cad.

WII number: 8220 5043 6939 7393
Roxas
15
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 20th May 2007 00:02
And CAD is very powerful for making levels..


[B] - LINKIN PARK - [/B]
Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 20th May 2007 01:31 Edited at: 20th May 2007 01:31
short wip shot: (now 10 block types supported, enough for this night)

Attachments

Login to view attachments
Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 20th May 2007 02:08 Edited at: 20th May 2007 02:19
First demo program.
Loads any .lgo file, but supports only the following 10 types of bricks:


(.zip file attached, all files (c) by me (I made them))

Attachments

Login to view attachments
Xenocythe
15
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 20th May 2007 07:15
Wow, that is some really nice work

Agent Dink
16
Years of Service
User Offline
Joined: 30th Mar 2004
Location:
Posted: 20th May 2007 21:47
Hey, nice! I love the lighting on the bricks too.

I have no signature...
Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 26th May 2007 16:13 Edited at: 26th May 2007 16:41
1st video on youtube! I added DarkPHYSICS to my legos and the results are stunning

here the video (or look @ the first post)

video 1

Attachments

Login to view attachments
Pricey
18
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 26th May 2007 16:51
dude! thats awesome!

Nemesis_0_
17
Years of Service
User Offline
Joined: 26th Dec 2003
Location: Canada
Posted: 26th May 2007 21:29
All your legos are belong to us

~*~ Life Is Temporary, Gaming Is Eternal ~*~
Agent Dink
16
Years of Service
User Offline
Joined: 30th Mar 2004
Location:
Posted: 26th May 2007 21:31
Nice vid. The lighting on the bricks is excellent and the physics look great. Needs good lego collapsing sounds now too!

I have no signature...
Bizar Guy
15
Years of Service
User Offline
Joined: 20th Apr 2005
Location: Bostonland
Posted: 26th May 2007 22:00
Very cool. Are you able to control how much resistance the Lego's have to separating on the tops and bottoms though, because that would feel much more Lego like if something smashed into a Lego building and when it shattered some of the Lego's stuck together.

Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 27th May 2007 00:40 Edited at: 27th May 2007 01:45
hmm, good idea...

i'll try to do this by giving a higher mass to blocks that are next the bottom

EDIT:
it didn't work
dark coder
18
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 27th May 2007 04:53
Try making a joint between random bricks. Also the game looks good I guess, those these recent pics look closer to a glorified object placer .

Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 27th May 2007 18:38
wich joint? 6dof or x or y or z or ...??????
Diggsey
14
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 27th May 2007 19:05
You should just set a very high friction value for the top and bottom of the bricks (If that's possible!)

Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 27th May 2007 19:48 Edited at: 29th May 2007 12:37
I don't think that's possible!

anyway as dark coder said, I added a fixed joint between 2 following objects randomly:



EDIT: it does not work, they break anyway
FROGGIE!
17
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 29th May 2007 18:56
That is awesome, whens the version with dark physics going to be released?
Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 29th May 2007 22:30 Edited at: 29th May 2007 22:31
oh you want this!? ok, I'll upload it.

It loads all the current blocks supported, has much more of my own sample files and buildings and so on...


the controls: firstly, you need to select a flie and detail level, then a temporary dialog appears :

abrissbirne?

yes no

click yes if you wish a big black sphere wich will destroy the model.

then click enter to start the simulation, or space, up, down, ctrl and "F" to place "bombs"

[download available soon]
Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 30th May 2007 17:12
edit of previous post:
press shift to restart the demo

Attachments

Login to view attachments
Zombie 20
14
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 31st May 2007 22:30
That is soooo cool.

TEH_CODERER
17
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 3rd Jun 2007 14:07
Wow!...thats it! Lol! Just wow!

Brain111
14
Years of Service
User Offline
Joined: 5th Feb 2007
Location: In my own little world.
Posted: 3rd Jun 2007 23:17
That was one of the coolest things ive seen in a while. Awesome.
zenassem
17
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 4th Jun 2007 07:04 Edited at: 4th Jun 2007 07:22
[Edit] Ok I just found the link about Block Cad and see that it uses Ldraw already. . But given Block Cads limitations, I have to ask why you wouldn't use MLCAD instead?
[/Edit]

=====

Since all the Lego pieces are already modeled in cad for LDraw and can be used with MLCAD, can't you just work with them?

The license doesn't have many restrictions for part use. But things may have changed a little since I worked with them. Read this letter, and follow the links for more info, the steering committee discussed the revamped licensing on lugnet.


I used povray to render my models, and another an extension to include instructions like factory lego products. All the steps on how to set everything up are in the link.

Heres the File Standards.

indi
18
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 4th Jun 2007 08:49
very cool demonstration.

Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 4th Jun 2007 18:05 Edited at: 4th Jun 2007 18:16
@zenassem

so you want ME to write an importer for the .dat file fromat!?

ok, it's worth a try

EDIT:
ok I looked a bit in the format and it seems to be just like a script with some functions, wich i could port to DarkBASIC.
Anyway, receiving some help at writing the face commands would be nice. (commands that add faces with 3 or 4 sides and a coulour (diffuse and ambient) to a model memblock). Also, wich fvf format do i need to use if I want to be able to specify an ambientCOLOR too?
Green7
15
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: Switzerland
Posted: 4th Jun 2007 22:58
Looks nice, it remains me at old days, sitting in my room, playing with Lego blocks...

Ah ja, u no öppis, u das mues itze eifach si: Bärn, ForTheWin!

BatVink
Moderator
17
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Jun 2007 23:46
Quote: "anyway as dark coder said, I added a fixed joint between 2 following objects randomly
EDIT: it does not work, they break anyway "


Random joints with random break limits would create a much better effect. Then, different sections would break at different speeds. Your break limit in the example was very low anyway.


This is very nice stuff

zenassem
17
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 5th Jun 2007 02:25
@Master Xilo,
Yeah I think you should load the ldraw .dat parts-list into your program. I got confused as to whether you were attempting to model all the lego pieces yourself. And I am still not positive exactly what you are doing. I will need to re-read your post, and demo your app again.

My first read of your post (It was late about 3:00am) I didn't know anything about Block-Cad as I always used MLCAD. After posting I went on to read about block-cad and found out that it also makes use of the standardized ldraw.dat parts-list. But I also read the limitations it had with dealing with flipping parts upside-down, rotations, and restrictions on dynamic flexible parts, like flexible axels, springs, etc...

I tought you were sort of making a lego cad like tool to build lego levels for a game. Let me re-read the entire thread, and make sure I am on the same page.

Wolfee
16
Years of Service
User Offline
Joined: 14th May 2004
Location:
Posted: 9th Jun 2007 23:30
Hi guys!

Master Xilo, this work is very fantastic. But could you tell me some more about LGO format? I try to make a LGO->DBO converter, but i need some help with it. if you cuold give me some links, it would be lovely as well
THX

Wolfee

Wolfee from Hungary
Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 10th Jun 2007 02:03 Edited at: 10th Jun 2007 13:39
could anyone help me to finish writing my .dat (ldraw lego format, ldraw supports all existing bricks, blockcad can also export to .dat) to dbo converting/loading function? I'm done with the half of the work now I think, but I don't get any further , perhaps someone could help?

ask me for the code (and have a look @ the links wich zenassem posted)

EDIT:
it also needs the matrix1util plugin

here a scene of the current wip function. The 2x2 brick works fine, but the top-modelpart of the 2x4bricks and all the rotated bricks seem to be scaled to 0 (and (thats the first time I say this): i don't know why!):

Attachments

Login to view attachments
zavix
14
Years of Service
User Offline
Joined: 2nd Sep 2006
Location: Gone Forever
Posted: 11th Jun 2007 00:38
legos were fun.


but I'm now into the Mega blocks Dragons series.
but I'll still play this demo.

I don't care what they say. T3DGM Rules!!!
Dr Manette
15
Years of Service
User Offline
Joined: 17th Jan 2006
Location: BioFox Games hq
Posted: 11th Jun 2007 04:51
Are you using plains for the block's sides? I've found (working with Blender) that plains show only one side and the other is "invisable". This is because plains are one sided. If so, use cubes instead.

If not, then whateves. Looks awesome, btw! Simply awesome.

Master Xilo
14
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 11th Jun 2007 18:07
I already know this, that's called backface culling. But that's not my problem, because this sides eaven don't show if I go inside the brick or disable culling:

set object cull object,0

It's a scaling problem with the matrixes used in the dat format.

Any help would be great!
Aralox
14
Years of Service
User Offline
Joined: 16th Jan 2007
Location: Melbourne
Posted: 6th Oct 2007 02:37
Love it, cant wait to try it.
Im just wondering, what music did you use in the first part of the vid?

Penfold
17
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 6th Oct 2007 15:22
@Xilo , are you still working on the rpg? Myself and others have messages but you don't seem to reply.

'Ooh 'eck chief'...'crumbs'
Glenn Carter
15
Years of Service
User Offline
Joined: 20th Mar 2005
Location: United Kingdom
Posted: 6th Oct 2007 15:27
This is seriously cool and fun! Good stuff.

Glenn Carter

Login to post a reply

Server time is: 2021-03-05 10:46:15
Your offset time is: 2021-03-05 10:46:15