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.

Dark GDK / Texture not showing up

Author
Message
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 26th Oct 2008 00:03
Hi!

This simple code

dbLoadImage( "C:\grass.bmp" , 1 );
dbTextureObject( 1 , 1 );

Should set object #1s texture to image #1, right?

Well, I doesn't show up, still that old gray boring color.
What causes this? How do I fix it?

Btw : I have created the object with the DirectX Device, but it responds to position etc.

Lokiii
16
Years of Service
User Offline
Joined: 26th Oct 2008
Location:
Posted: 26th Oct 2008 15:38
Try putting the grass.bmp into your project folder and using

dbLoadImage("grass.bmp",1);

See if that works.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 26th Oct 2008 20:36
Make sure you created the object with UV data

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!

Login to post a reply

Server time is: 2024-11-25 05:18:47
Your offset time is: 2024-11-25 05:18:47