Author Topic: Graphics - how to do player specific colours in blender?  (Read 4959 times)

0 Members and 1 Guest are viewing this topic.

Offline The Hood

Graphics - how to do player specific colours in blender?
« on: December 23, 2008, 02:23:09 PM »
For anyone that draws vehicles in blender, how do you get these in the renders for use in the .png files?  I know I could just go in GIMP and pixel push every colour til it looks right, but are there any ways of speeding this process up by doing things in blender pre-render?

Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • Total likes: 2
  • Helpful: 14
  • I'm the constructor, the architect
    • Escala real
Re: Graphics - how to do player specific colours in blender?
« Reply #1 on: December 23, 2008, 07:11:47 PM »
uhmm...my experience says it's easier and faster to add them using GIMP because in Blender, the render result depends on the lights position. So although you paint any object of the scene with any special color from Simutrans pallete, the final color will depend on the amount of light it recieves, therefore you can't ensure you will get exactly what you specified.

A possible solution would be to reduce the specular and mirror colors to avoid shining and reflections, and get a plain color or even make the object shadeless. In that case, it appears completly white and is not affected by the amount of light it recieves, but you still may give it color (special color)

Escala Real...a blog about Simutrans in Spanish...

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4849
  • Total likes: 25
  • Helpful: 63
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Graphics - how to do player specific colours in blender?
« Reply #2 on: December 23, 2008, 07:20:31 PM »
Since special colour also in a different way depends on shading - you should do the minimal shading within range of available special colours - this is probably not a good idea.

So yes, you can't easily avoid postprocessing. The best way is to automate everything to death, so that you can just press a few buttons and the machine does all for you… i imagine it could go like this:

1) make something that marks an area as player-coloured already in blender and allows second render with only that area visible (everything else black?)
2) find some automated way of reducing palette (imagemagick?)
3) mask over normally rendered image and that with postprocesed colours

…or anything else. Maybe there is some way to restrict something to a few palette items in Blender… who knows. I don't touch it :)

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Offline The Hood

Re: Graphics - how to do player specific colours in blender?
« Reply #3 on: December 24, 2008, 09:08:53 AM »
Thanks for the replies so far - I was wondering if it is sensible to render a vehicle in, say, green, and then auto-replace all green bits with player colour palette in GIMP?  How many colours are available for player colours, and where can I find the hex-codes for them?

Offline Combuijs

  • Web Team
  • Devotee
  • *
  • Posts: 1387
  • Total likes: 22
  • Helpful: 53
  • Maintainer of maps.simutrans.com
    • Combuijs
  • Languages: EN, NL
Bob Marley: No woman, no cry

Programmer: No user, no bugs



Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4849
  • Total likes: 25
  • Helpful: 63
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Graphics - how to do player specific colours in blender?
« Reply #5 on: December 24, 2008, 10:12:21 AM »

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!