[X3D-Public] [WWW-Vrml] x3d file highlight background does not work

Chris chris.schweighofer at gmx.net
Sat Jul 21 10:03:00 PDT 2012


Hello people,

is there a program which can approve, if the script (www.bestaltmed.at/slicer/modelcullfrontface2.x3d.zip) code is written correct? 
In one tool (freeWRL) it highlights the smaller models, in the other tool (blender) not.

Thx,
Chris


Am 10.07.2012 um 18:44 schrieb Vincent Marchetti:

> 
> 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,
>> Michalis
>> 
>> _______________________________________________
>> X3D-Public mailing list
>> X3D-Public at web3d.org
>> http://web3d.org/mailman/listinfo/x3d-public_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.
> 
> 
> _______________________________________________
> X3D-Public mailing list
> X3D-Public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20120721/d3be0201/attachment.html>


More information about the X3D-Public mailing list