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 / Set Alpha Mapping On turns my dbo object red... not transparent...

Author
Message
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 11th Mar 2010 13:49
I have a problem using alpha mapping with the attached spaceship.

It was originally a 3ds object I saved as a dbo, when I set alpha mapping on it just turns red (one of the materials I think).

Use the code below to test it:


...and yes I did search the forums and tried numerous clever sounding ideas but none worked!

Any help would be great thanks!

Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 11th Mar 2010 13:57
Your using transparency mode 1, which might be the issue - try using 2 or 3, as 1 might be assuming straightforward 1-bit transparency rather than alpha. Another issue could be the default transparency colour of pure black - this can cause issues with non-alpha textures. I tend to set my transparency colour to magenta SET IMAGE COLORKEY 255,0,255.

Worth a try, don't have DBPro handy right now so can't check your attachment.


Health, Ammo, and bacon and eggs!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 11th Mar 2010 14:26
I just tried those suggestions (thanks Van B) but they don't change anything...

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th Mar 2010 17:00
It's your object format. If you convert it to a mesh and back again it works.

You may need to convert the objects fvf format to include alpha, or something.

My signature is NOT a moderator plaything! Stop changing it!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 11th Mar 2010 17:49 Edited at: 11th Mar 2010 18:44
Quote: "It's your object format. If you convert it to a mesh and back again it works."

It does thanks, but I loose all my materials...

One of the things I liked about this object was I didn't have to load textures too. Is there a way to keep the materials so I don't have to re-texture it?

Quote: "You may need to convert the objects fvf format to include alpha, or something."

How would I go about doing that? I've never used fvf commands before...

EDIT: I just spent a while playing with fvf formats with no luck improving the object. Does anyone have any other ideas?

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th Mar 2010 18:50
Quote: "It does thanks, but I loose all my materials..."

I mentioned this meaning you should sort the issue out from within your modelling software. Maybe it's the way your creating your materials? I've never had this issue exporting from truespace?

My signature is NOT a moderator plaything! Stop changing it!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 11th Mar 2010 20:36 Edited at: 15th Mar 2010 15:06
I made them in sketchup. I'll try importing then exporting using something else and see if it gets rid of the problem.

EDIT: It seems that this is a bit 'buggy' as I edited the model so it had seperate limbs for each color and this made alpha mapping work perfect... sometimes...

Occasionally when I cloned the object some limbs would still come out visible when the rest weren't, the rest of the time it worked great.

My current solution is to use "set object ambient" as the background is black anyway and it just works!

If you have the same problem try posting it and let me know if you get a solution!

Login to post a reply

Server time is: 2026-07-26 23:41:01
Your offset time is: 2026-07-26 23:41:01