Re: The CGI Thread

http://www.nickdurron.com/Misc/MansionTest01.jpg
This is basically a concept test for a new film I might make. I did this in Cinema 4D as opposed to my usual Carrara.

Re: The CGI Thread

One word: Amazing mini/eek

mod edit: Ohai there Mod, you alright?
http://www.bricklink.com/store.asp?p=DWStorm
^^^^Check out my bricklink store ^^^^

Re: The CGI Thread

Did you shape the bricks in Cinema 4D or did you just import them? It looks fantastic by the way, but the one problem that I think would come up is making it look like it's real. If you have the CGI, and then animate another scene which is supposedly which is made out of LEGO, The texture wouldn't match. Correct me if I'm wrong or if you have a way of fixing that.

Re: The CGI Thread

It looks quite nice but, yeah, not real. I think it would be challenging to get it to look real that close up. I feel like there should be some visible reflectivity to the bricks, also the softness of the shadows betrays it somewhat.

Smeagol, who still hasn't gotten around to reading that script but will do it, uh, sometime

http://i.imgur.com/wcmcdmf.png

Re: The CGI Thread

Mason wrote:

Did you shape the bricks in Cinema 4D or did you just import them?

I imported them. I've considered modeling them myself, but the MLCad parts look fine for objects like this that are mostly basic bricks.

I can't say I'm trying to get it looking as realistic as possible. I like this sort of stylized look, and my plan is to have all the exterior elements except for the minifigures be CGI, so it should be consistent.

Re: The CGI Thread

So did you have to do any tweaking to get those gaps-between-pieces to appear after you imported to Cinema 4D?

https://i.imgur.com/4b9NnS3.pnghttps://i.imgur.com/GUIl0qk.pnghttps://i.imgur.com/ox64uld.pnghttps://i.imgur.com/v3iyhE5.png

Re: The CGI Thread

Not much. I selected all the pieces and, after centering their axes, set the scale to .99.

Re: The CGI Thread

It looks Great!

http://i.imgur.com/lZUQ9.pnghttp://i.imgur.com/9CQIM.pnghttp://i.imgur.com/YZLtR.pnghttp://i.imgur.com/ICcjc.png

Re: The CGI Thread

Looks amazing Nick!  The only problem is, as other people have said, that the CGI does not look like real LEGO bricks.

Just to bring this back up again: In one of our next films, we need extensive CGI props.  We like using Carrara for pretty much everything, however since there isn't really a way to put spaces between bricks in Carrara (at least in Carrara 5), we decided to put spaces between the bricks in Blender and then export the 3ds file into Carrara.  However, when we tried to use the LDraw importer to import 3ds models, it only showed dots and lines:
http://www.brickshelf.com/gallery/BuilderBrothers/MOCs/blenderpic.png
Does anyone know if there is perhaps a certain order in which you have to install Blender, Python, and the LDraw Importer?  Or even better, does anyone know of a fairly easy way to put spaces between bricks in Carrara 5?

http://www.brickshelf.com/gallery/BuilderBrothers/signatures/thac14sig.png

Re: The CGI Thread

I think Smeagol once said that he used a deformer to automatically spread the bricks apart slightly in Carrara. Maybe you should try that. mini/smile

EDIT: Or, as Cartoonkid said below, you don't need an importer. Open the LDraw file in LeoCad, and export it from there.

Last edited by StudioL30 (January 23, 2011 (10:52am))

http://www.majhost.com/gallery/StudioL30/Random-Pictures/youtube.jpghttp://www.majhost.com/gallery/StudioL30/Random-Pictures/sitelogo.jpg

Re: The CGI Thread

You can import .3ds into Blender without a special importer.

"every day I feel more pleased that sigging isn't a thing anymore" - Squash
YOUTUBE | Will voice act, ping me in the discord.
03:52    Smeagol    I should send girls turds in a box
01:28    Smeagol    That signature leaves me wondering if I should be sending more girls more turds in boxes than I presently am

Re: The CGI Thread

But you will lose the advantage of parts inheritance that the Ldraw importer provides.  The ldraw importer essentially imports the dat files from your ldraw parts folder.  And whatever changes you make to one piece applies to all copies of that piece in the model you imported because what the Ldraw importer does when importing the dat files is treat the same dat file as a duplicate and not as an individual piece.  You don't get that by exporting to 3ds via LeoCAD.

Plus LeoCAD does not always update its parts library the way Ldraw does so each time you update Ldraw's folder on your computer, you need to manually import them in LeoCAD.

For example: a 1x1 plate.  If you have multiple 1x1 plate in your model, all the 1x1 plates will receive the same changes you made to one plate.

I thought you had this problem solved six pages ago, BuilderBrothers.  If it helps, my Ldraw folder is directly under the C drive and the script is in C:\users\[Username]\AppData\Roaming\Blender Foundation\Blender\.blender\scripts and I have Python 2.5 installed.

Now in my opinion: the scaling is a simple but cheap way of creating gaps between pieces.  It looks good from far away, but up close, you won't see smooth corners that we see with real bricks.  I'm not sure about the deformer in Carrara but if you did use it, you would have to repeatedly apply the modifier to every individual piece.

I think I should create a thread for this...

https://i.imgur.com/4b9NnS3.pnghttps://i.imgur.com/GUIl0qk.pnghttps://i.imgur.com/ox64uld.pnghttps://i.imgur.com/v3iyhE5.png

Re: The CGI Thread

We are feeling extreme frusteration right now.  We keep thinking that we have solved the problem, but then we find that it did nothing.  It can't seem to find any of the parts we have installed, and yet we installed everything in the correct directory!  We have LDraw installed in C:\Program Files\LDraw and we have Blender and the LDraw plugin installed right where Lechnology had his installed!  Here is yet another picture of an error that we experienced:
http://www.brickshelf.com/gallery/BuilderBrothers/MOCs/blenderproblem2.png

http://www.brickshelf.com/gallery/BuilderBrothers/signatures/thac14sig.png

Re: The CGI Thread

To clarify, my parts folder is under C:\Ldraw\, not C:\Program Files\LDraw.  I just looked at the Ldraw importer code and the LDrawPath variable is set to "C:\Ldraw" (it's on the 91 line of the code)

...
from Blender.Mathutils import *
LDrawPath="C:\Ldraw"      # LDRAW base installation directory
Scale=0.05                # 1 Lego unit in Blender Unit
...

Two ways you can fix this, change your ldraw folder's location to C:\Ldraw or just change the code to what your actual path is.

...
LDrawPath="C:\Program Files\LDraw"      # LDRAW base installation directory
...
https://i.imgur.com/4b9NnS3.pnghttps://i.imgur.com/GUIl0qk.pnghttps://i.imgur.com/ox64uld.pnghttps://i.imgur.com/v3iyhE5.png

Re: The CGI Thread

Thanks a million! mini/bigsmile That fixed it right away.  You can't imagine how grateful we are!

http://www.brickshelf.com/gallery/BuilderBrothers/signatures/thac14sig.png

Re: The CGI Thread

when I import stuff from leocad, the anchor point is the same for every brick, and it's often way far away from the model itself.  is there a way to fix that problem?

Youtube | Twitter
"Animation is about creating the illusion of life. And you can't create it if you don't have one." - Brad Bird

Re: The CGI Thread

Shift+Alt+Ctrl+C. It will have a dialog on what you want, if it doesn't work, undo it and select another option. I would tell you all of the options, but it seems my mind is a little slippery right now.

EDIT: I now seem to be having the same problem as BB. I did everything Lechnology said to do, and I have python installed. If it helps, my Blender 2.49 folder is in the D:\ driver (That's also where my LDraw\Parts folder is, and that's where my script is set to). Also another note, I did not download the installer, I downloaded the zipped/compressed file.

Last edited by Juggernaut Pictures (January 24, 2011 (10:32am))

http://tinyurl.com/krwj4ek
http://tinyurl.com/kvxr6umhttp://tinyurl.com/kxofj4mhttp://tinyurl.com/k5fw3syhttp://tinyurl.com/m4rv8tf

Re: The CGI Thread

Just another quick Blender question: Is there any particular increment with which you should bevel the brick, or do you have to do all the beveling manually?  We want the bevels to look the same for every single brick, but we can't seem to do that manually.

http://www.brickshelf.com/gallery/BuilderBrothers/signatures/thac14sig.png

Re: The CGI Thread

Juggernaut Pictures wrote:

Shift+Alt+Ctrl+C. It will have a dialog on what you want, if it doesn't work, undo it and select another option. I would tell you all of the options, but it seems my mind is a little slippery right now.

thanks so much! I've been wondering how to do that for the longest time

Youtube | Twitter
"Animation is about creating the illusion of life. And you can't create it if you don't have one." - Brad Bird

Re: The CGI Thread

BuilderBrothers wrote:

Just another quick Blender question: Is there any particular increment with which you should bevel the brick, or do you have to do all the beveling manually?  We want the bevels to look the same for every single brick, but we can't seem to do that manually.

Bevel the cut for one in the preview settings for faster roaming, but make the render cut for 2. Then, in edit mode, add a few loop cuts to make it strait again. Now, this is the 2.5 version of bevel, but I'm pretty sure it's the same for 2.49, being that I've used both.

Stan the Lego Man wrote:

thanks so much!

You're welcome mini/wink .

Last edited by Juggernaut Pictures (January 24, 2011 (10:24am))

http://tinyurl.com/krwj4ek
http://tinyurl.com/kvxr6umhttp://tinyurl.com/kxofj4mhttp://tinyurl.com/k5fw3syhttp://tinyurl.com/m4rv8tf