You are not logged in.

#1 2011-02-16 22:23:27

pflaumengeist
Member

3D_sample3, each side with a different texture

I am quite new to GRRLIB and i was wondering, is there a way to set 6 different textures one for each side of a cube?

Offline

 

#2 2011-02-16 22:59:29

NoNameNo
Administrator

Re: 3D_sample3, each side with a different texture

sure, have a look a 3D_sample2.
Instead of draw all faces in a pass, you will have to draw each face independantly, and call GRRLIB_SetTexture(tex_girl,0) with a differentent texture each time.
nothing more wink

NNN

Offline

 

#3 2011-02-17 08:36:59

pflaumengeist
Member

Re: 3D_sample3, each side with a different texture

Thanks for the fast reply and i´m really embarrassed to admit that i simply forgot to set GRRLIB_SetTexture(tex_girl,0) (copy&paste is a bad habit wink to a different texture...

Offline

 

Board footer

Powered by FluxBB