Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object has no method 'createSphere' #1

Closed
StarpTech opened this issue Jul 3, 2013 · 3 comments
Closed

Object has no method 'createSphere' #1

StarpTech opened this issue Jul 3, 2013 · 3 comments

Comments

@StarpTech
Copy link

Hello,
when I try to start a basic project with just a sphere I get following error:

Uncaught TypeError: Object function (name,vertexDeclaration,scene){this.name=name;this.id=name;this._scene=scene;this._vertexDeclaration=vertexDeclaration;this._vertexStrideSize=0;for(var index=0;index<vertexDeclaration.length;index++){this._vertexStrideSize+=vertexDeclaration[index];}this._vertexStrideSize*=4;this._totalVertices=0;this._worldMatrix=BABYLON.Matrix.Identity();scene.meshes.push(this);this.position=new BABYLON.Vector3(0,0,0);this.rotation=new BABYLON.Vector3(0,0,0);this.scaling=new BABYLON.Vector3(1,1,1);this._vertices=[];this._indices=[];this.subMeshes=[];this.animations=[];this._positions=null;this._cache={position:null,scaling:null,rotation:null};this._childrenFlag=false;} has no method 'createSphere' 

However, this example works in my browser http://www.babylonjs.com/tutorials/simple.html. I replace the main Babylon.js file from that tutorial example with the file of this repo. Conclusion the code works! It seems that exist a bug in this release babylon.1.0.1.js.

My spec:
Linux: linux mint 15 (Ubuntu 13.04)
Chrome: Version 28.0.1500.70

@deltakosh
Copy link
Contributor

Hello,

I changed the API to be more consistent on "static" functions. So createSphere became CreateSphere.
I fixed the samples so every http://www.babylonjs.com/tutorials/simpleXXX.html should work with the latest version

Thank you for your feedback

@StarpTech
Copy link
Author

A quick question: Why it doesn´t exist any API documentation? I´m beginner in 3D development and it is very hard to understand this just through tutorials.

@deltakosh
Copy link
Contributor

Hello,
the wiki section (here on github) is is work in progress :)

deltakosh pushed a commit that referenced this issue Mar 25, 2014
deltakosh pushed a commit that referenced this issue Dec 28, 2014
Merge pull request #320 from raananw/master
deltakosh pushed a commit that referenced this issue Apr 21, 2015
deltakosh pushed a commit that referenced this issue Jun 9, 2015
julien-moreau referenced this issue in julien-moreau/Babylon.js Mar 1, 2017
Canvas2D: Attempt #1 to fix Delayed FontTexture in Text2D
deltakosh pushed a commit that referenced this issue Apr 13, 2017
…#1)

* Adding tangent support to glTFFileLoader and Babylon.js
deltakosh pushed a commit that referenced this issue Jul 10, 2017
update fork

never test to pull request just to update (as seen here https://www.youtube.com/watch?v=bTaFAqJ6bjE ), sorry if i do something wrong...
deltakosh added a commit that referenced this issue Dec 5, 2017
deltakosh added a commit that referenced this issue Dec 5, 2017
Nightly #1 (there will be a lot today :))
deltakosh pushed a commit that referenced this issue Apr 26, 2018
Sync with Babylon master
deltakosh pushed a commit that referenced this issue Sep 8, 2018
deltakosh added a commit that referenced this issue Sep 21, 2018
deltakosh pushed a commit that referenced this issue Oct 3, 2018
Update to latest master.
deltakosh pushed a commit that referenced this issue Mar 14, 2019
…aders

Feature tools custom request headers
deltakosh pushed a commit that referenced this issue Mar 31, 2019
deltakosh pushed a commit that referenced this issue Apr 24, 2019
deltakosh pushed a commit that referenced this issue Aug 10, 2019
Syncing your fork to the original repository via the browser
deltakosh pushed a commit that referenced this issue Aug 22, 2019
deltakosh pushed a commit that referenced this issue Sep 11, 2019
deltakosh pushed a commit that referenced this issue Sep 16, 2019
deltakosh pushed a commit that referenced this issue May 11, 2020
Some fixes to make things type safe as intended
sebavan pushed a commit that referenced this issue Jun 22, 2020
tristanReist pushed a commit to tristanReist/Babylon.js that referenced this issue Jul 16, 2020
sebavan pushed a commit that referenced this issue Jul 31, 2020
deltakosh pushed a commit that referenced this issue Sep 20, 2020
deltakosh pushed a commit that referenced this issue Sep 25, 2020
deltakosh pushed a commit that referenced this issue Jan 4, 2021
deltakosh pushed a commit that referenced this issue Jan 6, 2021
deltakosh pushed a commit that referenced this issue Jan 7, 2021
sebavan pushed a commit that referenced this issue Jun 21, 2021
bghgary added a commit that referenced this issue Oct 13, 2021
…factor

Native engine perf small refactor
carolhmj pushed a commit that referenced this issue Aug 22, 2022
Fix Drag/Release Behavior in GUI and Photo Dome
sebavan pushed a commit that referenced this issue Sep 20, 2022
RaananW pushed a commit that referenced this issue Dec 9, 2022
Fix Drag/Release Behavior in GUI and Photo Dome

Former-commit-id: 30f45f4e65fcc17095f89996e0c206cdebc3617f
RaananW pushed a commit that referenced this issue Dec 9, 2022
Update

Former-commit-id: 43ccb2732f464ebbc356a80941342116524c916a
Popov72 pushed a commit to Popov72/Babylon.js that referenced this issue Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants