Simple SDL example to render bricks or checkboard?
Posted: Thu Jan 03, 2019 5:21 am
I am trying to generate a scene with a texture of bricks mapped onto a background using the LuxCore SDL. For some reason the texture is not rendering. I am doing:
scene.textures.brick.type = brick
scene.textures.brick.brickwidth = 0.03
scene.textures.brick.brickheight = 0.01
scene.materials.wall.type = matte
scene.materials.wall.kd = 1.0 0.0 0.0
scene.materials.wall.normaltex = brick
I have also tried the checkboard pattern. Can someone point me in the right direction?
Thanks,
Mike
scene.textures.brick.type = brick
scene.textures.brick.brickwidth = 0.03
scene.textures.brick.brickheight = 0.01
scene.materials.wall.type = matte
scene.materials.wall.kd = 1.0 0.0 0.0
scene.materials.wall.normaltex = brick
I have also tried the checkboard pattern. Can someone point me in the right direction?
Thanks,
Mike