[x3d-public] X3DJSAIL problems with Blender 2.90
Don Brutzman
brutzman at nps.edu
Sun Nov 22 11:21:38 PST 2020
Han Chen, thanks for the trouble reports and example model, very helpful.
I have upgraded to latest Blender 2.90.1 and made several updates to X3DJSAIL.
* X3D Java Scene Access Interface Library (X3DJSAIL)
https://www.web3d.org/specifications/java/X3dJavaSceneAuthoringInterface.html
Despite a lot of effort, am still having difficulty with Blender capture of X3D viewpoints to PNG images.
* https://www.web3d.org/specifications/java/src/python/blenderScripts/BlenderX3dToPng.py
* https://www.web3d.org/specifications/java/src/python/blenderScripts/build.xml
* https://www.web3d.org/specifications/java/src/python/blenderScripts/build.out.txt
As code in there shows, tried many ways to set the background color but none succeeded. The old approach for earlier versions no longer works in Blender 2.90.
Am hoping that someone experienced in Blender python scripting can look at this, something is missing. Have searched through many online references with little progress.
Your example looks pretty good:
* https://www.web3d.org/specifications/java/src/python/blenderScripts/HanChenTest.x3d
* https://www.web3d.org/specifications/java/src/python/blenderScripts/HanChenTest.viewpoint.blender.png
* https://www.web3d.org/specifications/java/src/python/blenderScripts/HanChenTest.viewpoint1.blender.png
My examples are less effective, only very faint silhouettes are appearing. I tried adding lights but that didn't help:
* https://www.web3d.org/specifications/java/src/python/blenderScripts/LPD17.x3d
* https://www.web3d.org/specifications/java/src/python/blenderScripts/products/LPD17.viewpoint.blender.png
* https://www.web3d.org/specifications/java/src/python/blenderScripts/products/LPD17.viewpoint1.blender.png
* https://www.web3d.org/specifications/java/src/python/blenderScripts/products/LPD17.viewpoint2.blender.png
* https://www.web3d.org/specifications/java/src/python/blenderScripts/products/LPD17.viewpoint3.blender.png
* https://www.web3d.org/specifications/java/src/python/blenderScripts/products/LPD17.viewpoint4.blender.png
* https://www.web3d.org/specifications/java/src/python/blenderScripts/products/LPD17.viewpoint5.blender.png
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 http://faculty.nps.edu/brutzman
More information about the x3d-public
mailing list