Simple SDL example to render bricks or checkboard?

Use this forum for general user support and related questions.
Post Reply
skibud2
Posts: 2
Joined: Thu Jan 03, 2019 5:16 am

Simple SDL example to render bricks or checkboard?

Post by skibud2 » 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

User avatar
B.Y.O.B.
Developer
Developer
Posts: 2636
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Simple SDL example to render bricks or checkboard?

Post by B.Y.O.B. » Thu Jan 03, 2019 8:18 am

I think you have to use "bumptex" instead of "normaltex", the latter is only for tangent space normal maps.
Support LuxCoreRender project with salts and bounties

skibud2
Posts: 2
Joined: Thu Jan 03, 2019 5:16 am

Re: Simple SDL example to render bricks or checkboard?

Post by skibud2 » Sun Jan 06, 2019 9:02 pm

I needed to add the line:

scene.textures.brick.mapping.type = "globalmapping3d"

The way I debugged this was using blender. Blender has an option to output a scene file for debugging!

Post Reply