[x3d-public] possible issue with X3dToJava.xslt: confirm naming changed from pointsizeAttenuation to attenuation?
Don Brutzman
brutzman at nps.edu
Sat Apr 17 15:23:16 PDT 2021
Hi John. You called it correctly, have found a number of omissions with respect to PointProperties field defaults. Fixed, but also some double checking...
X3D4 specification defines /attenuation/ field but also found some inconsistent examples with PointProperties /pointSizeAttenuation/ field usage.
Also found some inconsistencies indicating pointSizeAttenuation in X3D Tooltips and secondary information in X3D XML Schema.
Am finding /pointSizeAttenuation/ dozens of times in mantis, but not finding anything about renaming it to /attenuation/ there.
X3D4 has SFVec3f /attenuation/ field for PointProperties, PointLight and SpotLight. So no inconsistencies found.
Then went back into the DTD and Schema changelogs: this change was applied 1 NOV 2020. Probably following an X3D Working Group call.
So I think we are OK, field name /attenuation/ is applied consistently now. Will keep checking for issues, updates tonight.
On 4/16/2021 4:02 PM, John Carlson wrote:
>
> I just spotted this problem which I think is an issue with
> X3dToJava.xslt. I updated last night. It appears a that a string
> should be converted to an array or SFVec3f.
>
> Sorry I cannot give more detail at this time, I'm giving my hands a
> break, trying to figure out the relationships between accept, able,
> motivate, and helpful. I think I'm focusing on what is acceptable, and
> what isn't.
>
> In X3DJSONLD/src/main/java/net/x3djsonld/data/c/x3d-code
...
> (not checked in)
>
>
> x3d/content/examples/Basic/Points/ArchimedesPointProperties.java:132:
> error: no suitable method found for setAttenuation(String)
> .setPointProperties(new
> PointProperties().setAttenuation("1 0 0"
> ^
> method PointProperties.setAttenuation(float[]) is not applicable
> (argument mismatch; String cannot be converted to float[])
> method PointProperties.setAttenuation(SFVec3f) is not applicable
> (argument mismatch; String cannot be converted to SFVec3f)
> method PointProperties.setAttenuation(double[]) is not applicable
> (argument mismatch; String cannot be converted to double[])
> Note: Some messages have been simplified; recompile with -Xdiags:verbose
> to get full output
> 1 error
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