Jump to content

mwpowellhtx

Members
  • Content Count

    126
  • Joined

  • Last visited

About mwpowellhtx

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Stupid question, but where did the wiki go?
  2. At any rate, I've abandoned the broken tags approach for the time being. Using a simple __mytag approach, which is working quite well.
  3. @Deltakosh I hear what you're saying, but I cannot verify that in either case, for PG, or in my own app. From the PG, using Chrome: Array.prototype.trim undefined String.prototype.trim function trim() { [native code] } And in my own app: Array.prototype.trim undefined String.prototype.trim function trim() { [native code] } So if there is something being added, it is by one of the PG references, not mine taking what is undefined away.
  4. As compared/contrasted with the PG references: <script src="http://www.babylonjs.com/poly2tri.js"></script> <script src="dat.gui.min.js"></script> <!--x-tag--> <link href="splitbox.css" rel="stylesheet" /> <script src="x-tag-core.min.js"></script> <script src="splitbox.js"></script> <!-- jszip --> <script src="jszip.min.js"></script> <script src="fileSaver.js"></script> <!-- Bootstrap --> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!--Monaco--> <link rel="style
  5. @Deltakosh The question isn't the PG's per se; the question is what dependencies are there. Because when I just reference the BABYLON scripts, I get aforementioned documented errors. So obviously there is some dependency, perhaps an order, that is incorrect, etc. Here are my script references, might be helpful to understand what's out of sync with BABYLON and the "x.trim()" dependency, in the order in which they appear. <link href="/Content/bootstrap.css" rel="stylesheet"/> <link href="/Content/site.css" rel="stylesheet"/> <link href="/Content/themes/base/all.css" rel="
  6. I was able to use a plane and draw text. You can set the material on the plane, and draw text with another material. The tricky part for me was centering the text accordingly so that I could position it on a precise location. Otherwise you have to do all sorts of drawn text width calculations, which are notoriously difficult to accurately predict.
  7. The error is plain, it is tripping up over "trim". But to this point, no one seems know what that is about. The error is consistent.
  8. Use my feedback as you will, but at this point I think I will pursue the ad-hoc JavaScript attaching properties, i.e. "__mytag" approach.
  9. In summary thus far, unknown what version(s) of BABYLON are in play. I am running against 2.3.1; this I know for a fact. Also unknown, what other bits should be included, "x-tag-core", for instance. Assuming that it is required, is not provided as a NuGet dependency. "Simple" gets, i.e. with undefined tags query, returns an array containing all of the meshes. This is half- to be expected. "Simple" gets, i.e. with tags that have not be provided to the mesh, yield the error. IMO, this should be a null (best case) or undefined (worst case) when identifying the tag(s) and return an
  10. What is "x-tag-core.min.js"? Assuming this is enabling the tagging subsystem, why is it not a dependency for BABYLON?
  11. I updated my BABYLON reference from 2.3.0 to 2.3.1, and still I got the error: AndOrNotEvaluator._HandleParenthesisContent @ babylon.max.js:29524 AndOrNotEvaluator.Eval @ babylon.max.js:29500 Tags.MatchesQuery @ babylon.max.js:29484 Scene._getByTags @ babylon.max.js:16257 Scene.getMeshesByTags @ babylon.max.js:16265 (anonymous function) @ VM1456:1 createScene @ Plays?playId=1c5001e9-f3a6-49f5-9196-a60e00e8d0b5:818 (anonymous function) @ Plays?playId=1c5001e9-f3a6-49f5-9196-a60e00e8d0b5:859 fire @ jquery-1.10.2.js:3062 fireWith @ jquery-1.10.2.js:3174 ready @ jquery-1.10.2.js:447 completed
  12. @JCPalmer I do not want to subclass the Mesh. That is overkill.
  13. Elaborate. It does not matter when I call getMeshesByTags, I get the same error, called immediately after creating the scene: s.getMeshesByTags("mytag") Yields: AndOrNotEvaluator._HandleParenthesisContent @ babylon.max.js:29524 AndOrNotEvaluator.Eval @ babylon.max.js:29500 Tags.MatchesQuery @ babylon.max.js:29484 Scene._getByTags @ babylon.max.js:16257 Scene.getMeshesByTags @ babylon.max.js:16265 (anonymous function) @ VM1286:1 createScene @ Plays?playId=1c5001e9-f3a6-49f5-9196-a60e00e8d0b5:818 (anonymous function) @ Plays?playId=1c5001e9-f3a6-49f5-9196-a60e00e8d0b5:859 fire @
  14. I also do not want to enable for all of my meshes; only for some. So, hence back to the original error: getMeshesByTags("yourTag"), should work, by default, and, I expect, either return an empty array or null, consistently.
  15. Assuming that I can query based on tags, whether enabled or not, from the sounds of things, I should be interacting with "_tags" (?). Is it necessary. I don't necessarily want to pile on "addTags", necessarily, for instance, but rather "replace", simply with something like this "_tags[0] = 'new value'"? Is it necessary to call BABYLON.Tags.EnableFor(myMesh)? Thanks...
×
×
  • Create New...