NasimiAsl Posted February 28, 2016 Share Posted February 28, 2016 http://melyon.ir/Melyon/Preview/Index/40426 http://melyon.ir/Melyon/Preview/Index/40427 hi any body have sample for generate tree in bjs ? (i maked it with .obj file ) i need make tree Quote Link to comment Share on other sites More sharing options...
adam Posted February 28, 2016 Share Posted February 28, 2016 http://www.pixelcodr.com/tutos/trees/trees.html Quote Link to comment Share on other sites More sharing options...
Temechon Posted February 28, 2016 Share Posted February 28, 2016 You also have this thread : Quote Link to comment Share on other sites More sharing options...
JohnK Posted February 28, 2016 Share Posted February 28, 2016 and am still working on my version trying to get the fir tree option to work. Getting closer but not quite there yet. Have got leaves on the trees though. adam 1 Quote Link to comment Share on other sites More sharing options...
JohnK Posted February 29, 2016 Share Posted February 29, 2016 This is how far I have got so far http://www.babylonjs-playground.com/#QNVMR#2. Am currently working on adding additional branches that are not forks. These will also be used for generating fir type trees. The boughs give the number of levels to the tree. Obviously generation gets slower with increased forks and boughs. Note the use of SPS for leaf branch building, tried using merge meshes but had memory problems. This was a way I tried to speed up generation, all the leaf branch sections are pre-generated and identical except for rotation. In the code I am working on currently I have dropped generating each half of the leaf separately (which allowed a bend in the middle of the leaf) and just generate a leaf shape which cuts down on the number of facets. jerome 1 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 29, 2016 Author Share Posted February 29, 2016 very high quality i think low-poly is good for generated . Quote Link to comment Share on other sites More sharing options...
jerome Posted February 29, 2016 Share Posted February 29, 2016 superb !!! (3,4 Million vertices wwwaaaooow) Quote Link to comment Share on other sites More sharing options...
JohnK Posted February 29, 2016 Share Posted February 29, 2016 @jerome 3.4 million vertices eh! and I am still trying to add branches. @NasimiAsl will have to look at lowering the quality or else nothing else will be able to be added to the scene! Have an other idea for tree drawing but not sure how I will do it, if it is possible or whether it would work. It would mean taking a panoramic image of the branches and leaves of a tree, ie tree at centre camera rotated 360 degrees around tree. In BJS draw trunk using ribbon plus texture then add a sphere (or hemi-sphere or cylinder) around top of trunk and use panoramic image for texture. Even better if could make background to tree in image transparent and set sphere to double sided. Wont be thinking about this until I have finished what I want to do with existing tree generation. jerome 1 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted March 9, 2016 Author Share Posted March 9, 2016 http://melyon.ir/ i set low quality tree in my scene . still not generated (:) Quote Link to comment Share on other sites More sharing options...
JohnK Posted March 10, 2016 Share Posted March 10, 2016 Have had view of Melyon and it is impressive. I am still a long way off generating trees that are realistic and do not take up too much memory or time. The image transparency on mesh issue was a different attempt but didn't work . Your trees in Meylon do work but there is a clash of styles with the generated images. You seem to be using 2D images so for style consistency perhaps generate 2D trees and use the images of these instead of real images of trees. Quote Link to comment Share on other sites More sharing options...
adam Posted March 16, 2016 Share Posted March 16, 2016 If you are looking for textures, the humble bundle this week has some asset packs that include tree textures. Quote Link to comment Share on other sites More sharing options...
JohnK Posted April 12, 2016 Share Posted April 12, 2016 Having compromised, restricted and simplified have produced a slightly faster tree generator. http://www.babylonjs-playground.com/#1LXNS9#1 More than five trees is pushing it. http://www.babylonjs-playground.com/#1LXNS9 NasimiAsl and RaananW 2 Quote Link to comment Share on other sites More sharing options...
jerome Posted April 12, 2016 Share Posted April 12, 2016 superb Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.