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.

Newcomers DBPro Corner / How do i texture each side on a cube ?

Author
Message
Lryd
20
Years of Service
User Offline
Joined: 6th Mar 2004
Location:
Posted: 25th Jan 2005 05:28
Hello!

im making a rotating cube, and í would like to
use different textures on each side of the cube, but
i havent figured out how to do it.
would preciate if some one could tell me how to do it, cause as it is now i can only texture the whole cube with one texture.

thanks for help

/Slash
Pricey
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 25th Jan 2005 05:32
You would have to use Memblocks but I'm no expert on that

:: 1.8 gHZ AMD Duron :: 256 MB Ram :: 32 MB SiS Graphics ::

:: Current Project: Sea Bound ::
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 25th Jan 2005 05:44
You would have to either make each side a limb (with memblocks) or make the cube out of 6 plains (much easier).

Lryd
20
Years of Service
User Offline
Joined: 6th Mar 2004
Location:
Posted: 25th Jan 2005 05:51
okey
can some one plz show me how to do, cause im not
getting anywhere.
thanks guys.
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 25th Jan 2005 22:21 Edited at: 25th Jan 2005 22:22
you should ask freddix but I can give you a link if you just hold on. (must find freddix homepage )

edit:

okay I just found out this is dbc code...
http://cordierfr.free.fr/html/sourcecode/multi-texturage(freddix).zip

bibz1st
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 29th Jan 2005 22:03
you could try Lithunwrap
Joegio13
19
Years of Service
User Offline
Joined: 26th Jan 2005
Location: Miami, FL
Posted: 30th Jan 2005 01:47
i have the same problem. the way i fixed the problem was w3itht he 6 plain method. heres the code.

hope that helps, this was the first code i ever wrote. it works, but mayge a little sloppy.

-sigh- DBPro can't program in the 4th dimension
Joegio13
19
Years of Service
User Offline
Joined: 26th Jan 2005
Location: Miami, FL
Posted: 30th Jan 2005 02:08
after looking at the code, i realize it needs comments. I used a for..loop to make my walls. here is the code commented.
hope that helps, and doesnt confuse you. if it does u can just straight copy it and paste it into your source. and just change what is needed.

-sigh- DBPro can't program in the 4th dimension
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 30th Jan 2005 09:06
Unless you never want to progress beyond cubes, spheres and cones, you should try using a 3d modelling program. There are free ones, cheap ones, and expensive ones, but all of them will let you texture one side of a cube with a single click of the mouse.


Lryd
20
Years of Service
User Offline
Joined: 6th Mar 2004
Location:
Posted: 28th Feb 2005 00:49
thx for the help!

you know before you buy expensive stuff, you try to pick your project down i parts and study the parts, then you learned the technique, to solve the first part, then you get a good application. Im just trying to solve alot of parts, then i set it up to an game, but meanwhile i use spheres and cubes!

thx for the code!

it was really helpful.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 28th Feb 2005 07:03
Made this last summer for someone.



"eureka" - Archimedes
Foxy
19
Years of Service
User Offline
Joined: 4th Jan 2005
Location: The Dale, South Australia
Posted: 28th Feb 2005 17:57
I'll texture a cube for you instead. Send me the pics you want on each side and I'll do it in lithunwrap.

Gaming resources.

Moruk
19
Years of Service
User Offline
Joined: 9th Feb 2005
Location:
Posted: 3rd Mar 2005 14:02
There's a few tutorials on the TGC Main site. The boxes one or something. I'm not entirely sure how it works myself, but you use boxes, rather than a cube command. Then you can just apply a texture to individual boxes...I think. >.>


P4 3.4ghz, 512mb DDR2 533mhz RAM, GeForce 6800 GTO 256mb Graphics Card, Sound Blaster Audigy 2. Win.

Login to post a reply

Server time is: 2024-09-23 13:26:51
Your offset time is: 2024-09-23 13:26:51