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="stylesheet" type="text/css" media="screen" data-name="vs/editor/editor.main" href="http://yoda.blob.core.windows.net/monaco/vs/editor/editor.main.css" /> <link rel="stylesheet" type="text/css" media="screen" href="http://yoda.blob.core.windows.net/monaco/vs/editor/css/vs-theme.css" /> <script type="text/javascript"> var require = { baseUrl: "http://yoda.blob.core.windows.net/monaco" }; </script> <script type="text/javascript" src="http://yoda.blob.core.windows.net/monaco/vs/loader.js"></script> <script type="text/javascript" src="http://yoda.blob.core.windows.net/monaco/vs/editor/editor.main.nls.js"></script> <script type="text/javascript" src="http://yoda.blob.core.windows.net/monaco/vs/editor/editor.main.js"></script> <script type="text/javascript" src="http://yoda.blob.core.windows.net/monaco/vs/languages/javascript/javascript.js"></script> <script type="text/javascript" src="http://yoda.blob.core.windows.net/monaco/vs/languages/css/css.js"></script> <script type="text/javascript" src="http://yoda.blob.core.windows.net/monaco/vs/languages/html/html.js"></script> <!-- Babylon.js --> <script src="http://www.babylonjs.com/cannon.js"></script> <script src="http://www.babylonjs.com/Oimo.js"></script> <script src="http://www.babylonjs.com/babylon.js"></script> <script src="babylon.fireMaterial.min.js"></script> <script src="babylon.waterMaterial.min.js"></script> <script src="babylon.lavaMaterial.min.js"></script> <script src="babylon.normalMaterial.min.js"></script> <script src="babylon.skyMaterial.min.js"></script> <script src="babylon.triPlanarMaterial.min.js"></script> <script src="babylon.terrainMaterial.min.js"></script> <script src="babylon.gradientMaterial.min.js"></script> <script src="babylon.furMaterial.min.js"></script> <script src="babylon.gridMaterial.min.js"></script> <script src="babylon.brickProceduralTexture.min.js"></script> <script src="babylon.cloudProceduralTexture.min.js"></script> <script src="babylon.fireProceduralTexture.min.js"></script> <script src="babylon.grassProceduralTexture.min.js"></script> <script src="babylon.marbleProceduralTexture.min.js"></script> <script src="babylon.roadProceduralTexture.min.js"></script> <script src="babylon.starfieldProceduralTexture.min.js"></script> <script src="babylon.woodProceduralTexture.min.js"></script> <script src="babylon.asciiArtPostProcess.min.js"></script> <script src="babylon.objFileLoader.js"></script> <link href="index.css" rel="stylesheet" />
  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="stylesheet"/> <script src="/Scripts/jquery-1.10.2.js"></script> <script src="/Scripts/bootstrap.js"></script> <script src="/Scripts/respond.js"></script> <script src="/Scripts/jquery-ui-1.11.4.js"></script> <script src="/Scripts/jquery.validate.js"></script> <script src="/Scripts/jquery.validate.unobtrusive.js"></script> <script src="/Scripts/PepJS/pep-0.4.1.js"></script> <script src="/Scripts/ExtensionsJS/str-1.1.0.js"></script> <script src="/Scripts/ExtensionsJS/arr-1.2.0.js"></script> <script src="/Scripts/ExtensionsJS/boolean-1.0.0.js"></script> <script src="/Scripts/ExtensionsJS/math-1.0.0.js"></script> <script src="/Scripts/poly2tri.js"></script> <script src="/Scripts/Oimo.js"></script> <script src="/Scripts/babylon.max.js"></script> <script src="/Scripts/uuid.js"></script> <script src="/Scripts/FootballJS/element-1.2.0.js"></script> <script src="/Scripts/FootballJS/goalpost-1.1.0.js"></script> <script src="/Scripts/FootballJS/gridiron-1.4.0.js"></script> <script src="/Scripts/modernizr-2.6.2.js"></script>
  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 empty array, or even null, whichever is conventional for JavaScript. I try to add a tag to an existing mesh, and it gets even worse: // Yields a LineMesh in my environment BABYLON.Tags.AddTagsTo(data.get("mesh-registry")._meshes[1], "testing") Which yields: Uncaught TypeError: tag.trim is not a function(…) Tags._AddTagTo @ babylon.max.js:29455 Tags.AddTagsTo @ babylon.max.js:29451 (anonymous function) @ VM1725:1 I don't know what the disconnect is between PG and a production-ready usage of tags, but clearly there is some disconnect between the two.
  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 @ jquery-1.10.2.js:118 Are there some bits that I should be including in order for the tags subsystem to work properly?
  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 @ jquery-1.10.2.js:3062 fireWith @ jquery-1.10.2.js:3174 ready @ jquery-1.10.2.js:447 completed @ jquery-1.10.2.js:118 How do you access scene from PG?
  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...