The Game Creators
The Game Creators Home Online Shop Click to Login
  Hot: Christmas CompetitionNovember NewsletterModel Pack 36DB Pro Pack 2009DGS BonanzaCharacter PackFPS Creator Bonanza;
The Game Creators
WIP / DarkLEGO - BlockCAD in DBPro

Go to the first page of this board Return to the Forum Menu Post Message
39 Messages - Page   of 1   
Bookmark and Share Search the Forum

Author Message
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 19th May 2007 11:22     Edited: 14th Jan 2008 14:40     | link | toggle



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

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:+ Code Snippet
2456 = 2x6 
3001 = 2x4 
3002 = 2x3 
3003 = 2x2
3009 = 1x6
3010 = 1x4
3662 = 1x3 
3004 = 1x2 
3005 = 1x1


3039 = 2x2 slope 


demo prog with physics


IMAGES:





Back to top
Hurricane-Eye Entertainment
Download: blockcad1.jpg Size: 189022 bytes  View Image: blockcad1.jpg Size: 189022 bytesReport this message as abusive
Alquerian

User


Joined: Wed Mar 29th 2006
Location: Northern California
Posted: 19th May 2007 13:18           | link | toggle

You and your Legos... This is totally awesome!

Visit the Wip!
Back to top
Fantasy Multimedia
Report this message as abusive
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 19th May 2007 13:30     Edited: 19th May 2007 14:08     | link | toggle

thank you! Soon there will also be a test prgram for everyone!

EDIT: now 5 blocks supported
sample_scene1:
Back to top
Hurricane-Eye Entertainment
Download: blockcad2.jpg Size: 124559 bytes  View Image: blockcad2.jpg Size: 124559 bytesReport this message as abusive
zzz

User


Joined: Sun Nov 13th 2005
Location: Sweden
Posted: 19th May 2007 14:15           | link | toggle

Smart move, now you can make your levels in cad.

WII number: 8220 5043 6939 7393
Back to top
Soulhunter
Report this message as abusive
Roxas

User


Joined: Fri Nov 11th 2005
Location: http://forum.thegamecreators.com
Posted: 19th May 2007 16:02           | link | toggle

And CAD is very powerful for making levels..


[B] - LINKIN PARK - [/B]
Back to top
Report this message as abusive
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 19th May 2007 17:31     Edited: 19th May 2007 17:31     | link | toggle

short wip shot: (now 10 block types supported, enough for this night)
Back to top
Hurricane-Eye Entertainment
Download: bc3.jpg Size: 103614 bytes  View Image: bc3.jpg Size: 103614 bytesReport this message as abusive
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 19th May 2007 18:08     Edited: 19th May 2007 18:19     | link | toggle

First demo program.
Loads any .lgo file, but supports only the following 10 types of bricks:
+ Code Snippet
2456 = 2x6 
3001 = 2x4 
3002 = 2x3 
3003 = 2x2
3009 = 1x6
3010 = 1x4
3662 = 1x3 
3004 = 1x2 
3005 = 1x1


3039 = 2x2 slope 


(.zip file attached, all files (c) by me (I made them))
Back to top
Hurricane-Eye Entertainment
Download: blockcad in dbprodemo.zip Size: 2966764 bytesReport this message as abusive
Xenocythe

User


Joined: Thu May 26th 2005
Location: You Essay.
Posted: 19th May 2007 23:15           | link | toggle

Wow, that is some really nice work

Back to top
XenMedia.org
Report this message as abusive
Agent Dink

User


Joined: Tue Mar 30th 2004
Location: Most likely my bedroom
Posted: 20th May 2007 13:47           | link | toggle

Hey, nice! I love the lighting on the bricks too.

I have no signature...
Back to top
Free stuff, forums, info on projects... Send AIM user a message
Report this message as abusive
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 26th May 2007 08:13     Edited: 26th May 2007 08:41     | link | toggle

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
Back to top
Hurricane-Eye Entertainment
Download: Ohne Titel-2 Kopie.jpg Size: 48549 bytes  View Image: Ohne Titel-2 Kopie.jpg Size: 48549 bytesReport this message as abusive
Pricey

User


Joined: Sat Feb 22nd 2003
Location: Cyberspace
Posted: 26th May 2007 08:51           | link | toggle

dude! thats awesome!

Back to top
Report this message as abusive
Nemesis_0_

User


Joined: Fri Dec 26th 2003
Location: Canada
Posted: 26th May 2007 13:29           | link | toggle

All your legos are belong to us

~*~ Life Is Temporary, Gaming Is Eternal ~*~
Back to top
Report this message as abusive
Agent Dink

User


Joined: Tue Mar 30th 2004
Location: Most likely my bedroom
Posted: 26th May 2007 13:31           | link | toggle

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...
Back to top
Free stuff, forums, info on projects... Send AIM user a message
Report this message as abusive
Bizar Guy

User


Joined: Wed Apr 20th 2005
Location: Collegeland
Posted: 26th May 2007 14:00           | link | toggle

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.

Back to top
http://www.bizargames.com
Report this message as abusive
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 26th May 2007 16:40     Edited: 26th May 2007 17:45     | link | toggle

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
Back to top
Hurricane-Eye Entertainment
Report this message as abusive
dark coder

User


Joined: Sun Oct 6th 2002
Location: Japan
Posted: 26th May 2007 20:53           | link | toggle

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 .

Back to top
darkcoder
Report this message as abusive
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 27th May 2007 10:38           | link | toggle

wich joint? 6dof or x or y or z or ...??????
Back to top
Hurricane-Eye Entertainment
Report this message as abusive
Diggsey

User


Joined: Mon Apr 24th 2006
Location: On this web page.
Posted: 27th May 2007 11:05           | link | toggle

You should just set a very high friction value for the top and bottom of the bricks (If that's possible!)

Back to top
http://diggsey.heliohost.org/
Report this message as abusive
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 27th May 2007 11:48     Edited: 29th May 2007 04:37     | link | toggle

I don't think that's possible!

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

+ Code Snippet
if rnd(1) and object exist(object-1)
   phy make fixed joint joint+1, object, object-1
   phy set joint break limits 1, 10, 10
   inc joint
endif


EDIT: it does not work, they break anyway
Back to top
Hurricane-Eye Entertainment
Report this message as abusive
Google Ad
Back to top
 
FROGGIE!

User


Joined: Sat Oct 4th 2003
Location: in front of my computer
Posted: 29th May 2007 10:56           | link | toggle

That is awesome, whens the version with dark physics going to be released?
Back to top
Report this message as abusive
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 29th May 2007 14:30     Edited: 29th May 2007 14:31     | link | toggle

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]
Back to top
Hurricane-Eye Entertainment
Report this message as abusive
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 30th May 2007 09:12           | link | toggle

edit of previous post:
press shift to restart the demo
Back to top
Hurricane-Eye Entertainment
Download: darklegoanddarkphysicsdemo.zip Size: 3812353 bytesReport this message as abusive
Zombie 20

User


Joined: Sun Nov 26th 2006
Location: Etters, PA
Posted: 31st May 2007 14:30           | link | toggle

That is soooo cool.

Back to top
Send AIM user a message
Report this message as abusive
TEH_CODERER

User


Joined: Wed Nov 12th 2003
Location: Right behind you!
Posted: 3rd Jun 2007 06:07           | link | toggle

Wow!...thats it! Lol! Just wow!

Back to top
Report this message as abusive
Brain111

User


Joined: Mon Feb 5th 2007
Location: In my own little world.
Posted: 3rd Jun 2007 15:17           | link | toggle

That was one of the coolest things ive seen in a while. Awesome.
Back to top
Report this message as abusive
zenassem

User


Joined: Mon Mar 10th 2003
Location: Long Island, NY
Posted: 3rd Jun 2007 23:04     Edited: 3rd Jun 2007 23:22     | link | toggle

[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.

Back to top
Report this message as abusive
indi

User


Joined: Mon Aug 26th 2002
Location: Earth, Brisbane, Australia
Posted: 4th Jun 2007 00:49           | link | toggle

very cool demonstration.

Back to top
Report this message as abusive
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 4th Jun 2007 10:05     Edited: 4th Jun 2007 10:16     | link | toggle

@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?
Back to top
Hurricane-Eye Entertainment
Report this message as abusive
Green7

User


Joined: Wed Nov 23rd 2005
Location: Worb, Switzerland
Posted: 4th Jun 2007 14:58           | link | toggle

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!

Back to top
http://turtle.freezoka.com
Report this message as abusive
BatVink

TGC Newsletter Editor


Joined: Fri Apr 4th 2003
Location: Chilling
Posted: 4th Jun 2007 15:46           | link | toggle

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

Back to top
The Biglaugh
Report this message as abusive
zenassem

User


Joined: Mon Mar 10th 2003
Location: Long Island, NY
Posted: 4th Jun 2007 18:25           | link | toggle

@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.

Back to top
Report this message as abusive
Wolfee

User


Joined: Fri May 14th 2004
Location: Cyberspace
Posted: 9th Jun 2007 15:30           | link | toggle

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
Back to top
Report this message as abusive
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 9th Jun 2007 18:03     Edited: 10th Jun 2007 05:39     | link | toggle

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!):
Back to top
Hurricane-Eye Entertainment
Download: dat1.jpg Size: 36435 bytes  View Image: dat1.jpg Size: 36435 bytesReport this message as abusive
zavix

User


Joined: Sat Sep 2nd 2006
Location: hiding in solitude. away from all.
Posted: 10th Jun 2007 16:38           | link | toggle

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!!!
Back to top
Report this message as abusive
Dr Manette

User


Joined: Tue Jan 17th 2006
Location: BioFox Games hq
Posted: 10th Jun 2007 20:51           | link | toggle

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.

Back to top
BioFox Games
Report this message as abusive
Master Xilo

User


Joined: Fri Sep 8th 2006
Location: Bern, Switzerland
Posted: 11th Jun 2007 10:07           | link | toggle

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!
Back to top
Hurricane-Eye Entertainment
Report this message as abusive
Aralox

User


Joined: Tue Jan 16th 2007
Location: Melbourne
Posted: 5th Oct 2007 18:37           | link | toggle

Love it, cant wait to try it.
Im just wondering, what music did you use in the first part of the vid?

Back to top
Aralox
Report this message as abusive
Penfold

User


Joined: Wed Dec 3rd 2003
Location: RED postbox houses of parliment
Posted: 6th Oct 2007 07:22           | link | toggle

@Xilo , are you still working on the rpg? Myself and others have messages but you don't seem to reply.

'Ooh 'eck chief'...'crumbs'
Back to top
Report this message as abusive
Glenn Carter

User


Joined: Sun Mar 20th 2005
Location: United Kingdom
Posted: 6th Oct 2007 07:27           | link | toggle

This is seriously cool and fun! Good stuff.

Glenn Carter
Back to top
Eclipse Development Studio UK
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
39 Messages - Page   of 1   
Search the Forum

Sorry, but it has been so long since anyone replied to this Thread that it has been automatically locked.
You may read it but not reply.

Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Dark Game Studio
Privacy Policy AUP Top of Page