Crystal Space
Welcome,
Guest
. Please
login
or
register
.
June 19, 2013, 02:10:37 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
9261
Posts in
2262
Topics by
5443
Members
Latest Member:
Michealclark
Crystal Space
Crystal Space Development
Support
smooth polygons
« previous
next »
Pages:
[
1
]
Author
Topic: smooth polygons (Read 798 times)
zamme
Newbie
Posts: 16
smooth polygons
«
on:
February 17, 2010, 01:34:35 pm »
Hi all.
It's possible to use any kind of "smooth polygons" like in blender?
Logged
res
Develazyoper
CS Developer
Full Member
Posts: 206
Re: smooth polygons
«
Reply #1 on:
February 19, 2010, 07:28:04 pm »
CrystalSpace "just" displays triangle meshes using per-vertex normals for lighting.
So how smooth (or not) your geometry looks depends on what you're feeding into it...
Logged
jwir3
Administrator
Newbie
Posts: 13
Re: smooth polygons
«
Reply #2 on:
February 22, 2010, 09:11:06 pm »
Hi zamme:
Blender's 'Set Smooth' button actually functions more in the rendering context. What it does is recalculate the normals based on the vertices and faces, taking into account an 'averaging' of the normals in order to achieve that smooth look when lit. When you choose 'Set Solid', in contrast, it calculates the normals solely based on the faces. In addition, there's the shading algorithm that's being used to render the scene which can impact how smooth a mesh looks.
So, there are a couple of things you can do to emulate this behavior in Crystal Space:
1) Export your mesh from Blender so that 'Set Smooth' is enabled, making the normals behave as if the mesh were smooth.
2) Change the geometry of your mesh so that it's more subdivided, thus making the actual surface appear smoother because there are more polygons. This is a balancing act, though - you don't want to subdivide everything, because then you will innundate your scene with polygons, and it may take longer to render.
3) Change the shader used to more accurately compute the color you want at a given pixel based on input geometry, normals, and lighting.
I would suggest a combination of 1 and 3.
~Scott
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Crystal Space Development
-----------------------------
=> General Crystal Space Discussion
=> Support
-----------------------------
Crystal Space Project Development
-----------------------------
=> Feature Requests
=> Plugins
=> Bug Reports
-----------------------------
Crystal Space Development
-----------------------------
=> Game Content Creation
-----------------------------
Miscellaneous
-----------------------------
=> Article/Tutorial Requests
=> Article/Tutorial Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Development Discussion
-----------------------------
Crystal Space Projects
-----------------------------
=> Project Discussion
=> WIP Projects
=> Finished Projects
-----------------------------
Associate Projects
-----------------------------
=> CEL Discussion
=> Crystal Core Discussion
=> CrystalBlend Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Google Summer of Code
-----------------------------
Associate Projects
-----------------------------
=> Apricot (Open Game)
=> Ares Project
Loading...