Simple SDL example to render bricks or checkboard?

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Post Reply
skibud2
Posts: 2
Joined: Thu Jan 03, 2019 5:16 am

Simple SDL example to render bricks or checkboard?

Post by skibud2 »

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: 4146
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. »

I think you have to use "bumptex" instead of "normaltex", the latter is only for tangent space normal maps.
skibud2
Posts: 2
Joined: Thu Jan 03, 2019 5:16 am

Re: Simple SDL example to render bricks or checkboard?

Post by skibud2 »

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