-
Content Count
88 -
Joined
-
Last visited
-
Days Won
1
ssaket last won the day on October 12 2018
ssaket had the most liked content!
About ssaket
-
Rank
Advanced Member
Profile Information
-
Location
Bengaluru, India
-
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
-
-
-
-
@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
-
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!
-
-
-
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
-
-
-
-
-
-
-
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
-
Hi, You can use TransformNode to achieve this, posting one of my previous threads -
-
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
-
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
-
PG please, meanwhile have you checked the context, this looks like window to me.
-
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.
-
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
-
-
just a quick demo, not efficient though, change the texture using select - https://codepen.io/anon/pen/OaxabZ
-
-
-
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
-
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
-
-
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 },