WebScene - Rendering with NormalMaps

2467
4
Jump to solution
11-19-2015 04:01 AM
JawadhHabeeb1
Occasional Contributor

Hi,

I ve seen 3D buildings with NormalMaps in the Viewport of CityEngine, Can I get the same effect in the CityEngine WebScenes ?

Jawadh

0 Kudos
1 Solution

Accepted Solutions
ThomasFuchs
Esri Regular Contributor

Jawadh,

CityEngine CGA models support 6 kinds of texture layers:

Texturing: Essential Knowledge

uv-setTexture Layer
0colormap
1bumpmap
2dirtmap
3specularmap
4opacitymap
5normalmap

For export to Web Scenes the models get simplified and only use colormap. This is necessary due to browser limitations and to ensure compatibility on less powerful systems.

CityEngine Web Scene (3ws) Export

In your case I suggest to modify the edges colormap of the window texture to achieve a similar look.

View solution in original post

0 Kudos
4 Replies
by Anonymous User
Not applicable

Jawadh,

Can you elaborate on this? I'm not sure what you mean by "3D buildings with NormalMaps" - can you post a screenshot? 

Are you referring to how the web scene uses backface culling? The default viewport in CE has backface culling disabled, but you can turn it on so the viewport matches the web scene. In fact, you might make it a habit to test in this mode before publishing a web scene.

Thanks!

Chris

0 Kudos
JawadhHabeeb1
Occasional Contributor

Hi Chris,

Here are some Screenshots.

1. Model in CityEngine Without set(material.normalmap,normalMapTex)

WithOut_NormalMaps.jpg

2. Model in CityEngine With set(material.normalmap,normalMapTex)

With_NormalMaps.jpg

3. Same model in webscene, but seems like the normalmap is not rendered here.

WebScene.jpg

Can I get the same effect of the normalmap used in the Web Scene also.? I am trying to achieve a window effect

in cityengine with normal maps, so as to get realistic effect.

4. The Normal Map used for creating the Window effect.

window1_normalrmap.jpg

Cheers,

Jawadh

0 Kudos
ThomasFuchs
Esri Regular Contributor

Jawadh,

CityEngine CGA models support 6 kinds of texture layers:

Texturing: Essential Knowledge

uv-setTexture Layer
0colormap
1bumpmap
2dirtmap
3specularmap
4opacitymap
5normalmap

For export to Web Scenes the models get simplified and only use colormap. This is necessary due to browser limitations and to ensure compatibility on less powerful systems.

CityEngine Web Scene (3ws) Export

In your case I suggest to modify the edges colormap of the window texture to achieve a similar look.

0 Kudos
JawadhHabeeb1
Occasional Contributor

Also tried the Back face culling enabled .. still no change..

0 Kudos