Jump to content

abc BabylonJS - Scale , smooth and pick and split view


hw3web
 Share

Recommended Posts

Hello there again, 

 

I hope I do not make to much confusion in all this great frameworks but as I try to progress with it I found another things I not sure how I need deal with.

 

cube.png

 

Live example:

http://hw3web.co.uk/web/babylon/cube_smooth/

 

1) Scale - is any chance to see how big is model in unites not in scaling as you can see in blender screen size is 3 meters but scaling is 1, so if anyone want to keep zoom camera depend of size of object will be impossible dealing just with scale as it not really show size of element.

 

As meshs are Arrays of points we could check min and max position on x , y and z axis and that could indicate size depending of scale of model, I thought it will be good to have it implement in framework it self. 

 

So is it will be properties of model telling of physical size of element in future version of Babylon ?

 

2) Smooth - as on picture I create cube'ish model half smooth half flat shading in Blender, is any chance to keep this in exporter as this mesh could be different then material subMashs

 

3) Pick - as it should be game Framework how to make pick, select   script, I did try scene.getMeshByID('Cube').on('click',function(){}); but didn't really work. So how I can create handlers for models or any other elements on scene.

 

4)  is any chance to do multiview from this same scene like three.js did in this example ? :

 http://threejs.org/examples/webgl_multiple_views.html

 

 

Thank you again ;)

 

 

Link to comment
Share on other sites

1/ Every mesh has a boundingInfo property which contains boundingSphere and boundingBox properties. The boundingBox contains minimumWorld and maximumWorld properties (the extends you are looking for)

 

2/ Flat shading is not supported right now but I'm not sure to understand the question :(

 

3/ pick is supported through scene.pick(x, y). You have to handle onmousedown on your canvas and call pick on your scene (example: https://github.com/BabylonJS/Babylon.js/wiki/11---Picking-collisions)

 

4/ Multiviews are on our roadmap:) (https://github.com/BabylonJS/Babylon.js/wiki/Roadmap)

Link to comment
Share on other sites

 

1) thank you

 

2) I hope it will be avaible soon to make more advance graphics on-line  ;)

 

that what I mean : not sure why picture do not show in my first post picture from Blender3D: 

 


 

compare with scene in babylonJS

 


 

basically  what I meant is when material have smooth and flat shading , but until is not supported , I need wait  ;)

 

 

3) great ;) , thank you

 

 

4) looking forward to see new compact version of BabylonJS 

to be honest not sure now after this few posts on forum here what Blender exporter is the newest ?

- are you update the freshest one on github ?
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...