[x3d-public] Hide Jin “mini-me”
John Carlson
yottzumm at gmail.com
Fri May 9 00:20:02 PDT 2025
Joe,
Wouldn’t it be easiest to turn on of off transparency in the Material nodes?
I can do this, but it seems very easy? Am I missing something?
Oh, you want to change DEF/USE=SkeletonColor Color nodes to ColorRGBA? I
can do that!
Anything else?
John
On Wed, May 7, 2025 at 2:09 PM John Carlson <yottzumm at gmail.com> wrote:
> Just how many switches or switch states do you want? You want to turn off
> Joint, segment and site geometry? Do you want the switch nodes nested?
> Something fine grained?
>
> If Joints can have Switch or Grouping children, things might be easier!
> But switching off a DEF geometry is probably easy enough.
>
> John
>
> On Wed, May 7, 2025 at 10:49 AM Joe D Williams <joedwil at earthlink.net>
> wrote:
>
>> Fine, I want to continue working on this model.
>>
>> Now. please turn off and on different parts on main character.
>>
>> Thanks,
>>
>> Joe
>>
>>
>>
>> -----Original Message-----
>> From: John Carlson <yottzumm at gmail.com>
>> Sent: May 7, 2025 12:59 AM
>> To: Joe D Williams <joedwil at earthlink.net>
>> Cc: <hanim at web3d.org>
>> Subject: Re: Hide Jin “mini-me”
>>
>>
>> Joe,
>>
>> For your approval. Switching the whichChoice from 1 to 0 will reveal Jin
>> mini-me, Switching to 1 will hide Jin mini-me.
>>
>> This is with my Demo5, so there's some skin there.
>>
>> Cool beans.
>>
>> John
>>
>> On Wed, May 7, 2025 at 2:16 AM John Carlson <yottzumm at gmail.com> wrote:
>>
>>> Please try to understand the specification.
>>>
>>> Here’s an x3dom tutorial:
>>>
>>> https://doc.x3dom.org/tutorials/animationInteraction/switch/index.html
>>>
>>> I believe I used it for Jin FACS to switch between inlines.
>>>
>>> What I will do is implement it, if you send a recent Jin. No editing
>>> effort on your part.
>>>
>>> John
>>>
>>> On Wed, May 7, 2025 at 2:11 AM Joe D Williams <joedwil at earthlink.net>
>>> wrote:
>>>
>>>> are you sure the Switch will work like you think it will?
>>>>
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: John Carlson <yottzumm at gmail.com>
>>>> Sent: May 7, 2025 12:07 AM
>>>> To: Joe D Williams <joedwil at earthlink.net>
>>>> Cc: <hanim at web3d.org>
>>>> Subject: Re: Hide Jin “mini-me”
>>>>
>>>>
>>>> I’ve made small improvements below.
>>>>
>>>> On Wed, May 7, 2025 at 1:52 AM John Carlson <yottzumm at gmail.com> wrote:
>>>>
>>>>> The Switch node selects one of its children nodes to be visible. The
>>>>> whichChoice SFInt32 field can be set or changed to select a child to be
>>>>> visible and others not. -1 means none visible, if you have a group node
>>>>> (mini-me) you want invisible, with DEFs, you can put that at choice 0
>>>>> (first node), and the humanoid (Jin) at choice 1 (second node), then change
>>>>> the whichChoice node to 1 to select the humanoid.
>>>>>
>>>>> Note that ROUTEs are not affected by Switch, but hidden nodes won’t be
>>>>> animated, or at least not visibly animated.
>>>>>
>>>>> Switch is a Grouping component node:
>>>>>
>>>>> https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/grouping.html#Switch
>>>>>
>>>>> Hope that helps! The reason I chose Switch was because I wanted to
>>>>> handle lots of types of geometry, like Text, Curves, etc.
>>>>>
>>>>> John
>>>>>
>>>>> On Wed, May 7, 2025 at 1:40 AM Joe D Williams <joedwil at earthlink.net>
>>>>> wrote:
>>>>>
>>>>>> Hi John,
>>>>>>
>>>>>> well yes the way it is done allows the mini to show but you better
>>>>>> test,
>>>>>>
>>>>>> How can you switch out the DEFs (for the geometry) without affecting
>>>>>>
>>>>>> the USE?
>>>>>>
>>>>>> Joe
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --Original Message-----
>>>>>> From: <yottzumm at gmail.com>
>>>>>> Sent: May 6, 2025 5:19 PM
>>>>>> To: <hanim at web3d.org>, Joe D Williams <joedwil at earthlink.net>
>>>>>> Subject: Hide Jin “mini-me”
>>>>>>
>>>>>>
>>>>>>
>>>>>> Joe, I’d like to suggest the “Switching” out of “mini-me” Jin in the
>>>>>> Jin series using a Switch node to hide DEF transforms and DEF shapes that
>>>>>> are also USEd inside the humanoid, such that the USE nodes are visible and
>>>>>> the DEF nodes outside the humanoid aren’t.
>>>>>>
>>>>>> What do you think?
>>>>>>
>>>>>> John
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20250509/ae05bc79/attachment.html>
More information about the x3d-public
mailing list