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 / Texture Object Issues

Author
Message
Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 22nd Nov 2010 07:18
hello, ive been having probs with texturing objects. i have a .x object, and the modeler gives it textures, so i have heard that coloring the object gets rid of the texture. so i color it white, then texture it with a image that is anything but purple, and the object turns purple. Obviously i want the object to turn the correct texture

New 3d marble game coming soon!
Hodgey
16
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 22nd Nov 2010 07:35
Hi, please post your code otherwise it makes it very hard for people to help you.

A clever person solves a problem, a wise person avoids it - Albert Einstein
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 22nd Nov 2010 11:23
Why are you colouring it white if you want to keep the texture?

If you are doing this as a temporary way of highlighting the object you could use "set object emissive" instead...

By setting the objects emissive to 255,255,255 you will turn it white, then just set it to 128,128,128 to set it back to normal again. You can even cycle the value so the object gradually goes white then back again.

If that's not what you are trying to do some code would help

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 22nd Nov 2010 12:29
Quote: "If that's not what you are trying to do some code would help "


The object would be more helpful.
Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 22nd Nov 2010 23:29 Edited at: 22nd Nov 2010 23:30
Sorry about the code, ill include it here i want to get rid of the white texture that the modeler puts on the object so that i can put the new texture on.

i'm using black now, but it shouldnt matter.
now im thinking maybe the object is the issue for it puts two non connected items together in one object. download it to see what i mean

New 3d marble game coming soon!
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 22nd Nov 2010 23:59 Edited at: 23rd Nov 2010 00:00
Quote: "i want to get rid of the white texture that the modeler puts on the object so that i can put the new texture on."

Hum, I think you're mixing the two things, color and texture, up. The 'white texture' you refer to here, is not a texture, but a color. And, you don't need to put another color on the object if you are texturing it (well, you can, but it isn't allways necessary).
Secondly, you forgot to upload the texture too.
And, one other thing, related to your code, why are you using 'pitch object down 1,1' to rotate an object? The command to rotate an object is 'ROTATE OBJECT Object Number, XAngle, YAngle, ZAngle', or you can rotate around only one axis, using one of these three commands:



Cheers

SLAYER RULES! YEAH, MAN!!
Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 23rd Nov 2010 00:24 Edited at: 23rd Nov 2010 00:28
Hmmm... I just tried to texture the object, and it would, so i dont need to turn it a color, but the whole thing still turns purple. i intentionally didnt include the image because----im not sure Oh and i learned to move objects with pitch and turn, so thanks for reminding me of that command and now you have the object download above as well


New 3d marble game coming soon!
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 23rd Nov 2010 00:32
I just looked at the 3D model (which is made in Wings 3D), and it seems that it has an animation (texture animation or something) applied to it, which is why you can't get it textured (or at least not the normal way).
I tried several times too, but didn't succeed. Maybe someone else can get it solved.

Cheers

SLAYER RULES! YEAH, MAN!!
Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 23rd Nov 2010 00:32
here we go again---when i replace turn object left 1,1 with yrotate object 1,1, even inside the loop, it only turns one or whatever the number is set to and stops there. but this thread's topic is still high priority by a lot, so please answer the texturing problems first

New 3d marble game coming soon!
Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 23rd Nov 2010 00:33
wings3d doesnt support any form at all of animation:\

New 3d marble game coming soon!
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 23rd Nov 2010 01:00
Quote: "so please answer the texturing problems first"

Well, I'm not sure what causes the texturing problem, but it's probably due to how it was textured in Wings 3D. The texture you uploaded doesn't show up when textured. So, it's probably caused by the material settings in Wings 3D.

Quote: "here we go again---when i replace turn object left 1,1 with yrotate object 1,1, even inside the loop, it only turns one or whatever the number is set to and stops there."

Try this:



Cheers

SLAYER RULES! YEAH, MAN!!
Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 23rd Nov 2010 01:06
Thanks, cheers!

New 3d marble game coming soon!
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 23rd Nov 2010 12:24
Quote: "Well, I'm not sure what causes the texturing problem, but it's probably due to how it was textured in Wings 3D"


The object doesn't have any texture coordinates so it's not surprising the texture doesn't show up. Load it again into Wings3D and see if there's an option for adding UV coords or UV mapping etc.
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 23rd Nov 2010 15:53
Quote: "The object doesn't have any texture coordinates so it's not surprising the texture doesn't show up."

Well spotted, GG! It was the most obvious problem, but usually, they can be the hardest one to spot.
Still, it doesn't make sense why the model didn't have the UV coords when exported. Every object I make in Truespace has them exported.
Here's the fixed model.

Cheers

SLAYER RULES! YEAH, MAN!!
Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 23rd Nov 2010 23:16
Yah, that's it. i recently remembered this technique i used to use a couple months ago that somehow allowed me to texture things. but it's difficult to do it that way and you have to do it to all primitives before you mod them in any way. but wings makes up for it--i cant understand any other 3d software

New 3d marble game coming soon!

Login to post a reply

Server time is: 2026-07-21 18:37:57
Your offset time is: 2026-07-21 18:37:57