texture transparent problem

Started by qjvictor, December 06, 2006, 03:48:51 PM

Previous topic - Next topic

qjvictor

2 Objects, I will merge them into one object.
Can I make one object's texture transparent, while the other one is normal?
Thanks

EgonOlsen

No. Transparency is object based. You have to use one object for the opaque parts and one for the transparent parts.

Mizuki Takase

Making sure, instead of merging the two objects, I can simply just have the main Object3D call addChild(<transparent object>) right?

qjvictor

does addChild work?
I had a test, when using addChild, the child object is missing.

when the parent object is built, and added to the world, will  the child object be automatically built and added to the world?
And the same, if the parent object is translated to specific positions, will the child be translated?

And will child object remain the position information in 3ds file when it becomes a child of others?

So many questions,  :(

Mizuki Takase

I always believed that addChild(Objcet3D) is supposed to be used for situations like you have described... I have no idea why your child object went missing...

Yes, whenever the parent gets modified, the child should inherit the translations as well. As quoted from the javadoc...
QuoteDefines an object as a child of this. A child object will inherit all transformations.

To tell the truth, I am not sure about all of the other questions that you have asked since I have not really tried it out before...

EgonOlsen

Child inherit all transformations, i.e. translations, rotations, scaling. Everything else (adding them to the world etc.) is unaffected by the child-parent-relation. You have to do this as if the child wouldn't be a child.

cyberkilla

I wonder, not meaning to highjack the thread;)...

What happens to childobjects if the parent is subjected to keyframe animation?
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

EgonOlsen

Nothing. It doesn't affect the childs.

cyberkilla

Danke. Now I know ill be making independent keyframes for each
item of clothing.

I am still going to suffer severely from Z-Fighting:)
No idea how I will avoid this.
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

EgonOlsen

Do have a screenshot of this problem?

cyberkilla

Quote from: "EgonOlsen"Do have a screenshot of this problem?

I do not, but I will have one posted in the next few hours.

I am in awe of what you have created here;).
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG