Wild Cat Posted August 22, 2010 Share Posted August 22, 2010 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: Quote Link to comment Share on other sites More sharing options...
Josh Posted August 23, 2010 Share Posted August 23, 2010 Everything appears correct, but I recommend using POM instead of plain parallax. It is quite a lot more obvious of an effect. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Icare Posted August 23, 2010 Share Posted August 23, 2010 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 Quote Link to comment Share on other sites More sharing options...
Wild Cat Posted August 24, 2010 Author Share Posted August 24, 2010 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: 3) Tommorow I'll try to use POM.FRAG. P.S. If anybody wants, I could upload a material file with textures. Quote Link to comment Share on other sites More sharing options...
Josh Posted August 24, 2010 Share Posted August 24, 2010 Please post your texture and material files. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Wild Cat Posted August 24, 2010 Author Share Posted August 24, 2010 Here it is: http://rapidshare.com/files/414936383/ceramics_02.zip Quote Link to comment Share on other sites More sharing options...
macklebee Posted August 24, 2010 Share Posted August 24, 2010 2) In ADN I have an error: 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. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Josh Posted August 25, 2010 Share Posted August 25, 2010 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. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Paul Thomas Posted August 25, 2010 Share Posted August 25, 2010 Do you even have a license, Wild Cat? Seems kind of odd to "white out" your directory structure in your screen-shots, lol. Quote Link to comment Share on other sites More sharing options...
Icare Posted August 25, 2010 Share Posted August 25, 2010 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 Quote Link to comment Share on other sites More sharing options...
Icare Posted August 25, 2010 Share Posted August 25, 2010 This my result, if you put your heightmap in the alpha channel of you diffuse. Quote Link to comment Share on other sites More sharing options...
Wild Cat Posted August 25, 2010 Author Share Posted August 25, 2010 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. Quote Link to comment Share on other sites More sharing options...
Icare Posted August 25, 2010 Share Posted August 25, 2010 It's working fine if you do the right things. Look at my screen shot.... Quote Link to comment Share on other sites More sharing options...
Josh Posted August 25, 2010 Share Posted August 25, 2010 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. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
macklebee Posted August 25, 2010 Share Posted August 25, 2010 Have you sent your information to Josh so he can get you into the forum as a developer? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Wild Cat Posted August 25, 2010 Author Share Posted August 25, 2010 Have you sent your information to Josh so he can get you into the forum as a developer? I'm not a developer. Quote Link to comment Share on other sites More sharing options...
macklebee Posted August 25, 2010 Share Posted August 25, 2010 thats strange... considering that it appears that you have 2.4? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Wild Cat Posted August 25, 2010 Author Share Posted August 25, 2010 thats strange... considering that it appears that you have 2.4? Strange things happens. Sometimes. Quote Link to comment Share on other sites More sharing options...
macklebee Posted August 25, 2010 Share Posted August 25, 2010 uh-huh... thats what i thought... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Paul Thomas Posted August 25, 2010 Share Posted August 25, 2010 Yeah, figured it was an odd thing to do to block out your directory path, attempting to hide "2.4" lol. Failure. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.