Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / having problems loading textures into dbpro onto the tree

Author
Message
The GG
14
Years of Service
User Offline
Joined: 5th Mar 2012
Location:
Posted: 5th Mar 2012 20:42
i'm relativily new to dbpro and have problems with the texturing the trees. the trees load fine but when i load the image onto the tree it loads the tree image all over the .x file intstead of structuring it. ex. it shows the texture of the trunk and the leaves even on the trunk.. i dunno what i'm doing wrong or if i'm missing a line of code but here's what i've got so far.

Load object "test.x",2
Load Mesh "test.x",1
Load image "test.png",2
Position object 2,150,50,150
Set object transparency 2,2,0,4

i think thats it any help as to why its doing this?
Fallout
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 5th Mar 2012 22:56
Take a look at the texture limb command. That will allow you to apply a trunk texture to the trunk of a tree object and a leaf texture to the leaves, for example, so long as they are separate limbs within the object.

Take a look at the Perform Checklist For Object Limbs and checklist command sets to examine what limbs an object has.

Login to post a reply

Server time is: 2026-07-09 00:08:29
Your offset time is: 2026-07-09 00:08:29