[x3d-public] compiling abox.future.py Re: Please instruct me what I should be to catch up withyouRe:X3D/XSeen Python API (PyX3D or X3DPy)

Brutzman, Donald (Don) (CIV) brutzman at nps.edu
Tue May 21 20:29:12 PDT 2019


Sorry to miss much of this, am replying when able.

Summary of status:
a. We are quite close to a usable X3D Python language capability.
b. There are .py programs published online for each scene in X3D Examples archive.
c. John has at least two translators .x3d -> .py source.
d. X3DPSAIL is our name for the pyjnius python implementation that applies X3DJSAIL classes.
e. The first translator uses field-object casting (e.g. SFFloat(1.0)) and works.
f. The second translator is terser and more desirable but provokes pyjnius return-type errors, such as those below.
g. The second translator output is published online and almost exactly matches the .java which uses X3DJSAIL.  So we know that the underlying X3DJSAIL java calls can work if properly invoked by pyjnius.
h. We have fixed the ability of Python to use double-precision values for X3D SFloat fields.
i. We are working on how to move the various import statements out of source programs and into pyjnius mappings.
j. We steadily continue to test and improve. All questions and suggestions are welcome.

We desperately need an X3DPSAIL.html page with this information.  Too busy debugging, hopefully will write it soon.  Thanks for your attention and insights!

v/r Don

On 5/21/2019 5:12 PM, Masaki Aono wrote:
> Dear John and all,
> 
> I have tried the following, ended up with the following errors.
> 
> ---------------------------------------------------------------------------
> 
> C:\Aono\ISO-2019\Python\John\pyjnius>node xml2all.js abox.x3d
> 
> C:\Aono\ISO-2019\Python\John\pyjnius>python abox.future.py
> Traceback (most recent call last):
>    File "abox.future.py", line 20, in <module>
> .addConnect(x3dpsail.connect().setNodeField(x3dpsail.SFString("children")).setProtoField(x3dpsail.SFString("myShape")))))))
>    File "jnius\jnius_export_class.pxi", line 760, in jnius.JavaMethod.__call__
>    File "jnius\jnius_conversion.pxi", line 78, in jnius.populate_args
>    File "jnius\jnius_utils.pxi", line 205, in jnius.check_assignable_from
> jnius.JavaException: Invalid instance of 'org/web3d/x3d/jsail/X3DConcreteNode' passed for a 'org/web3d/x3d/sai/Core/X3DNode'
> 
> 
> BTW, I could not succeed in downloading all of
> 
> https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org
> 
> However, I could download all under .../x3d/stylesheet sub folder.
> 
> For other sub folders, the communication seems to "abend".
> 
> Is there a "tarball" available for all?
> 
> I wonder if there is any reason not to put these to github?
> 
> Thanks.
> 
> 
> On 2019/05/21 12:26, John Carlson wrote:
>>
>> Dr Aono.  Thank you very much for helping us.
>>
>> Please try running
>>
>>   * node xml2all.js abox.x3d
>>
>> in our sourceforge based folder (not the GitHub based folder) then run
>>
>>   * python abox.future.py
>>
> -- 
> ******************************************************
> 青野雅樹
> 豊橋技術科学大学 情報・知能工学系
> 知識データ工学・情報検索研究室
> 〒441-8580 豊橋市天伯町雲雀ヶ丘1-1
> TEL:(0532)  44-6764
> FAX:(0532) 44-6757
> 
> Masaki Aono
> Professor
> Knowledge Data Engineering Laboratory
> Dept. of Computer Science and Engineering
> Toyohashi University of Technology
> 1-1 Hibarigaoka, Tempaku-cho,
> Toyohashi-shi, Aichi 441-8580 JAPAN
> TEL: 81+532-44-6764
> FAX:81+532-44-6757
> email:aono at tut.jp
> ******************************************************
> 


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