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.

AppGameKit Classic Chat / Plane object : texture the front and the back with different images

Author
Message
XANAX 2B
21
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 4th Sep 2017 05:42 Edited at: 4th Sep 2017 07:24
Hello

I would like to texture the front and the back of a plane object with two different textures.
I suppose it is simple, but i don't now how to do.
Can you show me a simple sample code ?

EDIT:
Or is it possible to texture the front of the plane with the half of an image, and the back with the other half ?
My Freewares here : http://www.retro-bruno.com
IronManhood
9
Years of Service
User Offline
Joined: 6th Feb 2015
Location: US
Posted: 4th Sep 2017 08:14
Why not have two planes with one flipped the other way?
XANAX 2B
21
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 4th Sep 2017 09:28
i've done this for the moment. But with 240 planes multiplied by 2, i think my program will slow down on simple computers.
My Freewares here : http://www.retro-bruno.com
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 4th Sep 2017 11:43
240 planes multiplied by 2 = 1920 polygons, that's nothing.
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 4th Sep 2017 12:31
You need to change the UV data of your plane.
You could do that with the memblock commands but I suggest you to do that in a modeling program.
You can further optimize your game if you add the planes to one or a few big objects.
XANAX 2B
21
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 7th Sep 2017 23:21
Thanks to all
My Freewares here : http://www.retro-bruno.com

Login to post a reply

Server time is: 2024-09-30 07:30:20
Your offset time is: 2024-09-30 07:30:20