{"action":"created","issue":{"url":"https://api.github.com/repos/x3dom/component-editor/issues/10","repository_url":"https://api.github.com/repos/x3dom/component-editor","labels_url":"https://api.github.com/repos/x3dom/component-editor/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/x3dom/component-editor/issues/10/comments","events_url":"https://api.github.com/repos/x3dom/component-editor/issues/10/events","html_url":"https://github.com/x3dom/component-editor/issues/10","id":363167644,"node_id":"MDU6SXNzdWUzNjMxNjc2NDQ=","number":10,"title":"import x3d","user":{"login":"zorgglubb","id":13338574,"node_id":"MDQ6VXNlcjEzMzM4NTc0","avatar_url":"https://avatars2.githubusercontent.com/u/13338574?v=4","gravatar_id":"","url":"https://api.github.com/users/zorgglubb","html_url":"https://github.com/zorgglubb","followers_url":"https://api.github.com/users/zorgglubb/followers","following_url":"https://api.github.com/users/zorgglubb/following{/other_user}","gists_url":"https://api.github.com/users/zorgglubb/gists{/gist_id}","starred_url":"https://api.github.com/users/zorgglubb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zorgglubb/subscriptions","organizations_url":"https://api.github.com/users/zorgglubb/orgs","repos_url":"https://api.github.com/users/zorgglubb/repos","events_url":"https://api.github.com/users/zorgglubb/events{/privacy}","received_events_url":"https://api.github.com/users/zorgglubb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-24T14:19:47Z","updated_at":"2018-09-25T14:48:21Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI read the code and i dont know how import x3d with texture as element.\r\nIt is possible?\r\n\r\nTx"},"comment":{"url":"https://api.github.com/repos/x3dom/component-editor/issues/comments/424374566","html_url":"https://github.com/x3dom/component-editor/issues/10#issuecomment-424374566","issue_url":"https://api.github.com/repos/x3dom/component-editor/issues/10","id":424374566,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDM3NDU2Ng==","user":{"login":"zorgglubb","id":13338574,"node_id":"MDQ6VXNlcjEzMzM4NTc0","avatar_url":"https://avatars2.githubusercontent.com/u/13338574?v=4","gravatar_id":"","url":"https://api.github.com/users/zorgglubb","html_url":"https://github.com/zorgglubb","followers_url":"https://api.github.com/users/zorgglubb/followers","following_url":"https://api.github.com/users/zorgglubb/following{/other_user}","gists_url":"https://api.github.com/users/zorgglubb/gists{/gist_id}","starred_url":"https://api.github.com/users/zorgglubb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zorgglubb/subscriptions","organizations_url":"https://api.github.com/users/zorgglubb/orgs","repos_url":"https://api.github.com/users/zorgglubb/repos","events_url":"https://api.github.com/users/zorgglubb/events{/privacy}","received_events_url":"https://api.github.com/users/zorgglubb/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T14:48:21Z","updated_at":"2018-09-25T14:48:21Z","author_association":"NONE","body":"hi\r\ni have this error \r\n`x3dom-full.debug.js:51530 Uncaught TypeError: Cannot read property 'x' of undefined\r\n    at x3dom.registerNodeType.defineClass.nodeChanged.nodeChanged (x3dom-full.debug.js:51530)\r\n    at x3dom.NodeNameSpace.setupTree (x3dom-full.debug.js:27428)\r\n    at x3dom-full.debug.js:27422\r\n    at Function.Array.forEach (x3dom-full.debug.js:35)\r\n    at x3dom.NodeNameSpace.setupTree (x3dom-full.debug.js:27421)\r\n    at x3dom-full.debug.js:27422\r\n    at Function.Array.forEach (x3dom-full.debug.js:35)\r\n    at x3dom.NodeNameSpace.setupTree (x3dom-full.debug.js:27421)\r\n    at HTMLUnknownElement.onNodeInserted (x3dom-full.debug.js:10530)\r\n    at EditorScene.Group.addChild (Group.js:46)\r\nnodeChanged @ x3dom-full.debug.js:51530\r\nx3dom.NodeNameSpace.setupTree @ x3dom-full.debug.js:27428\r\n(anonymous) @ x3dom-full.debug.js:27422\r\nArray.forEach @ x3dom-full.debug.js:35\r\nx3dom.NodeNameSpace.setupTree @ x3dom-full.debug.js:27421\r\n(anonymous) @ x3dom-full.debug.js:27422\r\nArray.forEach @ x3dom-full.debug.js:35\r\nx3dom.NodeNameSpace.setupTree @ x3dom-full.debug.js:27421\r\nonNodeInserted @ x3dom-full.debug.js:10530\r\nGroup.addChild @ Group.js:46\r\nEditorScene.addSceneObject @ EditorScene.js:115\r\nEditorScene.addNewPrimitive @ EditorScene.js:31\r\ndivID.onclick @ VM1189:52`\r\nwhen i put x3d in primitive.\r\n`function xx3d()\r\n{\r\n    Primitive.call(this);\r\n    this.createFromDescription( g_editor.primitiveParameterMap[g_editor.primitiveNamesMap[this.constructor.name]]);\r\n\r\n    //create x3d\r\n\r\n    var shaftShape   = document.createElement('Shape');\r\n\r\n    var appearance = document.createElement('Appearance');\r\n\tvar ImageTexture = document.createElement('ImageTexture');\r\n    ImageTexture.setAttribute('url', \"aaa.jpg\");\r\n    appearance.appendChild(ImageTexture);\r\n    shaftShape.appendChild(appearance);\r\n\r\n    var IndexedFaceSet = document.createElement('IndexedFaceSet');\r\n        IndexedFaceSet.setAttribute('coordIndex', '0 1 2 -1 2 1 ....etc\r\n        IndexedFaceSet.setAttribute('solid','false');\r\n\tIndexedFaceSet.setAttribute('isPickable','true');\r\n\tvar Coordinate = document.createElement('Coordinate');\r\n\tCoordinate.setAttribute('point', '-1.07365 0.469978 3.` ....etc\r\nIndexedFaceSet.appendChild(Coordinate);\r\n\tvar TextureCoordinate = document.createElement('TextureCoordinate');\r\n    TextureCoordinate.setAttribute('point', '0.91419...etc\r\nIndexedFaceSet.appendChild(TextureCoordinate);\r\n    shaftShape.appendChild(IndexedFaceSet);\r\n    this._matrixTransformNode.appendChild(shaftShape);\r\n};`\r\n\r\n\r\n"}}
{"actor":{"display_login":"zorgglubb"}}