Crystal Space
Welcome, Guest. Please login or register.
July 30, 2014, 12:55:48 pm

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8260 Members
Latest Member: Lovelymae39
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  No smoothing/shading when using bump shader/normal map [SOLVED]
« previous next »
Pages: [1] Print
Author Topic: No smoothing/shading when using bump shader/normal map [SOLVED]  (Read 1409 times)
Lingon
Newbie
*
Posts: 1


View Profile Email
« on: September 14, 2006, 08:56:43 pm »

I want to apply a normalmap to my genmesh that I have in a modified version of the shadertest.celzip
I am running the application with CelStart and i modified the shadertest.celzip/world-file and imported my genmesh that I exported from blender.
The mesh showed up fine with the colormap on it. But when I created a copy of it and applied a bump-shader and applied a normalmap the shading/smoothing seemed to disappear, leaving hard edges all around the model.



This is the xml-code that I'm using:

Shader:
? ? <shader>
? ? ? <file>/shader/light.xml</file>
? ? </shader>

? ? <shader>
? ? ? <file>/shader/specular/light_spec_bumpmap.xml</file>
? ? </shader>

Textures:
? ? <texture name='colormap.jpg'>
? ? ? <file>textures/colormap.jpg</file>
? ? </texture>

? ? <texture name='normalmap.jpg'>
? ? ? <file>textures/normalmap.jpg</file>
? ? ? <class>normalmap</class>
? ? </texture>

Materials:
? ? <material name='colormap'>
? ? ? <texture>colormap.jpg</texture>
? ? ? <shader type='diffuse'>light</shader>
? ? ? <shader type='ambient'>ambient</shader>
? ? </material>

? ? <material name='normalmap'>
? ? ? <texture>normalmap.jpg</texture>
? ? ? <shader type='diffuse'>light_spec_bumpmap</shader>
? ? ? <shader type='ambient'>ambient</shader>
? ? ? <shadervar type='texture' name='tex normal'>normalmap.jpg</shadervar>
? ? </material>

Meshobjects:
<meshobj name='colormesh'>
? ? ? <plugin>genmesh</plugin>
? ? ? <params>
? ? ? ? <factory>colormesh</factory>
? ? ? ? <material>colormap</material>
? ? ? </params>
? ? ? <zuse/>
? ? ? <move>
? ? ? ? <v y='3.7' x='3' z='-1.19209e-007'/>
? ? ? </move>
? ? </meshobj>

? ? <meshobj name='normalmesh'>
? ? ? <plugin>genmesh</plugin>
? ? ? <params>
? ? ? ? <factory>normalmesh</factory>
? ? ? ? <material>normalmap</material>
? ? ? </params>
? ? ? <zuse/>
? ? ? <move>
? ? ? ? <v y='3.7' x='0' z='-1.19209e-007'/>
? ? ? </move>
? ? </meshobj>

Meshes:
<library>
<meshfact name='colormesh'>
<plugin>genmeshfact</plugin>
<zuse/>
<params>
<material>colormap</material>
<numvt>7284</numvt>
<numtri>2428</numtri>
<v x="0.000000" y="-2.318876" z="-0.613338" u="0.929722" v="-2.543278"/>
<n x="0.024174" y="0.422367" z="-0.906102"/>

etc..

<v x="0.455731" y="0.922777" z="-1.150282" u="0.732841" v="-0.559758"/>
<n x="0.205098" y="-0.119010" z="-0.971479"/>
<t v1="7283" v2="7282" v3="7281"/>
<autonormals/>
</params>
</meshfact>
</library>

---

<library>
<meshfact name='normalmesh'>
<plugin>genmeshfact</plugin>
<zuse/>
<params>
<material>normalmap</material>
<numvt>7284</numvt>
<numtri>2428</numtri>
<v x="0.000000" y="-2.318876" z="-0.613338" u="0.929722" v="-2.543278"/>
<n x="0.024174" y="0.422367" z="-0.906102"/>

etc..

<v x="0.455731" y="0.922777" z="-1.150282" u="0.732841" v="-0.559758"/>
<n x="0.205098" y="-0.119010" z="-0.971479"/>
<t v1="7283" v2="7282" v3="7281"/>
<autonormals/>
</params>
</meshfact>
</library>



I'm using:
celstart-v2-win32.zip
shadertest.celzip
Windows XP: Service Pack 2
Radeon 9800, Driver:ATI, 2006-06-07, version 8.263.0.0

I'd appreciate any help or explanation of this problem.

SOLVED:
I installed the pre-release of blender2crystal plugin for blender and set the smoothing to true in the overlay menu, then exported again. Now it works like a charm.
« Last Edit: September 14, 2006, 11:10:01 pm by Lingon » Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.478 seconds with 16 queries.