Forum Replies Created
-
AuthorPosts
-
nikolstrek
CustomerIt works fine. But i need to control “scene” and “camera” modules, and i dont’t know how can i get them in Player. Help me please! :)
nikolstrek
CustomerIt doesn’t print errors.
I choose this way, because i use the “pointerlock.js” for first person controlls.
How can i get the scene.camera if i exported scene from blender, like in the “external_call” example, i try this method in “Run your code here” but was occur an error.nikolstrek
CustomerThank you, Yuri. I will try it.
nikolstrek
CustomerNo :)
nikolstrek
CustomerI was edited the “Ring” scene and delete UVs from Geometry node and set up the Normal output to the Texture, so i think this material don’t depend from UV.
nikolstrek
CustomerHere the console.log code, “Un” it’s undefined i guess.
Un {uuid: “A0EFAA9B-97C4-4E01-AC28-92EE7EAD1B2C”, name: “silver_material”, type: “MeshNodeMaterial”, fog: false, lights: true, …}
additionalNodeGraphs
:
{}nikolstrek
CustomerHi. Yes, this method returns object. I’ll placed a code here tomorrow morning. :)
nikolstrek
CustomerThank you Will, but if i going to upload or create a 3d object in the scene (with .stl loader for example)
How can I apply this blender3d material for him ?nikolstrek
CustomerAnd hello again ! :)
I try to apply a material from the ring to a torusvar geometry = new v3d.TorusGeometry( 10, 3, 16, 100 );
var mat = v3d.SceneUtils.getMaterialByName(v3dApp, “gold_material”);
var torus = new v3d.Mesh( geometry, mat );
v3dApp.scene.add( torus );but something goes wrong and we see a black material…
nikolstrek
CustomerThank you Yuri.
nikolstrek
CustomerIt seems understood. I need to apply the material to the hidden object in Blender and then change it to a loaded obj in the scene. Like in b4w )), but how can I find the requared material in a scene ? Is there a method like scene.getMaterialByName ?
nikolstrek
CustomerThanks Friends. I will look at the materials library.
But the thing that I’m trying to achieve is to apply the material created in Blender to the imported in v3d 3D model (.obj or .stl), without writing shaders.
Is it possible with the materials library or anything else? :) -
AuthorPosts