[x3d-public] Renderer for x3d.py

John Carlson yottzumm at gmail.com
Thu Dec 28 01:22:28 PST 2023


Sorry for not being clearer.

Don, Doug was planning on a “BVH” tool using Python and OpenGL, especially
for retargetting HAnim skeletons between joint systems.  I can’t remember
the specifics.  He was working with MakeHuman and MPFB2.

I did a bit of work creating an LOA4? Skeleton for those, but I couldn’t
figure out how to hook up a skin.

I don’t know if HAnim export is appropriate for web tools, maybe Sunrize is
close?

I don’t really know Doug’s plans, but I was reopening the thread.  I don’t
know how far he has gotten with his ideas.
—————————-

I think what we’re really wanting is a way to convert JSON, XML and VRML
into something common (a Python dict?) such that we can import various
encodings into Blender.  Perhaps we can leverage Vince’s X3D to glTF
utility.  Ideally, Blender would provide a common encoding.  Alembic?

I agree that Blender Python is a moving target, and something standard is
desired.  If ANARI can provide a rendering interface, that might be a path,
if someone cares to pursue it.  I lost interest.  Blender HAnim has lot to
be desired.  Perhaps the recent USDSkel has been incorporated.  I don’t
have USDSkel examples, but I can try exporting to USDSkel from Blender
4.0.1.
————-
My primary interest right now is applying transforms to all SFRotations in
a list of  OrientationInterpolators.  I am thinking JSON may be a good
approach.  This is still percolating.

Sorry for combining all messages into one message!

John

On Thu, Dec 28, 2023 at 2:29 AM Brutzman, Donald (Don) (CIV) <
brutzman at nps.edu> wrote:

> No renderer is planned for x3d.py.  The stated design notes that “Creating
> a native-Python implementation for X3D data structures appears to provide
> the greatest possible portability.”  That has been accomplished
> successfully.
>
>
> We have over 4,000 scene graphs built and validated using x3d.py as part
> of the X3D Examples Archives.  Certainly they show how to create Python
> data structures containing scene graphs.
>
>
>
> Building a renderer involves a Small Matter of Programming (SMOP)!  Indeed
> writing an all-purpose renderer is much harder, and a historically a moving
> horizon for computer graphics every year.  This is why X3DJSAIL and
> X3DPSAIL can be used by others.  Rendering is avoided intentionally in the
> design of these libraries and without any impediment to progress, since
> each library has various export methods for producing X3D and Classic VRML,
> also for publishing to a web page using X_ITE or X3DOM.  Boom presto, wide
> portability for a large number of X3D-capable tools and viewable rendering
> anywhere.
>
>
>
>    - https://en.wikipedia.org/wiki/Small_matter_of_programming
>
>
>
> Hope this is now clearer.  Happy new year.
>
>
>
> all the best, Don
>
> --
>
> Don Brutzman  Naval Postgraduate School, Code USW/Br
> brutzman at nps.edu
>
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA
> +1.831.656.2149
>
> X3D graphics, virtual worlds, navy robotics
> https://faculty.nps.edu/brutzman
>
>
>
> *From:* John Carlson <yottzumm at gmail.com>
> *Sent:* Thursday, December 28, 2023 12:13 AM
> *To:* Brutzman, Donald (Don) (CIV) <brutzman at nps.edu>; GPU Group <
> gpugroup at gmail.com>; Peitso, Loren (CIV) <lepeitso at nps.edu>; X3D Graphics
> public mailing list <x3d-public at web3d.org>
> *Subject:* Renderer for x3d.py
>
>
>
> Kivy appears to be the best (most community) cross-platform OpenGL library
> for Python.  Did you explore this option, Doug?
>
>
>
> Another, more GUI library is BeeWare Toga.
>
>
>
> Web-oriented tools are Django and Flask, then choose a front-end.
>
>
>
> If someone can lay out a pattern for building a renderer using x3d.py as
> scenegraph, with additional packages for rendering the scenegraph, maybe I
> can start looking into developing an Interchange profile renderer?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20231228/4900a80a/attachment.html>


More information about the x3d-public mailing list