<div dir="auto">Michalis, thanks for the report. My highest priority is the setting the scene .x3d in the URL of the web browser, so I can easily demo with the model viewer with a link on a web page or email. There should be a way to turn on the log, if that’s not the default.</div><div dir="auto"><br></div><div dir="auto">Joe and I are working on converting displacers to a coordinate interpolator, maybe I’ll have some kind of demo, say in 3 months, that can be converted to pascal to enable displacers in castle. We’ll try to reach a consensus around the interpolator vs the displacers such that common view is achieved.</div><div dir="auto"><br></div><div dir="auto">John</div><div dir="auto"><br><div class="gmail_quote gmail_quote_container" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Mar 17, 2025 at 12:44 PM Michalis Kamburelis <<a href="mailto:michalis.kambi@gmail.com">michalis.kambi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the good words! Some things you ask for are coming (and<br>
soon), some... are possible, but not so soon :)<br>
<br>
1. I do plan to make "Castle Model Viewer for the web" expose some<br>
capabilities similar to X3DOM and X_ITE. I do hope that Holger,<br>
Andreas and other developers of web X3D browsers will forgive me for<br>
creating a little extra competition :)<br>
<br>
1.1. We will have ability to easily use precompiled "Castle Model<br>
Viewer for the web" (either hosted on our servers, on your own<br>
servers) to view arbitrary X3D model.<br>
<br>
Either with X3D content inside the webpage DOM, or with an URL<br>
pointing an X3D file.<br>
<br>
E.g. "just place <script<br>
src="<a href="http://castle-engine.io/viewer.js" rel="noreferrer" target="_blank">http://castle-engine.io/viewer.js</a>"></script> and it will change<br>
the <x3d>...</x3d> in your webpage content into an interactive<br>
canvas". So we can have something similar to basic usage of X3DOM on<br>
<a href="https://doc.x3dom.org/tutorials/basics/hello/index.html" rel="noreferrer" target="_blank">https://doc.x3dom.org/tutorials/basics/hello/index.html</a> . (This is<br>
just an example! URL "<a href="http://castle-engine.io/viewer.js" rel="noreferrer" target="_blank">http://castle-engine.io/viewer.js</a>" doesn't work<br>
yet, I just give it here as an example of how it may look like in<br>
future).<br>
<br>
1.2. We should have ability to point the precompiled "Castle Model<br>
Viewer for the web" using a URL parameter to an arbitrary file.<br>
Editing the X3D contents with a textarea should be doable too. So we<br>
can have a playground like<br>
<a href="https://create3000.github.io/x_ite/playground/?url=https://create3000.github.io/media/examples/X3D/TreasureIsland/TreasureIsland.x3d" rel="noreferrer" target="_blank">https://create3000.github.io/x_ite/playground/?url=https://create3000.github.io/media/examples/X3D/TreasureIsland/TreasureIsland.x3d</a><br>
.<br>
<br>
Neither are possible yet, but it's on the nearest TODO list.<br>
<br>
2. Using the browser's JS engine to run arbitrary JS from the X3D<br>
Script node... Likely yes, I think this is possible, but more work.<br>
<br>
Expect AD 1 sometime in April 2025. I cannot say when AD 2 may be<br>
available, if it will be available (but encouraging me to do this<br>
really works :), so yes, I may do it sooner when many people request<br>
it).<br>
<br>
Our Pascal code, both when compiled with pas2js and when compiled with<br>
FPC+WebAssembly, has full access to the webpage's DOM and can interact<br>
with it, and it can call / be called by regular JS code in the<br>
browser. So, all sorts of interoperability are possible :)<br>
<br>
Regards,<br>
Michalis<br>
<br>
pon., 17 mar 2025 o 16:29 John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> napisał(a):<br>
><br>
> Michalis,<br>
><br>
> This looks like a quantum leap in capability. Great work!<br>
><br>
> Will we see the ability to include any JavaScript in an X3D Script node? Is this already available? I heard some rumors from Aaron. Any instructions on doing something like X3DOM editor or X_ITE playground, especially with the mobile model viewer?<br>
><br>
> Thanks!<br>
><br>
> John<br>
><br>
> On Mon, Mar 17, 2025 at 9:17 AM Michalis Kamburelis via x3d-public <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>> wrote:<br>
>><br>
>> Hello all,<br>
>><br>
>> This weekend, I published a new video summarizing the recent<br>
>> developments at Castle Game Engine (and Castle Model Viewer and our<br>
>> related tools). I think it may be interesting here too:<br>
>><br>
>> <a href="https://www.youtube.com/watch?v=MJcMqfx6u98" rel="noreferrer" target="_blank">https://www.youtube.com/watch?v=MJcMqfx6u98</a><br>
>><br>
>> Recap and links:<br>
>><br>
>> 1. We work on the web target, which means that you can recompile any<br>
>> application developed using Castle Game Engine to the web.<br>
>><br>
>> There's a lot (probably too much :) ) technical details on<br>
>> <a href="https://castle-engine.io/web" rel="noreferrer" target="_blank">https://castle-engine.io/web</a> .<br>
>><br>
>> If you just want to see something working, simply run one of the<br>
>> examples linked there.<br>
>><br>
>> Of particular interest here will be *really early pre-release* of<br>
>> our model viewer for the web:<br>
>> <a href="https://castle-engine.io/web-demos/castle-model-viewer-mobile/" rel="noreferrer" target="_blank">https://castle-engine.io/web-demos/castle-model-viewer-mobile/</a> .<br>
>><br>
>> It can display "pre-packaged" files in a number of formats (X3D,<br>
>> glTF, IFC, Spine JSON), it can switch between viewpoints, run<br>
>> animations, use Walk/Examine modes etc. It's still a work-in-progress,<br>
>> with the most obvious missing feature being: it cannot load yet<br>
>> arbitrary files from your disk, you can only choose from the few<br>
>> "pre-packaged" files.<br>
>><br>
>> Much more updates to this are coming!<br>
>><br>
>> 2. We have added support for the IFC standard, which is a 3D standard<br>
>> commonly used by the BIM (building information modeling) industry and<br>
>> supported by software like FreeCAD, BonsaiBIM (Blender plugin),<br>
>> ArchiCAD, Revit.<br>
>><br>
>> In way, it's "another 3D standard" we support. I tell at all<br>
>> conferences that I like 3D standards, so I'm happy to add another one<br>
>> to our collection, alongside X3D and glTF.<br>
>><br>
>> First of all, we provide the "usual" support you would expect for<br>
>> a 3D format from us: we can display it in all our tools, save it,<br>
>> convert to/from X3D and other formats.<br>
>><br>
>> Second of all: you can use our Pascal API to develop applications<br>
>> that "think" using IFC classes. There are almost 800 IFC classes that<br>
>> express various aspects of "real-world things" and all this<br>
>> information is useful for people who actually design and build real<br>
>> houses, bridges, factories, windows etc.<br>
>><br>
>> This is all described in details on our page<br>
>> <a href="https://castle-engine.io/ifc" rel="noreferrer" target="_blank">https://castle-engine.io/ifc</a> , and demonstrated quickly in the video I<br>
>> linked above.<br>
>><br>
>> As said, all our tools get IFC support, and can convert IFC <-><br>
>> X3D, in particular<br>
>><br>
>> - Castle Model Viewer (<br>
>> <a href="https://castle-engine.io/castle-model-viewer" rel="noreferrer" target="_blank">https://castle-engine.io/castle-model-viewer</a> ) (snapshot version now)<br>
>> can view IFC files, and convert IFC <-> X3D, any 3D format (glTF, STL<br>
>> etc.) -> IFC, IFC -> STL etc.<br>
>><br>
>> - Castle Model Converter (<br>
>> <a href="https://castle-engine.io/castle-model-converter" rel="noreferrer" target="_blank">https://castle-engine.io/castle-model-converter</a> ) can perform the same<br>
>> conversions but from the command-line, nice for batch mode /<br>
>> scripting.<br>
>><br>
>> - Our mobile viewer (<br>
>> <a href="https://castle-engine.io/castle-model-viewer-mobile" rel="noreferrer" target="_blank">https://castle-engine.io/castle-model-viewer-mobile</a> ) should be<br>
>> updated soon to support IFC too.<br>
>><br>
>> - The pre-release of the web viewer, that I already linked in AD<br>
>> 1, <a href="https://castle-engine.io/web-demos/castle-model-viewer-mobile/" rel="noreferrer" target="_blank">https://castle-engine.io/web-demos/castle-model-viewer-mobile/</a> also<br>
>> already supports IFC.<br>
>><br>
>> - Our online model converter (<br>
>> <a href="https://castle-engine.io/convert.php" rel="noreferrer" target="_blank">https://castle-engine.io/convert.php</a> ) can also handle IFC now, and<br>
>> perform conversions mentioned above.<br>
>><br>
>> Have fun with 3D standards :)!<br>
>> Michalis<br>
>><br>
>> _______________________________________________<br>
>> x3d-public mailing list<br>
>> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
>> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div></div>