Jump to content

LE 2.51 - Updating Vegetation billboards realtime


Flexman
 Share

Recommended Posts

Is there a way to get access to a vegetation layers billboard?

 

In this screen-shot you can see I've applied heavy handed snow texture to these pine trees (in white - erm), you can see the billboards are still in the default green. Are there any undocumented properties or functions to get at this texture?

 

post-52-0-76094300-1385415883_thumb.jpg

6600 2.4G / GTX 460 280.26 / 4GB Windows 7

Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT

Tricubic Studios Ltd. ~ Combat Helo

Link to comment
Share on other sites

If you're doing this in BlitzMax, you can use reflection to view the entire structure of the classes.

TQuadTree:

Type TQuadTree

Field layer:TVegetationLayer[MAXVEGETATIONLAYERS]
Field root:TQuadTreeNode
Field world:TWorld
Field levels:Int
Field terrain:TTerrain

 

TVegetationLayer:

Type TVegetationLayer

Global shadowmode:Int

Field body:TBody
Field shape:TShape
Field collisiontype:Int
Field aabb:TAABB
Field batch:TBatch[8]
Field lodDistance:Float=50.0
Field vegetationobject:TVegetationObject[]
Field lodcount:Int
Field radius:Float
Field billboardtexture:TTexture[2]
Field billboarddrawqueue:TSurface[]
Field billboarddrawqueuecount:Int
Field castshadows:Int=1
Field density:Float=8
Field viewrange:Float=100
Field randomscale:Float=0
Field randomtilt:Float=0
Field aligntoterrain:Int=0
Field index:Int
Field randomrotation:Int=1
Field minslope:Float=0.0
Field maxslope:Float=90.0
Field minheight:Float=0
Field maxheight:Float=1000
Field usebillboards:Int=0
Field scene:TShape
Field path:String

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...