PDA

View Full Version : Modeling on the Ground...


H. Ikeda
03-30-2003, 06:27 AM
Hi all,

Did you sometimes bother to adjust positions of objects to place them on the ground after creation and modifying objects?
Almost all objects have their axes at the center of the objects and aren't designed to be on the ground.

But here is a simple but useful way to do this easily, using XPresso. With XPresso, objects are always on the ground even if you'd change sizes and shapes of the objects. (For details, please refer to http://www.cgtalk.com/showthread.php?s=&threadid=52617 )

For primitives, each primitive has each XPresso, as shown in

Primitives on the Ground.zip (http://www.interq.or.jp/aquarius/ikeda3dr/data/cgtalk/Primitives on the Ground.zip)

If you place this c4d file in the folder Library > object, you could easily access these objects through the menu Objects > Object Library. For R8.0 and after, except Cone (R8.1)
When you wish to use each primitive separately, just copy it to a new file, named for example 'Tube on the Ground.'
You'll find a new modeling scheme, where you need not adjust bottom levels of objects.

Updates have been done about that every primitive is controlled with local coordinates (not global) to be easily adjusted by a null object for the ground level. So after creating primitives, you can group them with null objects (usual grouping) such as

http://www.interq.or.jp/aquarius/ikeda3dr/data/cgtalk/ground0.jpg

Group 1, 2 are grouped with different null objects and changed in their ground levels.
Also, in some primitives, orientations are taken into account. You can confirm it by changing orientations of primitives, like X, -X, Y, -Y, Z, -Z (in a few cases, maybe strange though).

For polygon objects, a null object with XPresso 'Null for the Ground' has been provided to place all objects under it (up to 100 objects) on the ground level automatically.

Null for the Ground.c4d (http://www.interq.or.jp/aquarius/ikeda3dr/data/cgtalk/Null for the Ground.c4d)

This is the same as before (R8.1). Even if you modify points at the bottom of polygon objects, the objects are still on the ground again. As in primitives, you'd group objects with some 'Null for the Ground' objects.


Cheers,:)

flingster
03-30-2003, 03:09 PM
saw the work in the earlier thread...but good on ya for sharing very useful trick.
:thumbsup:

H. Ikeda
03-31-2003, 04:01 AM
Thanks, flingster.

Also further comments, suggestions and questions will be appreciated.

Best wishes,:cool:

JIII
03-31-2003, 04:49 AM
i have nothing to say but thanks.

creart
03-31-2003, 06:29 AM
Especially the null- for the polygonobjects is very useful, Hiroshi.
If you start working by putting a copy of a null for every y-position you want to put a level of a building on, it is now very easy to put your (polygon) object there...

It's too bad that the primitives can't work the same way, but you can always keep a group of original objects and then copy and edit those, which is probably even better, since you keep a group of 'master' objects that way...

So thanks again, Hiroshi!

Hans

creart
03-31-2003, 09:02 AM
Hiroshi,

I have been playing with the null- polygon method..
I haven't looked into Coffee really... would it be possible to get this to work with a group of objects as well? Say you constructed a table, and you've put this in a group - now that doesn't work with your XPresso - you first have to connect everything and then when you put the table in it's ok, but then you miss out on the 'easier' way of texturing and have to use selections, which is ok of course, but takes more time.
So it would be easier to have this working with a group.
Can COFFEE look at the bounding box of a group and decide what the minY is??

cheers

Hans

H. Ikeda
03-31-2003, 12:56 PM
Well, I was thinking about that a little, 'cause the Null for the Ground is not effective for a Figure primitive that has been made editable (i.e., a hierarchical object).
I could say COFFEE can trace all objects in the hierarchy and decide minimum y coordinate. I'll try this soon, but trials by others are also welcome.
But I'm not sure XPresso can do this, though a Hierarchy node, which is a kind of iterator, can trace objects such as DNDN... = Down, Next, Down, Next... So I couldn't say it's impossible with XPresso. Anyway, I'll be thinking also about this.

Cheers,:lightbulb

H. Ikeda
04-02-2003, 12:48 PM
Well, well, not so soon, but not later...:shrug:

BTW, I feel that it may be possible to make a special null with XPresso valid for both primitives and polygons.
This may look like XPresso including full of COFFEE nodes. Almost COFFEE expression? Right, but you could understand somewhat easily what's going on in the XPresso, rather than pure COFFEE expression.

:annoyed: :wip:

creart
04-02-2003, 02:32 PM
Sounds good Hiroshi!

My problem unfortunately is I'm not to 'loose' on COFFEE and that's apart from the lack of time to test these kind of things..

I have been testbuilding a complex using your null-polygon method and it really is a LOT simpler!!! Now it's a breeze building a couple of walls under the 0-level null and then copying those to the 1-level null or higher and they jump to the proper y straight away - yep - really very good!!!!

cheers

Hans

H. Ikeda
04-05-2003, 01:54 PM
Thanks, creart. Maybe simple is the best.:)

BTW, before a unified version of Ground Null, a R7 version has been uploaded (for XL7 users):

Ground for R7.zip (http://www.interq.or.jp/aquarius/ikeda3dr/data/cgtalk/Ground for R7.zip)

In this folder, there are two files, one for primitives, another for polygons (that is, not unified).

Cheers, :cool:

creart
04-05-2003, 04:51 PM
I'll take a look at it as soon as possible
I am using it with R8.1 by the way....

cheers Hans :wavey:

flingster
04-05-2003, 05:44 PM
H. Ikeda: hey bud....what about instant coffee...don't ask me cos i don't understand this programming/scripting lark...lifes to short....but surely your new plugin concept would be well cool for functions like this...eg align to object normal/plane/objectname etc...offset...objectname join objectname....whatever hopefully you get the idea..:thumbsup:

H. Ikeda
04-06-2003, 01:35 AM
creart: I know. That's for XL7 users. Sorry for poor explanation.
flingster: That's good and possible. And basically instant COFFEE supports commands, which mean they act just once (e.g., just place an object on the ground), while XPresso (expression) means it acts always (e.g., a primitive still on the ground after being changed in size).
Instant COFFEE can be a handy tool for just placing objects on the ground though. I'll add this command.

Thanks, :)

H. Ikeda
04-06-2003, 06:50 AM
So here are unified versions of Ground series for both primitives and polygons, 'Ground Nulls,'

Ground Null.zip(R8.1) (http://www.interq.or.jp/aquarius/ikeda3dr/data/cgtalk/Ground Null.zip)

Ground Null for R7.zip (http://www.interq.or.jp/aquarius/ikeda3dr/data/cgtalk/Ground Null for R7.zip)

Unfortunately, R8 Null now cannot access capsule, cylinder and oiltank primitives maybe due to some problems of COFFEE in R8. For these objects, just use objects with XPresso in Primitives on the Ground. For R7, this is not the case and its functions are perfect ironically...

These Ground Nulls support ground leveling for both primitive and polygon objects, together with a group of object with a null. As a group, complex hierarchy is neglected and just children of the null are accessed. A simple case is shown as below.

http://www.interq.or.jp/aquarius/ikeda3dr/data/cgtalk/gnull.jpg

Have fun,

flingster
04-06-2003, 12:20 PM
cool...thanks for the file.:buttrock:

AdamT
04-06-2003, 03:48 PM
Thanks Hiroshi!

H. Ikeda
04-07-2003, 02:22 PM
flingster, AdamT: You're welcome.

Also to people who have downloaded it for their valuable work.

cheers,:beer:

creart
04-07-2003, 02:34 PM
Yes Hiroshi, I also really appreciate the work and effort you're putting into this - I just haven't had too much time to check everything out yet, but guys like you make certain things that guys like us can come up with, so much easier!!!

Thanx again!!!!

nhytro
11-28-2004, 12:49 AM
Hi Hiroshi! Ccould I have the expression too? I could not download it from the link because the file does not exist on your server anymore.


thanks

Ric535
11-28-2004, 08:22 AM
or try this

http://www.renderosity.com/freestuff.ez?Topsectionid=12&Sectionid=92

nhytro
11-30-2004, 07:14 PM
Cool, thanks Ric :)

CGTalk Moderation
01-14-2006, 06:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.