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 / Apply a different texture on every side of a PLANE object

Author
Message
Alfonso
15
Years of Service
User Offline
Joined: 11th Jun 2011
Location:
Posted: 11th Jun 2011 12:39
Hi!

This my first post, so hello to everyone

I bought Darkbasic Pro some years ago and always coded 2D stuff. And now I was thinking of coding a kind of "Find the pairs" card game in 3D.

I have created a PLANE object like this:



The bitmap has the two sides: 128*172 = 128*86 (twice)

I have been trying and trying with no success at all. I just get the whole bitmap on both sides ...

This is a newbie question, for sure.

Thanks for your help.

Regards,

Alfonso
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 11th Jun 2011 15:43 Edited at: 11th Jun 2011 15:44
Hi Alfonso, welcome to the forums.

I suggest making a plain object, then adding another plain to it as a second limb, then flip that, and texture it with a back texture. So you'd have all the card faces as images, then just 1 back texture, like the back of a playing card maybe.

Anyway, here's a little example of what I'm talking about:



Health, Ammo, and bacon and eggs!
Alfonso
15
Years of Service
User Offline
Joined: 11th Jun 2011
Location:
Posted: 11th Jun 2011 16:43
Thank you very much, Van B. It works!

I am getting used to meshes and limbs now. With you functions is easy to create more objects and just change the last parameter to load a different image on the back of the new object.

Now let's investigate about camera, light, mouse, ...

Regards,

Alfonso

Login to post a reply

Server time is: 2026-07-10 22:54:31
Your offset time is: 2026-07-10 22:54:31