Misc newbie X_ITE questions #209
-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
If a model appears to be somehow transparent or turned inside out, it is most likely that the ccw field of the geometry must be changed from Your inline issue: please make sure that the content is still within the x3d-canvas element, by inspecting it with the web browser. If the content is empty, simply add it again with DOM methods like |
Beta Was this translation helpful? Give feedback.
-
Yes this is a peculiarity of all HTML browsers element names become uppercase and attributes become lowercase. X_ITE compensates this and will use this uniformly cased names. If you do not wish this you have to use XHTML pages, but I would not recommend this as a modern HTML page is much more easier to use.
From my point of view I would recommend using src attribute. Changes can be made with X3D SAI (Scene Access Interface) functions: https://create3000.github.io/x_ite/reference/ecmascript-object-and-function-definitions/ |
Beta Was this translation helpful? Give feedback.
-
|
Ah, thank you! Setting I did check that the child content is still in the DOM after the prerendering-interactive transition. Based on what I can see, it appears almost as if the view ends up zooming out like it's registering some extreme user input when the viewer reloads during transition. In any case, I think it's probably best to disable prerendering for X3D components anyway as it ends up reinitializing the viewer, which ends up taking longer than just waiting for the viewer to load client-side only, so I'm going to let that particular mystery stay a mystery. Thanks for the suggestion to just reference external .x3d content via the I was indeed going to research SAI. Is the X_ITE library extensible enough to plug in a custom SAI module? My hope was to implement a JS-Blazor/Wasm bridge via SAI to keep things as standards compliant as possible, but open up to WASM/C# X3D scripting. Obviously I could implement something on a case-by-case basis through the JS scripting capabilities, but I was hoping to add some middleware to interpret input/output parameters and script references to dynamically wire them up to wasm/C# code. Ideally in a way that could be re-used for, say, a hypothetical rust/wasm integration, et. al. |
Beta Was this translation helpful? Give feedback.
-
|
I don't know if the SAI interface is sufficient for you, but you can skim through the reference and then you'll surely see if it fits. Here are a few things that are possible: |
Beta Was this translation helpful? Give feedback.

If a model appears to be somehow transparent or turned inside out, it is most likely that the ccw field of the geometry must be changed from
truetofalseor fromfalsetotrue. It also can help to set the solid field tofalseif the ccw field gives not the desired effect. The ccw defines clockwise/counterclockwise ordering of vertex coordinates, which in turn defines front/back orientation of polygon normals according to Right-Hand Rule (RHR). Setting solid true means draw only one side of polygons (backface culling on), setting solid false means draw both sides of polygons (backface culling off).Your inline issue: please make sure that the content is still within the x3d-canvas element…