Cube mapping

Blitz3D Forums/Blitz3D Programming/Cube mapping

Makepool(Posted 2005) [#1]
I have a entity which I want to both have its own texture but also have it reflect what’s around it using cube mapping. I can do one or the other but not both, it's probably very easy but right now I can figure it out.

How's it done?


Gabriel(Posted 2005) [#2]
Put the cube map on texture layer zero and the "own" texture on texture layer 1.

EntityTexture MyEntity,CubeTexture,0
EntityTexture MyEntity,OwnTexture,1


Play with blend modes to get the effect you want. Probably Additive Blending, but see what you think. You can do it the other way around, but there's a long standing bug with putting cube maps on any layer but layer zero. Doesn't look like being fixed either, so best avoid doing it.


Damien Sturdy(Posted 2005) [#3]
Might want to check out my "cubemapping system".Doesnt fix the problem with multitexturing though.