Cube Environment Mapping

peter's icon

How can i create a cube map texture (samplerCUBE) in jitter? I want to make a simple environmentmapping-shader with 5 videos and one picture.

joshua goldberg's icon

use jit.gl.plato and make a custom texture with the preferred
mapping. or look at the method used in the jit.gl.render.cube
example, which serially runs six matrices directly into jit.gl.render.

On Nov 28, 2007, at 4:00 PM, peter wrote:

>
> How can i create a cube map texture (samplerCUBE) in jitter? I want
> to make a simple environmentmapping-shader with 5 videos and one
> picture.
>
>

Wesley Smith's icon

Hi,
This is not possible with the current version of Jitter without
writing it yourself.
wes

On Nov 28, 2007 1:00 PM, peter wrote:
>
> How can i create a cube map texture (samplerCUBE) in jitter? I want to make a simple environmentmapping-shader with 5 videos and one picture.
>
>

peter's icon

thanks

Wesley Smith's icon

If you just want to show video on a cube, what Joshua suggests will
work. If you want to use a cube sampler to do reflection or
refraction, then that is not possible right now.

wes

On Nov 28, 2007 1:11 PM, peter wrote:
>
> thanks
>
>

peter's icon

yes i want render a video environment on a water surface and other geomity but a spheremap is not suitable for this.

Federico-AmazingMaxStuff's icon

Hi all, please do tell me that with Max 7 it's possible to have a cube texture to be sampled with samplerCube, this would make me really happy!

Rob Ramirez's icon

jit.gl.cubemap?

Federico-AmazingMaxStuff's icon

Sorry solved, somehow was scared by the fact that jit.gl.cubemap doesn't accept textures as inputs

Rob Ramirez's icon

yeah, that's a long standing feature request

Federico-AmazingMaxStuff's icon

One more thing dear Rob: it seems to me that jit.gl.cubemap sets the bit depth of the textures inside to something lower than float16. Is that really so? I'm doing BRDF and need to sample an hdr image from a cubemap. but the high float numbers get somehow cut from jit.gl.cube. Can you confirm me that?

Federico-AmazingMaxStuff's icon

Maybe there's a workaround for that?

Rob Ramirez's icon

no idea, post patch, example files, steps to repro, and expected behavior and i'll see what i can see (or email me)

Federico-AmazingMaxStuff's icon

Hi Rob, I sent you an email, thanks a lot.