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.

Author
Message
GMX
19
Years of Service
User Offline
Joined: 19th Sep 2005
Location: In front of my monitor
Posted: 20th Sep 2005 00:21
Hi,

I'm wondering, how do I apply textures to certain objects (yes I'm a newb). I'm using DBPro trial version. (so far it looks great).

So for example, I create a cube and I have a texture, bricks.bmp that I want to apply to it. How would I do that?

Thanks,
GMX
The Cage Complex
19
Years of Service
User Offline
Joined: 26th Aug 2005
Location: Reims, France.
Posted: 20th Sep 2005 06:36
I used variables for easier undestanding



This should be ok for your very first step in DBP!

Leeorg
19
Years of Service
User Offline
Joined: 5th Jul 2005
Location:
Posted: 20th Sep 2005 08:32
Cage - that is a top idea! I've been using numbers all this time and often have to write somewhere what they are! Didn't even cross my mind to us varibles. Think I'll be using this idea in the future
GMX
19
Years of Service
User Offline
Joined: 19th Sep 2005
Location: In front of my monitor
Posted: 20th Sep 2005 20:04
Thank you Cage I'll try it in a couple minutes.
GMX
19
Years of Service
User Offline
Joined: 19th Sep 2005
Location: In front of my monitor
Posted: 21st Sep 2005 00:00
Thank you Cage I\'ll try it in a couple minutes.

EDIT: Okay, I tried it, and it works. But now I have another question, how do I tile the texture? Because I wanted to make a floor which was like 3000X3000 (that\'s widthXdepth) and I applied the texture to it and it stretched the texture. How would I get it to tile the texture instead?

Here is my code so far (DBPro):

GMX
19
Years of Service
User Offline
Joined: 19th Sep 2005
Location: In front of my monitor
Posted: 26th Sep 2005 22:40
Anybody?
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 27th Sep 2005 01:38
check the 3d monster hunt tutorial about texturing matrices. there should be something there

and yes, i know the tutorial is meant for dbc but i think basics will be the same.

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
GMX
19
Years of Service
User Offline
Joined: 19th Sep 2005
Location: In front of my monitor
Posted: 27th Sep 2005 02:01
I need help tiling textures, not making textures tiles. Meaning I need a way so that if I have a 256x256 bmp for a texture, and I want to put it on a 4000x4000x4000 cube, it will tile the texture (repeat it many times to fill up the surface of the 3d object) instead of stretch it all around.

Also, how do you apply different textures to different parts of objects?
The admiral
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 27th Sep 2005 06:28
use set object texture it has a flag to tile it as you say read the helpfile for more info on what each flag does.

The admiral
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 27th Sep 2005 06:51
I had this problem too. It just stretches to fit. I tried the set texture command but it doesn't help.

Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 27th Sep 2005 15:29
have a look at this command-

scale object texture


The word "Gullible" cannot be found in any English Dictionary.
Rikimaru
19
Years of Service
User Offline
Joined: 31st Aug 2005
Location: England
Posted: 27th Sep 2005 21:00
Yeah that Scale object Textures works great, here's what I use


since my floor is 5000 x 5000 (X x Z) the scale of 2000,2000 works well for a tiled effect.

Hope this helps

"Death is but an escape chosen by those who dare not live. I merely emancipate their souls." - Shadowblade, Master of Assassins.
GMX
19
Years of Service
User Offline
Joined: 19th Sep 2005
Location: In front of my monitor
Posted: 27th Sep 2005 21:52
Thanks people it works

Now I have just one more question: How do I put more than one texture on the same object?

Hey, I'm still a newb, so expect lots of questions from me.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 27th Sep 2005 22:05
Use a 3D modelling program.

You can't texture a primitive object with multiple textures in DB. Well DB Classic anyway and the DBPro trial version was the same last time I checked, though I couldn't guarantee it.

TDK_Man

GMX
19
Years of Service
User Offline
Joined: 19th Sep 2005
Location: In front of my monitor
Posted: 27th Sep 2005 22:27
Quote: "Use a 3D modelling program.

You can't texture a primitive object with multiple textures in DB. Well DB Classic anyway and the DBPro trial version was the same last time I checked, though I couldn't guarantee it.

TDK_Man"


I'm using 3ds max and whenever I apply a texture to the 3ds model (while editing it in 3ds max) it gives me an error if I try to load it into DBPro.

Is there a way to fix this?

Hey, I'm still a newb, so expect lots of questions from me.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 27th Sep 2005 22:36
I'm no expert with either Max or DBPro, but from what I've seen on here, I think that in DBP, you have to save the model as a .X file for it to work properly.

.X files are DirectX files and therefore DB's 'native' model format and should be used if you have the option to save them in your modelling package.

Alternatively, there are a number of 3DS to .X converters available, but as I use Truespace I've never needed one.

TDK_Man

Rikimaru
19
Years of Service
User Offline
Joined: 31st Aug 2005
Location: England
Posted: 27th Sep 2005 23:07
That's right, for some reasonw hen I try to load .3ds files they never work properly, but when I try to load the same .x file it works, DBPro doesn't seem to like .3ds filesfrom what i know.

"Death is but an escape chosen by those who dare not live. I merely emancipate their souls." - Shadowblade, Master of Assassins.
GMX
19
Years of Service
User Offline
Joined: 19th Sep 2005
Location: In front of my monitor
Posted: 27th Sep 2005 23:28 Edited at: 27th Sep 2005 23:29
It works!

Thanks everybody, I sure do love these forums and DB

Hey, I'm still a newb, so expect lots of questions from me.

Login to post a reply

Server time is: 2024-11-27 16:37:03
Your offset time is: 2024-11-27 16:37:03