Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


ssaket last won the day on October 12 2018

ssaket had the most liked content!

1 Follower

About ssaket

  • Rank
    Advanced Member

Profile Information

  • Location
    Bengaluru, India

Recent Profile Visitors

1122 profile views
  1. Please ask questions on https://forum.babylonjs.com/ as this site is becoming read only. You can use https://doc.babylonjs.com/api/classes/babylon.sceneserializer to serialize and then load it back again
  2. @Dad72 yeah.. there's no thicknessColor property at all, in docs as well as in code. The border takes it's color value from input.color
  3. It's because the border code is being sitting inside the the isFocused for like 2 months 😲 It's strange no one noticed it. Even me, while working on it last week ! ohh God!
  4. Hello All, I would like to add one - https://playground.babylonjs.com/#42LMAC Previously the grid used to work fine, and the above PG creates 3 inputTexts, but now it's just creating or I should say "showing" only 1 inputText. I'll check on it tomorrow
  5. Hello and Welcome ! It would be helpful if you can create a playground for the same, you can try - https://playground.babylonjs.com/ts.html (for typescript) https://playground.babylonjs.com/( for javascript) Just copy-pasting the code without any indentation makes reading really difficult. Coming back to the error, it's mostly because the scene is undefined
  6. Hi, You can use TransformNode to achieve this, posting one of my previous threads -
  7. Not sure ! It won't be accurate also, 0 by default. How would you figure out the angle? Meanwhile you can try these resources - https://www.babylonjs-playground.com/#1YTZAC#3 https://doc.babylonjs.com/how_to/pivot https://doc.babylonjs.com/how_to/how_to_use_facetdata
  8. Hello, I thought you know the face direction; well anyways, in the skull example, first task would be to figure out the direction which we know is the face. As of now, I use pickInfo to find the index. Here check it out https://www.babylonjs-playground.com/#ADGVAT#2 You need to click on the face first then it will rotate to sphere's position. Edit: for skull mesh, the front normal index is 49731(approx.), if you have this you can't skip the pickInfo part, here https://www.babylonjs-playground.com/#ADGVAT#3
  9. PG please, meanwhile have you checked the context, this looks like window to me.
  10. Use (some coord - position vector of object) to find the new direction, then using face normal's direction vector as old face vector , find the angle between them.
  11. Is the face a vector ? If yes, then what you can do is - First find the new direction; this can be achieved by doing (some coord - face vector) After that you have find the angle between the old face vector and the new vector found by step 1. Use this angle to rotate the object mesh
  12. just a quick demo, not efficient though, change the texture using select - https://codepen.io/anon/pen/OaxabZ
  13. Not sure how efficient this is but you can interact through normal javascript using DOM events, same can be used for making POST requests to the server. Follows a demo in which I try to change the sphere's height by taking value from input text - https://codepen.io/anon/pen/OaxabZ
  14. Well, that's really strange. Have a look at this, I copy-pasted your code and it's working fine. https://playground.babylonjs.com/ts.html#26K4VM May be you should check the url again; Would be great if you could repo the same on PG, if it's still not working for you
  15. Hello and welcome ! To stop these warnings you have to specify them as externals in your webpack's config file, also please go through https://doc.babylonjs.com/features/npm_support, it contains all the necessary information. externals: { "oimo": true, "cannon": true, "earcut": true },
  • Create New...