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 / Textured 3d Plain

Author
Message
Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 14th Jun 2006 23:34
Compiler: DBPro 1.061

I am having some problems texturing a "plain". My image is a PNG with a Yellow 0 (64x64). Everytime I texture the object it just shows up like a brownish fat 1.



http://www.gamestack.org
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 15th Jun 2006 00:50
Yellow looking brown is probably because of the shadows on the plain. Try putting "set object light 1,0" before "do".

Insanity is just a state of mind
Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 15th Jun 2006 01:00
That solved the problem of them being "Brownish". However doesnt solve the texture problem.

I have attached my code/project.

I am really not sure what is happening as i don't see any reason for it to mess up. Is there a problem with PNG formats?

** I am just borrowing the images from Gem Towers until i get this sorted out. Then i will be making my own.

http://www.gamestack.org

Attachments

Login to view attachments
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 15th Jun 2006 01:31
You have to put an extra 1.....

LOAD IMAGE "tileset/numbers/0.png", 1,1

I don't have DB Pro, but I think that it uses AA too much or something.

Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 15th Jun 2006 01:42
I did what you said for my load textures, but it still didnt fix it.

I have included an image of what I see when i run the program.

http://www.gamestack.org

Attachments

Login to view attachments
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 15th Jun 2006 10:25 Edited at: 15th Jun 2006 10:36
Actually they all come out as squares in my image viewer as well, but they work OK in Photoshop.

spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 15th Jun 2006 11:14
Because you have used PNG's with a transparent background, you HAVE to turn on transparency on the object, otherwise you get those weird square numbers.

set object transparency 1,2

Boo!
Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 15th Jun 2006 15:28
Thanks Spooky, that worked perfectly.

http://www.gamestack.org

Login to post a reply

Server time is: 2024-09-25 01:28:17
Your offset time is: 2024-09-25 01:28:17