Why isn't my normal map working?

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
W0RLDBUILDER
Posts: 122
Joined: 02.06.2010
With us: 14 years 5 months

Why isn't my normal map working?

Post #1by W0RLDBUILDER » 15.06.2013, 21:06

I used Sculptris to make an asteroid model and textures (diffuse, normal) and used Anim8or to set materials and export to CMOD. When rendered in Celestia, however, it looks completely different. I've tried it with LunarLambert both at 1 and turned off, and no matter what it looks completely different from what it looked like in Sculptris. With LunarLambert at 1, it is nearly black with a very bright rim. With it disabled, the surface appears much brighter, but the edges of the normalmapped craters look like someone used black spraypaint to apply them, and the normal map barely has any other effect. What am I doing wrong?

Image
Sculptris with custom material.

Image
LunarLambert off.

Image
LunarLambert at 1.

Image
LunarLambert at 0.5.

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Why isn't my normal map working?

Post #2by John Van Vliet » 15.06.2013, 22:03

--- edit----
Last edited by John Van Vliet on 18.10.2013, 11:16, edited 2 times in total.

Topic author
W0RLDBUILDER
Posts: 122
Joined: 02.06.2010
With us: 14 years 5 months

Re: Why isn't my normal map working?

Post #3by W0RLDBUILDER » 16.06.2013, 00:47

I'm not using a cylindrical (or cube) map. Sculptris generates UVs, diffuse textures, and normal maps. I applied the normal map to a sphere (please excuse the lack of polar correction):
Image
It looks like the normal map's OK, so the problem must be in my CMOD. (download)

Topic author
W0RLDBUILDER
Posts: 122
Joined: 02.06.2010
With us: 14 years 5 months

Re: Why isn't my normal map working?

Post #4by W0RLDBUILDER » 16.06.2013, 21:09

I generated normals and tangents in cmodview, and I was able to get this.
Image
As you can see, it has these seams everywhere. Not sure what I can do to fix this besides maybe subdivide the original mesh some more.

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Why isn't my normal map working?

Post #5by John Van Vliet » 16.06.2013, 21:17

--- edit----
Last edited by John Van Vliet on 18.10.2013, 11:15, edited 1 time in total.

Topic author
W0RLDBUILDER
Posts: 122
Joined: 02.06.2010
With us: 14 years 5 months

Re: Why isn't my normal map working?

Post #6by W0RLDBUILDER » 16.06.2013, 21:51

I don't really know if it's possible to reproject the textures into a cube map. Sculptris generates .obj files, and I've tried both Selden's Anim8or CMOD export script and cmodview with the same results. To me, it looks like Celestia isn't loading the normal map correctly because of how it's mapped on the mesh.

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: Why isn't my normal map working?

Post #7by Fenerit » 17.06.2013, 09:30

Maybe you must use Animator to change the default mesh triangles in quads, since Sculptris does use triangles as geometry.
Never at rest.
Massimo


Return to “Help Central”