Crystal Space
Welcome, Guest. Please login or register.
April 20, 2014, 05:42:08 pm

Login with username, password and session length
Search:     Advanced search
8990 Posts in 2037 Topics by 7598 Members
Latest Member: Tarafigueroa
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  General Crystal Space Discussion
| | |-+  How to make a shade?
« previous next »
Pages: [1] Print
Author Topic: How to make a shade?  (Read 2541 times)
kornerr
Full Member
***
Posts: 101


347968356
View Profile WWW Email
« on: May 11, 2006, 05:44:19 am »

As you probably know, I get only a single colored model.
Although, you'll tell me how to color it, it won't be shaded. I mean it won't look like 3D as things like GenerateSphere look like.
So the question is how to make a genmesh look like 3D (make it shaded)?
A mesh is made of AddVertex and AddTriangle.

Thanks.
Logged

jorrit
Administrator
Hero Member
*****
Posts: 1704


View Profile
« Reply #1 on: May 11, 2006, 08:49:28 am »

As you probably know, I get only a single colored model.
Although, you'll tell me how to color it, it won't be shaded. I mean it won't look like 3D as things like GenerateSphere look like.
So the question is how to make a genmesh look like 3D (make it shaded)?
A mesh is made of AddVertex and AddTriangle.

Thanks.

Call CalculateNormals() (or <autonormals/> in map file) and enable lighting for it.

Greetings,
Logged
kornerr
Full Member
***
Posts: 101


347968356
View Profile WWW Email
« Reply #2 on: May 11, 2006, 11:09:51 am »

Doesn't work. All is the same.
Logged

jorrit
Administrator
Hero Member
*****
Posts: 1704


View Profile
« Reply #3 on: May 21, 2006, 07:39:05 pm »

Doesn't work. All is the same.

I need some sample code or level that I can try myself.

Greetings,
Logged
kornerr
Full Member
***
Posts: 101


347968356
View Profile WWW Email
« Reply #4 on: May 22, 2006, 07:46:44 am »

I can't remember if i already told it, but now it works...
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 3.139 seconds with 16 queries.