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 Discussion / Texture on one side possible?

Author
Message
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 11th Jan 2008 16:43
Hey guys!

I was wondering, if you could texture a cube only on one side. Is that possible?

Thanks!

Oooooops!!! I accidentally formated drive c.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Sonic 91 Software
20
Years of Service
User Offline
Joined: 19th Mar 2005
Location: In a Cryptic Crossworld!
Posted: 11th Jan 2008 20:57
Or just create one in your favourite modelling program and texture only one face before you export it. (I don't know which programs can do this but I'm sure a lot of them can.)

Fight the good fight of faith,
Lay hold on Eternal Life.
-1 Timothy 6:12-
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 11th Jan 2008 23:34
@ TheComet
alternately you could also make 2 plain objects and texture them -

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 12th Jan 2008 12:19
@Bluestar4

That`s what TDK`s link shows

Oooooops!!! I accidentally formated drive c.
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 12th Jan 2008 19:47 Edited at: 12th Jan 2008 19:48
his makes limbs and a cube which creates more surfaces then actually needed. If you only need 2 surfaces , make a couple plain objects and rotate them using the yrotate or xrotate commmands and then position them. yrotate is good for making walls, while xrotate is good for floors and cielings. Here is a sample that will give you the basic feel of how these commands. setting a rotation angle of 90 degrees will give you a wall,floor , or cieling. if you plan on using many objects, this will be a more effifient way of doing it as there wont be as many surfaces to draw.




TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Jan 2008 00:22
Quote: "If you only need 2 surfaces , make a couple plain objects and rotate them using the yrotate or xrotate commmands and then position them"


Ummm... how would that be a cube textured on one side?

Quote: "I was wondering, if you could texture a cube only on one side."


TDK_Man

Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 13th Jan 2008 04:52 Edited at: 13th Jan 2008 04:56
Quote: " how would that be a cube textured on one side? "

Thats a good question TDk. and the answer is :

its not, but 6 of them rotated and positioned correctly do


The other alternative is to do as Sonic 91 Software suggested and make his own model

oh and tkd , I look forward to a full mutl-player tutorial on the board from you in the future. It would be nice if they stickyed them all

Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 13th Jan 2008 11:34
what if you change the uv data in the memblock?

Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 14th Jan 2008 00:47 Edited at: 14th Jan 2008 00:49
@Link102
Good idea! You could do that, but then you would have to create an image that contains each image or color for each side in the proper place. Basically you'd have to unwrap the mesh and paint a single image with the right colors for each side. Need the right math. Here's an example without the proper unwrapping - it does show that this idea is sound because it colors the sides of the cube differently.



Once you've created the new object with the new uvs, you can just keep making copies of it for each cube you want multi textured. Shouldn't impare speed because you could just use the MAKE OBJECT command from the new mesh (though I delete it in the example for clean up).

Enjoy your day.

Login to post a reply

Server time is: 2025-06-02 10:07:36
Your offset time is: 2025-06-02 10:07:36