[X3D-Public] [WWW-Vrml] x3d file highlight background does not work
vmarchetti at ameritech.net
Tue Jul 10 09:44:50 PDT 2012
On Jul 10, 2012, at 12:09 PM, Michalis Kamburelis wrote:
> Don Brutzman wrote:
>> again cc: x3d-public. apologies i can't check this today but perhaps
>> someone else can. good luck!
>> On 7/10/2012 12:38 AM, Chris wrote:
>>> Hello Don,
>>> thx for your answer. I know there is no error in the code.
>>> I try since days to cull the front face of the bigger objects to see the smaller objects in the bigger one.
>>> At the moment I have no idea how this should be working?
>>> Do you have a idea.
> To cull the faces, use solid="true" for IndexedFaceSet (and other geometry nodes with faces). This is already the default in X3D actually. Use ccw="false" to flip which side is culled (default is ccw="true" in X3D). The relevant spec part is "11.2.3 Common geometry fields", on http://www.web3d.org/files/specifications/19775-1/V3.2/Part01/components/rendering.html#CommonGeometryFields .
> Hope this helps,
> X3D-Public mailing list
> X3D-Public at web3d.org
In addition to Michalis' suggestion to reverse the culling of the outer object, you may also be able to get the effect you want by making the transparent attribute of the Appearance node for the outer shape close to 1, to see the inner object inside the outer. You may have to experiment with the colors of the different objects, and making the Background node "skycolor" = "1 1 1" (white) greatly improves the visibility of the transparent shapes. You can use the X3D-Edit application to edit the Appearance and color nodes. Also, the Xj3D browser allows you to selectively hide different parts of the Scene Graph, use the View > Scene Tree menu to do this.
More information about the X3D-Public