PDA

View Full Version : learning EXpresso question..


leed
07-04-2010, 06:05 PM
hi All...

I am trying to get into EXpresso, and have set myself a small project...

I need to randomise the texture position X and Z on a plane, while it is being cloned in a MoGraph cloner.. so each clone has a different part of the one image on it...


I guess this might be straight forward, but can not find how to wire it up..

Any help welcome...

Lee

mnu
07-05-2010, 08:51 AM
Hi Lee,

do it like this, see file

Best mnu

http://www.entagma.org/download/Texoffset.zip

leed
07-05-2010, 10:57 AM
Hi Lee,

do it like this, see file

Best mnu

http://www.entagma.org/download/Texoffset.zip


Thanks mnu

Will this set up work with a grid of cloner objects also?

Lee

douwe
07-05-2010, 11:18 AM
mmm, interesting file there, manuel.

I was wondering though, as you "Current State to Object" the cloner and give each clone its own texture tag, which of course works just fine in this specific situation ,... Is this necessary ?

Can't you address / access a single clone's texture tag offset directly in expresso, without dropping the Cloner Object ?
Is it to avoid iterating though the Cloner Object (can't you use object list / or the data node ?)

Just trying to figure out the "what's he doings" and "why is he doing its" here.

cheers,
douwe

mnu
07-05-2010, 11:53 AM
Unfortuanately you cannot access the parameters within the c4d generator cache. Well, you can but only via C++. So uxing Xpresso, converting the cloner is the only option in this case. The COFFEE effector might be another possibility but I think even this only affects the standard MoGraph channels. But this is no problem I think, as the functonality of a Cloner can be rebuild easisly wtih Xpresso. You gain a lot more control and speed this way. Nevertheless it would be excellent if Maxon would decide to change the architecture so that the cache could be accessed by Xpresso, too.

best Manuel

leed
07-05-2010, 12:07 PM
Unfortuanately you cannot access the parameters within the c4d generator cache. Well, you can but only via C++. So uxing Xpresso, converting the cloner is the only option in this case. The COFFEE effector might be another possibility but I think even this only affects the standard MoGraph channels. But this is no problem I think, as the functonality of a Cloner can be rebuild easisly wtih Xpresso. You gain a lot more control and speed this way. Nevertheless it would be excellent if Maxon would decide to change the architecture so that the cache could be accessed by Xpresso, too.

best Manuel


Right so you can not access the needed bits in the cloner object to change the texture, without collapsing it....

So I will need to rethink my problem a bit...

You mention rebuild a cloner with XPresso.... perhaps I will look at this.. but just getting my head firmly stuck into the Xpresso is quite new for me ... I do not want to ask too many questions as I need to learn, but the positioning of the objects in the file you sent gives a few pointers.. so thanks for that..

But if I wanted to build a brick wall say, from one brick... is that possible..??

Just to fill you in, I want to learn more about Expresso, so I am trying to create a brick texture creation file, that I can use (or not use) as the case may be, to generate a specific brick course and texture, using one texture offset onto the grid cloner object... I want to use the cloner object because it can randomise the pattern and also I can use the Colour Changer in the tex tag to mix it up a bit more...

But it is early days.. and what I want to do is learn Expresso a bit more...

Thanks

Lee

mnu
07-05-2010, 12:10 PM
Hi Lee,

everything is possible with Xpresso ;-) A brick wall is only a matter of setting the right Y and X values for position based on the ID.

Best Manuel

mnu
07-05-2010, 12:26 PM
Hi again,

this is how I would do a brick wall. Everything but geometry generation is done via Xpresso. To have more bricks just copy one of them and put the copy into the group. Check out the UserData Parameters to adjust the wall. You can change the size of the bricks by selecting them all and change the Cubes size parameter, the wall will apdapt accordingly.

To learn Xpresso, maybe try to add randomness to my setup :-)

Best Manuel

http://www.entagma.org/download/Brickwall01.zip

leed
07-05-2010, 01:06 PM
Hi again,

this is how I would do a brick wall. Everything but geometry generation is done via Xpresso. To have more bricks just copy one of them and put the copy into the group. Check out the UserData Parameters to adjust the wall. You can change the size of the bricks by selecting them all and change the Cubes size parameter, the wall will apdapt accordingly.

To learn Xpresso, maybe try to add randomness to my setup :-)

Best Manuel

http://www.entagma.org/download/Brickwall01.zip


Thanks Manuel

I will look and try to dissect... and add randomness...

Thanks

Lee

mnu
07-05-2010, 05:42 PM
here's what you can do with the file

http://www.entagma.org/download/Brickwall_h264.mov

cheers mnu

leed
07-05-2010, 07:11 PM
here's what you can do with the file

http://www.entagma.org/download/Brickwall_h264.mov

cheers mnu


Nice.... The problem I have at the mo is that there is a lot of depth to the nodes, I am trying to find a refrence to the nodes, to find out what they do.

I will try and recreate the wall.. and see where it gets me...

Thanks

Lee

mnu
07-05-2010, 10:01 PM
To get a nodes reference select one of its parameters in the AM and press Ctrl + F1. To understand the file, reduce to the algorithm first. Sketch out on paper what you're trying to accomplish, then look for the right node to do the job. Keep in mind that you're doing nothing but getting data, changing it and setting it again. So first get the nodes into your interface that link to the objects, then create the ports that deliver all the data you need. Now, that you have all the components in place start to fiddle with the math nodes.

Best Manuel

CGTalk Moderation
07-05-2010, 10:01 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.