Jump to content

Loading .babylon file fails with position as undefined


steverob
 Share

Recommended Posts

@steverob : Welcome to the forum :) I assume this is what you are looking for:

Office Guy

All the script code I used is in the file : index.html (open your web console and grab a copy).

The important lines are:

var meshcam = myScene.getMeshByName("CameraPreset");
					
myScene.beginAnimation(meshcam,1,360,true);

 

The file was created in Blender, so the first line gets the "empty" - called "CameraPreset" - that is the parent of the camera

The second line plays the animation of that "empty"

Ignore the code about "divFPS" - that is just producing the frame rate in to left corner of the screen.

And aside thought - update your exporter to version V5.2. Probably should update your version of Blender too.

cheers, gryff :)

EDIT: I didn't download your textures so that is why the default red/black checker is used. And just a thought, what does the title of this thread have to do with animation?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...