[x3d-public] X3DJSAIL problems with Blender 2.90
Don Brutzman
brutzman at nps.edu
Mon Nov 23 14:28:54 PST 2020
I reached (maybe surpassed) the limits of my limited Blender skills. I left lots of trail markers so someone else with actual skills might help.
The gap is in our Blender 2.90 invocation, not in anything Java related.
On 11/22/2020 11:35 PM, Han Chen wrote:
>
> Hi Don,
>
> Thanks so much for helping look into this. Currently the image can only view in black and white color(confirmed from my side as well).
>
> I want to see if there is a way to directly show the result in blender. Do you think that is possible? Basically, just show the result in blender view.
>
> Thanks again for your help. I do appreciate it.
>
>
> Regards,
> Han
>
> On Sun, Nov 22, 2020 at 11:22 AM Don Brutzman <brutzman at nps.edu <mailto:brutzman at nps.edu>> wrote:
>
> 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 <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/BlenderX3dToPng.py>
> * https://www.web3d.org/specifications/java/src/python/blenderScripts/build.xml <https://www.web3d.org/specifications/java/src/python/blenderScripts/build.xml>
> * https://www.web3d.org/specifications/java/src/python/blenderScripts/build.out.txt <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.x3d>
> * https://www.web3d.org/specifications/java/src/python/blenderScripts/HanChenTest.viewpoint.blender.png <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 <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/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.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.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.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.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.viewpoint4.blender.png>
> * https://www.web3d.org/specifications/java/src/python/blenderScripts/products/LPD17.viewpoint5.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 <mailto: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 <http://faculty.nps.edu/brutzman>
>
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