Archive 17/01/2023.

Using DecalMachine with Urho3D

vivienneanthony

Hi,

Have anyone tried DecalMachine with Urho3D? I’m trying to get https://imgur.com/FMmzqZX to show correctly using the NoTextureNormal Technique.

I got the material to show correctly. It’s now getting the texture to show the detail correctly.

This is a example of a low poly that’s possible https://skfb.ly/6wW9C

This is the material.

<material>
	<technique name="Techniques/DiffNormal.xml" quality="0" loddistance="0" />
	<parameter name="MatDiffColor" value="1 1 1 1"/>
	<parameter name="MatSpecColor" value="0.5 0.5 0.5 50"/>
	<texture unit="normal" name="GameData/Textures/ShuttleDoor_Normal_Base.png" />	
	<texture unit="diffuse" name="GameData/Textures/GenericHull4_Diff.png" />
	<cull value="ccw"/>
	<shadowcull value="ccw"/>
</material>

Screenshot


Vivienne

vivienneanthony

The problems I get using DiffNormal or NoTextureNormal. Depending how far the camera is from the material. It does not show. Also, It seems to blur the texture so it doesn’t match the detail.

vivienneanthony

I increased the texture size.