Crystal Space
Welcome, Guest. Please login or register.
December 21, 2014, 10:18:50 am

Login with username, password and session length
Search:     Advanced search
9032 Posts in 2046 Topics by 9297 Members
Latest Member: Adrihjapa
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Is there a way to make meshes shadeless?
« previous next »
Pages: [1] Print
Author Topic: Is there a way to make meshes shadeless?  (Read 1052 times)
Crystalfur
Newbie
*
Posts: 30


View Profile Email
« on: August 12, 2010, 12:09:00 am »

Hullo,

I'm making a custom billboard mechanism using mesh quads. I'd like to avoid having to light each one individual. In Blender, there's a setting called 'shadeless' that makes the mesh not glaringly bright, but avoids any shadows or specularity, being uniform throughout.

I had a look in mesh->GetFlags().Set(CS_ENTITY...) but couldn't find anything other than CS_ENTITY_NOLIGHTING and that's good except then it's completely dark (obviously). I suppose I could use an ambient light, but I think that would affect the entire sector, and I don't want that.
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #1 on: August 12, 2010, 03:55:35 am »

CS 1.4 or SVN trunk?

CS 1.4: set shader of type 'standard' to 'fullbright'

SVN trunk: Set the shader of type 'base' to 'lighting_fullbright', 'diffuse' to '*null'.
Logged
Crystalfur
Newbie
*
Posts: 30


View Profile Email
« Reply #2 on: August 13, 2010, 06:19:57 am »

!!!

Excellent.

You're the man, res.

You should be promoted to 6 monkey heads.

I'm on 1.4., but its good to know the trunk version too.
« Last Edit: August 13, 2010, 06:21:28 am by Crystalfur » 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 4.173 seconds with 15 queries.