Print at Dec 18, 2025, 11:54:39 AM

Posted by okh at Sep 24, 2016, 2:35:11 PM
Re: A major challenge?
@cec

Well, your rendering is pretty close to perfect in my view. But I could not help myself and try the same with very simplified models/textures to speed it up. A similar room,
- with a replica of Cec' lamp shrunk to 14 KB including texture (but much rougher, of course),
- simpler chair and table, also a fraction of the size,
- same with other textures / models,
- swapped the wine/glass with drinking beer from a can (seemed more appropriate given the lack of finesse).

Beauty and the beast if you like. Now, clearly Cec' version is far better in all sorts of ways. But, there is something to be said for the rough approach too - the total plan is less than 10% the size of the pretty one. Which means it is faster and easier to work with on a slower machine. The plan is (for me) sufficient to see what I want to do in real life.

As for adding light-sources in the lamp model properties, that still annoys me. Could not get that right, but a few lessons learnt:

  • getting an effect close to Cec is possible, but not without cheating' using extra light-sources inside and outside the model,
  • placing small lights around the bulb in the model properties is better, but very hard to get right. This is as far as I got:
    width#67=12.5
    depth#67=15
    height#67=19
    movable#67=true
    lightSourceX#67=4.5 8 6.2
    lightSourceY#67=12 12 9
    lightSourceZ#67=7 7 7
    lightSourceColor#67=#0D0500 #0D0500 #0A0400
    lightSourceDiameter#67=0.5 0.5 0.5

  • even if light colour is tuned almost to black, the light gets way too bright in the model(probably doing something wrong here)
  • several (three) light-sources are better than one, but also increases the total output of model light.
  • I did not check rendering times, the computer I am using now, is too slow for many takes. Still, the simplified model was rendered without too much delay.
While difficult to get right, using several light sources in the model, is probably the right way to go. Should I ever get it right, I will let you know... smile ok
Put the models and a demo in SF 3d models 400 in case someone wants to improve or tell me a better way.
Plan with demo: lampette.sh3d
Lamp model (.obj, without light sources): lampette.zip