PDA

View Full Version : 3D Canvas and Attachment Points


Len12
June 16th, 2009, 09:50 PM
3D Canvas has a plug-in to implement the attachment points noted in the CCP document. I made such an attachment point. It's this form -

The scene hierarchy is of the following form:

a.attach---Pointer.

Using some standard nomenclature in the CCP manual I called the Pointer 'a.smoke' (chimney from a building) with the word for word example in the CCP:


smoke0
{
attachment a.smoke
mode timeofday
color 150,150,150,250
accel 1,0.3,0

start 0.25,0.5
period 0.25,0.125
rate 8
velocity 3
lifetime 5
minisize 0.5
maxsize 2
}

Problem: I get two error messages when compiled stating:
Error: Attachment point attachment (a.smoke) in 'smoke0' was not found.
Error: The tag 'minisize' is not permitted within this container. (Container type 'smoke0')

I changed up the naming as well for example in 3DC a.attach to 'a.smoke' and leaving Pointer as Pointer or naming both a.smoke and the same errors.

Anybody have any ideas?
Thanks.

ianwoodmore
June 16th, 2009, 10:45 PM
Use minsize instead of minisize. Not sure on attachments but I note that in other similar smoke containers - attachment "a.smoke"

gfisher
June 17th, 2009, 09:18 AM
I always use:

attachment a.smoke0

I think you need the number indication.

Len12
June 17th, 2009, 09:18 AM
Use minsize instead of minisize. Not sure on attachments but I note that in other similar smoke containers - attachment "a.smoke"

Thanks I'll try that.

Len12
June 17th, 2009, 09:21 AM
I always use:

attachment a.smoke0

I think you need the number indication.


Ok I'll do that. I'm assuming 'pointer' just stays as is and doesn't need to be renamed.

Jerker
June 17th, 2009, 10:18 AM
G'day len12,

In all my limited experience with these matters, I have always found that the name you give to the "a.attachment" point in the config.txt MUST match the name you give to the point in the mesh. This, at least, applies to 3ds MAx. For example if you name the actual attachment point in the mesh "a.attach---pointer", then the config.txt must read...

"attachment a.attachment---pointer".

...if the config.txt reads "attachment a.smoke0", then the actual attachment point must be labelled..

"a.smoke0".

I think you will find that the CCG (without actually saying so), alludes to the need for an "alphanumeric" naming convention...

...Jerker {:)}

Len12
June 17th, 2009, 02:50 PM
G'day len12,

In all my limited experience with these matters, I have always found that the name you give to the "a.attachment" point in the config.txt MUST match the name you give to the point in the mesh. This, at least, applies to 3ds MAx. For example if you name the actual attachment point in the mesh "a.attach---pointer", then the config.txt must read...

"attachment a.attachment---pointer".

...if the config.txt reads "attachment a.smoke0", then the actual attachment point must be labelled..

"a.smoke0".

I think you will find that the CCG (without actually saying so), alludes to the need for an "alphanumeric" naming convention...

...Jerker {:)}

Yeah it's idiotic when you think about it. In the manual the example starts as 'smoke0' then in the instruction on the attachment 'a.smoke'. So I named the attachment 'a.smoke' and in the config. file set it out exactly as smoke0 to start then 'a.smoke' as the named attachment. Confusing really. So in this case the name should be 'a.smoke0' and in the config. file 'smoke0' to begin the instruction with 'a.smoke0' as the named attachment.:confused:

Len12
June 17th, 2009, 05:13 PM
Use minsize instead of minisize. Not sure on attachments but I note that in other similar smoke containers - attachment "a.smoke"

Thanks for catching that one that got rid of one of the errors.