About Store Forum Documentation Contact



Post Reply 
Tree
Author Message
Krzysiek1105 Offline
Member

Post: #1
Tree
Can you tell me how to save trees of tutorial Tree.cpp?
PHP Code:
if(Kb.bp(KB_SPACE))
   {
       
tree.save("Dzrewo/D/1.mesh");
      
// create the tree
      
Memb<Material*> leaf_materials// container of leaf materials
      
leaf_materials.New()=Materials("mtrl/leaf/0/0.mtrl");
      
leaf_materials.New()=Materials("mtrl/leaf/0/1.mtrl");

      
tree.createTree(Materials("mtrl/bark/0.mtrl"),leaf_materials)
          .
setRender ();
     
   } 
But trees are not sticking ...
(This post was last modified: 10-17-2009 05:12 PM by Krzysiek1105.)
10-17-2009 05:10 PM
Find all posts by this user Quote this message in a reply
craksy Offline
Member

Post: #2
RE: Tree
sure you don't want to put tree.save() AFTER you created it?
10-17-2009 05:16 PM
Find all posts by this user Quote this message in a reply
Krzysiek1105 Offline
Member

Post: #3
RE: Tree
Still doesn't work ... : (
10-17-2009 05:24 PM
Find all posts by this user Quote this message in a reply
craksy Offline
Member

Post: #4
RE: Tree
exactly what are the problem?
that the tree doesn't show up, or it isn't saved?
10-17-2009 05:30 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: Tree
maybe the folders "Dzrewo/D/" don't exist
10-17-2009 05:34 PM
Find all posts by this user Quote this message in a reply
Krzysiek1105 Offline
Member

Post: #6
RE: Tree
(10-17-2009 05:34 PM)Esenthel Wrote:  maybe the folders "Dzrewo/D/" don't exist

Not working. :(
(This post was last modified: 10-17-2009 05:41 PM by Krzysiek1105.)
10-17-2009 05:40 PM
Find all posts by this user Quote this message in a reply
craksy Offline
Member

Post: #7
RE: Tree
i think he meant:
Be sure that you already created the folders Dzrewo and D, before running the app.
it won't automatically create the folders if they doesn't exitst
10-17-2009 06:08 PM
Find all posts by this user Quote this message in a reply
Barthap Offline
Member

Post: #8
RE: Tree
Hmm... Probably you've written DRZewo, not DZRewo. Spelling!
10-18-2009 08:11 AM
Find all posts by this user Quote this message in a reply
Post Reply