Jump to content

Recommended Posts

Posted

Good evening!

 

I have a little problem. Our artist have made a building. I tried to set up parallax shader in some materials. But I could see parallax effect only in material editor. Screenshots from editor and material editor is here:

 

parallaxerr1.th.png

 

parallaxerr2.th.png

Posted

Everything appears correct, but I recommend using POM instead of plain parallax. It is quite a lot more obvious of an effect.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

Hi !

 

I had the same problem. The parallax effect is not obvious to use because we must not forget to put a alpha layer in your texture ...

 

If you use the POM.FRAG, the default settings in the MESH.FRAG do not get the correct effect.

 

I have implemented it in the next release of ADN, which makes it easier to configure, it will come out in a few days

ADN Material editor

Posted

Hi !

 

I had the same problem. The parallax effect is not obvious to use because we must not forget to put a alpha layer in your texture ...

 

If you use the POM.FRAG, the default settings in the MESH.FRAG do not get the correct effect.

 

I have implemented it in the next release of ADN, which makes it easier to configure, it will come out in a few days

ADN Material editor

 

1) I have made an alpha channel to all textures. Compression is dxt5. Nothing changed.

 

2) In ADN I have an error:

 

errorqtv.th.png

 

3) Tommorow I'll try to use POM.FRAG.

 

P.S. If anybody wants, I could upload a material file with textures.

Posted

2) In ADN I have an error:

 

errorqtv.th.png

 

 

That is not an ADN error. You are using a version of ADN that doesn't have the parallax option built in... try downloading the one that was released today.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Posted

Use this material:

texture0="abstract::ceramics_02.dds"

texture1="abstract::ceramics_02_nrm.dds"

shader="abstract::mesh_diffuse_bumpmap_parallax.vert","abstract::mesh_diffuse_bumpmap_parallax.frag"

 

The heightmap should be packed into the alpha channel of the diffuse texture. This eliminates one texture lookup, which will make it faster.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

I found why your parallax effect doesn't work, your alpha channel on diffuse is completely white texture like said Josh

 

APHA channel of the diffuse texture mustrepresent your image. You can get something not too badly with :

- get the negative off diffuse

- increase her brightness

- glue the result in your alpha channel

 

 

You use an older version of ADN that not support Parallax, go to the main post and download the 1.1. After you must select the material type on PARALLAX not DIFFUSE

 

Nicolas

Posted

Use this material:

texture0="abstract::ceramics_02.dds"

texture1="abstract::ceramics_02_nrm.dds"

shader="abstract::mesh_diffuse_bumpmap_parallax.vert","abstract::mesh_diffuse_bumpmap_parallax.frag"

 

The heightmap should be packed into the alpha channel of the diffuse texture. This eliminates one texture lookup, which will make it faster.

 

I did it. In Material Editor nothing changes. In model viewer too. For packing i'm using DirectX Texture Tool, is it okay?

 

But why I could not see any shader effect in editor or model viewer?

 

P.S. Also, I tried using shader="abstract::mesh_diffuse_bumpmap_parallax.vert","abstract::mesh_diffuse_bumpmap_specular_pom.frag".

 

P.P.S. I think, something wrong is with light, or model. Soon I'll try another model.

Posted

Sorry, the frag shader should actually be "mesh_diffuse_bumpmap_specular_pom.frag".

 

Parallax occlusion mapping (POM) is the raised effect I think you want. Plain parallax mapping is just sort of an enhanced bumpmap. I honestly don't even remember exactly what it does, and it should probably be removed.

My job is to make tools you love, with the features you want, and performance you can't live without.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...