We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

D3Pixel

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 84 total)
  • Author
    Posts
  • in reply to: How to call a V3D function from outside the iframe? #19795
    D3Pixel
    Customer

    Object now works but object.material is undefined.

    var object = win.v3d.apps[0].scene.getObjectByName("Load Cell Main Body FULL");
    var mat = object.material;
    
      // var index = mat.nodeRGBMap['RGB']; 
      // mat.nodeRGB[index] = new v3d.Vector4(1, 0, 0, 1); 
      // mat.needsUpdate = true;

    I have R.G.B. values from HTML and just want to change the color node “RGB” of a Principled material whenever my color picker event fires.

    Or I could call a visual_logic.js function from outside the iFrame somehow? as that contains function setMaterialColor(matName, colName, r, g, b)

    Sorry to ask these questions, next time I will start with a code template and go from there.

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: How to call a V3D function from outside the iframe? #19788
    D3Pixel
    Customer

    Brill, thanks so much for the quick answer Yuri!
    :yahoo:

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: App Manager update and Path settings #19735
    D3Pixel
    Customer

    Great, glad to know you guys listen. Top developers!

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: Updated to pre3 and getting an error #19672
    D3Pixel
    Customer

    Feel free to delete this post.

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: Updated to pre3 and getting an error #19670
    D3Pixel
    Customer

    Ah, I needed to Update the application in the App Manager. Thought I had done that.

    All fixed now. Thanks.

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: Puzzle editor does not resize when full screen #19578
    D3Pixel
    Customer

    Ah ha, thanks for the tip! that will save me some time.

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: Verge3D 2.15 pre3 available! #19441
    D3Pixel
    Customer

    Excellent, I love reading about the updates you guys are doing. :good:

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: Boolean Modifier #19334
    D3Pixel
    Customer

    If you are thinking of adding this, may I suggest some puzzle features that I use from the VRay clipper:

    1. Objects to be clipped [object name / list]
    So we can either clip everything or only designated objects

    2. Cap material [material name] or [use object material]
    A material that is used for the clipped faces. Can include a texture that is planar projection mapped. Or use the material of the object being clipped.

    3. Clipper object [object name / list] [use bounds]
    The object(s) that are used for clipping. I assume fast clipping would use an infinite planar object in X/Y. If [use bounds] is checked then assume the user wants to use a custom mesh as the clipping object. e.g. a edited mesh / a sphere etc and so it should not clip infinitely in X/Y.

    Animation on clippers or objects should be respected.

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: Boolean Modifier #19328
    D3Pixel
    Customer

    Glad to hear you are interested in this area Yuri! Having a blast with Verge3D at the moment trying to get my website ready. Clipping planes have always been a request from my clients so to have that in Web3D would be quite amazing. :good:

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: Boolean Modifier #19322
    D3Pixel
    Customer

    One other thing to note when using these clipping shader effects is that if the mesh is not a solid object (as in no split edges etc) then it can cause errors. So a lot of effort needed to go into the CAD imports making sure everything was welded. This took a lot of time and sometimes I just remodeled imports parts to get a water tight mesh.

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: Boolean Modifier #19321
    D3Pixel
    Customer

    Yeah.

    I do a lot of ray traced rendering for CAD company’s and they always want to show whats going on inside a model. For higher quality stuff I use VRay Clipper as it can use the mesh material as its cap material with a planar map and supports animation but it would be crash prone sometimes.

    VRay Clipper shader effect:

    Blender Cycles/Eevee does not have this yet although I have been asking for it for years.

    The three.js webgl example I posted earlier was one of the best examples I found. There are others I have bookmarked too like these Unity ones:

    Discussion on it
    https://forum.unity.com/threads/simple-cross-section-shader.34508/

    Result from that discussion (i think)
    https://github.com/Dandarawy/Unity3DCrossSectionShader

    Video if it:

    Note these are all shader effects, not Boolean cuts. The three.js example I posted earlier should be useable by Verge3D but it might need a mod to the blender addon to designate a planar object as a Verge3D “Clipper” for it to be used.

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: Boolean Modifier #19292
    D3Pixel
    Customer

    This thing not the same as boolean. When boolean cuts an object it fills the place where he cut with mesh, so you get solid object and thus thing that Yuri showed just cut object visually and do not fill the cut place, so you will see an opposite side if poligons.

    Maybe this will help you guys implement controllable clipping planes. Would be immensely useful for engineering Web3D where cuts across many objects could be animated. The ultimate clipping I have used so far is VRay Clipping Planes. Very powerful as a shader effect.

    Anyway, check it out:

    Here it is:
    http://daign.github.io/clipping-with-caps/
    https://github.com/shrekshao/clipping-with-caps/tree/3d-texture-webgl-2

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: Angles from Blender to Verge3d #19288
    D3Pixel
    Customer

    Maybe this is Verge 3D puzzles using Local rotation and Global rotation?
    Or you need to reset rotation in Blender (CTRL+A)
    Or your object has a parent so it is offset from that.

    3D Animation and Web3D services - www.d3pixel.co.uk

    D3Pixel
    Customer

    Ok, maybe a [debug = true] puzzle during development could be considered.

    3D Animation and Web3D services - www.d3pixel.co.uk

    in reply to: Please vote for us on AlternativeTo! #19285
    D3Pixel
    Customer

    Done

    3D Animation and Web3D services - www.d3pixel.co.uk

Viewing 15 posts - 16 through 30 (of 84 total)