LDraw.org Discussion Forums
Texture does not render in LDCad 1.6b - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html)
+--- Thread: Texture does not render in LDCad 1.6b (/thread-22833.html)



Texture does not render in LDCad 1.6b - Jaco van der Molen - 2018-05-17

Hi Roland, and others,

I have LDCad 1.6b running and configured like it should, but no texture is rendered on textured parts.
I still have LDCad 1.6a running on the same machine that uses the same libraries and there all my custom texturemapped parts render just fine.

What could be wrong?
I obviously checked and made sure Texture mapping was enabled in 1.6b.


RE: Texture does not render in LDCad 1.6b - Roland Melkert - 2018-05-17

(2018-05-17, 13:15)Jaco van der Molen Wrote: I have LDCad 1.6b running and configured like it should, but no texture is rendered on textured parts.
I still have LDCad 1.6a running on the same machine that uses the same libraries and there all my custom texturemapped parts render just fine.

The only thing changed regarding textures between a and b is generation of mipmaps. So this could be a driver thing.

Did you use the same main.cfg for both versions? You can force that by (tmp, rename the a version exe) placing the b version in the a version's bin folder.


RE: Texture does not render in LDCad 1.6b - Jaco van der Molen - 2018-05-18

(2018-05-17, 16:50)Roland Melkert Wrote:
(2018-05-17, 13:15)Jaco van der Molen Wrote: I have LDCad 1.6b running and configured like it should, but no texture is rendered on textured parts.
I still have LDCad 1.6a running on the same machine that uses the same libraries and there all my custom texturemapped parts render just fine.

The only thing changed regarding textures between a and b is generation of mipmaps. So this could be a driver thing.

Did you use the same main.cfg for both versions? You can force that by (tmp, rename the a version exe) placing the b version in the a version's bin folder.

Hmm, OK. I did not use the same main.cfg because I have set up 1.6b like a fresh install.
I did make a copy of the LDCad.exe for 1.6b and placed that in the 1.6a folder (after backing up the original indeed ;-)

That did the trick. Textures render fine!

Now what causes that?
The only true difference (besides window state, last openend files, etc) between the two setups I could find was in the main.cfg [LDraw] section

vertexProcessingMode=smooth (1.6a)

vertexProcessingMode=none (1.6b)

Setting it to smooth in 1.6b did the trick in the 1.6b setup. It now renders textures fine too... ;-)


RE: Texture does not render in LDCad 1.6b - Roland Melkert - 2018-05-18

(2018-05-18, 5:57)Jaco van der Molen Wrote: The only true difference (besides window state, last openend files, etc) between the two setups I could find was in the main.cfg [LDraw] section
vertexProcessingMode=smooth (1.6a)
vertexProcessingMode=none (1.6b)

Ah I forgot that restriction, the none mode does zero post processing on the LDraw xyz coordinates, this includes generating the uv parameters.