AttachEntityObject weird things...

Everything related to 3D programming
User avatar
minimy
Enthusiast
Enthusiast
Posts: 619
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

AttachEntityObject weird things...

Post by minimy »

Hi, I have an animated entity with bones, when I connect another object to the entity without defining the bone everything goes well. But when I specify the bone, the object disappears. I have tried other bones and the same result.
If I disconnect the object it appears where it should be, but when I reconnect it disappears again.
What can it be?

AttachEntityObject(prota, "", EntityID(1)); This work fine.
AttachEntityObject(prota, "head", EntityID(1)); no work or object is invisible??. :shock:
Coordinates are right because when unlink the object is in the right position.

I was looking the examples an work fine but with my animated object no work.

Sorry ,the code is long to put here.

Objects modeled and texturized by me, with normalmap look better :mrgreen:
Image
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
minimy
Enthusiast
Enthusiast
Posts: 619
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: AttachEntityObject weird things...

Post by minimy »

No work with both entitys, the dog and the man and all the objects what i got.
The bone name is 'head' but i try with others like 'R_hand', 'L_foot' and more but no work :?
Tested with PB 6.02 and 6.12, the weird thing is the examples included in PB work... is crazy!! :mrgreen:
If translation=Error: reply="Sorry, Im Spanish": Endif
miso
Enthusiast
Enthusiast
Posts: 466
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: AttachEntityObject weird things...

Post by miso »

I can't figure out this, but maybe the object inherits something from the bone. Scale maybe?
Please try 6.20 beta, a lot of 3d bugfixes had been made there.
User avatar
minimy
Enthusiast
Enthusiast
Posts: 619
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: AttachEntityObject weird things...

Post by minimy »

miso wrote: Fri Feb 07, 2025 4:42 pm I can't figure out this, but maybe the object inherits something from the bone. Scale maybe?
Hey miso, you are the best! allways helping.
May be, because the object is scaled to 0.005 :lol:

YEEESSS!! is the scale
Thank you very much friend! You are a 3D master!
I learn a lot with your help.
If translation=Error: reply="Sorry, Im Spanish": Endif
miso
Enthusiast
Enthusiast
Posts: 466
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: AttachEntityObject weird things...

Post by miso »

You are a 3D master!
I wish I was, but that's not true. Your compliment felt good though, ;)
Post Reply