View Full Version : Making Trees
11-17-2003, 07:47 PM
Okay, how do I do this? I'm using the textures in the yavin folder, and I can make a tree trunk just fine, but it's the leaves that I'm having trouble with......... ideas, anyone?
11-17-2003, 09:24 PM
Well, although you probably could build your trees that way, it might not be worth the trouble. Why don't you just insert misc_models into your map. You can have that way a pretty good selection of different trees with no more work than selecting misc_model and browsing for the right directory (models/map_objects etc...). Then just clip the trunk if you don't want people running through it.
11-18-2003, 12:47 AM
I would, but when I place the models and test the map, I'm only seeing the trunk, not the leaves. :confused:
I was doing some browsing in JKA's model directory with PakRat (A Mac only MD3 viewer).
The Yavin tree models consist of ONLY the trunks. There are no leaves actually on the MD3 model.
My guess is Raven placed the trunks into the map and then lined up several brushes that had the tree texture applied (Probably to only one side of the brush, leaving the others set to "nodraw") to them to the points where the leaves would be on the tree.
I don't know why they did this. Perhaps it allows more variety as different leaves can be applied.
So, my recommendation to you would be the same thing (Ie draw a brush that's located at the tip of the trunk, apply a nodraw shader texture to it, and then add a leaves texture to one of the main sides).
Hope that helps!!
11-18-2003, 03:42 AM
My trees have leaves on them : /
11-18-2003, 01:19 PM
i had problems with the tree models too, esp tree 6 !!! so what i did was take the leave tga files out of assests, rename it and turn it into a trans, 2 sided shader , then make a brush outta system/nodraw and cover one side in the leave texture. copy a few times then rotate them rnd to form a tree like shape, build yur trunk and compile, should work sweet as a nut ( best to build this sep. from yur map so u can quickly bsp and test it )
11-19-2003, 04:19 AM
Most of the yavin trees with _b in their name don't work without doing something additional. I made a list about those trees and will post it later today.
These are the trees that didn't work:
11-21-2003, 07:36 PM
Hey thnx for starting this Chopper!! It's great to know I'm not the only one going insane!! I used patch meshes for my LEAVES but changing the trans is a good idea. Can you post the shader file that you got working there 71M? I can make my own I guess and post it here. Other than that I was using 2 patchs back to back and reversing the texture.....which doesn't look good ingame so yeah I'll fool around with the shader and let you know.
11-22-2003, 02:13 AM
blendFunc GL_ONE GL_ZERO
blendFunc GL_DST_COLOR GL_ZERO
thats one i used, just change file names to suit yur needs :D hope this helps
vBulletin®, Copyright ©2000-2016, Jelsoft Enterprises Ltd.